mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Fix : Ne pas casser le formulaire si des champs ne sont pas spécifiés
Vérifie la présence des champs de customistion du tag et agit en conséquence.
This commit is contained in:
parent
966a60905b
commit
176bf257af
1 changed files with 12 additions and 0 deletions
|
@ -45,7 +45,19 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
{% bootstrap_form machineform %}
|
{% bootstrap_form machineform %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if interfaceform %}
|
{% if interfaceform %}
|
||||||
|
{% if i_choices %}
|
||||||
|
{% if i_match_func %}
|
||||||
|
{% bootstrap_form_typeahead interfaceform 'ipv4' choices=i_choices match_func=i_match_func %}
|
||||||
|
{% else %}
|
||||||
|
{% bootstrap_form_typeahead interfaceform 'ipv4' choices=i_choices %}
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
{% if i_match_func %}
|
||||||
|
{% bootstrap_form_typeahead interfaceform 'ipv4' match_func=i_match_func %}
|
||||||
|
{% else %}
|
||||||
{% bootstrap_form_typeahead interfaceform 'ipv4' %}
|
{% bootstrap_form_typeahead interfaceform 'ipv4' %}
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if domainform %}
|
{% if domainform %}
|
||||||
{% bootstrap_form domainform %}
|
{% bootstrap_form domainform %}
|
||||||
|
|
Loading…
Reference in a new issue