8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-26 00:43:46 +00:00

Ajoute le JS que si la liste d'association existe

Evite de casser les form existants
This commit is contained in:
Maël Kervella 2017-10-03 00:07:53 +00:00 committed by Pierre Cadart
parent 9bf0529cf7
commit 063e964f5a

View file

@ -38,6 +38,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% bootstrap_form_errors domainform %}
{% endif %}
{% if type_to_ipv4 %}
<script>
var type_to_ipv4 = {
type: [{% for type, iplist in type_to_ipv4.items %}"{{ type }}",{% endfor %}],
@ -62,6 +63,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
});
});
</script>
{% endif %}
<form class="form" method="post">
{% csrf_token %}