Commit 176bf257 authored by Maël Kervella's avatar Maël Kervella

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.
parent 966a6090
......@@ -45,7 +45,19 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% bootstrap_form machineform %}
{% endif %}
{% 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' %}
{% endif %}
{% endif %}
{% endif %}
{% if domainform %}
{% bootstrap_form domainform %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment