8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-26 22:52:26 +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 %} {% bootstrap_form_errors domainform %}
{% endif %} {% endif %}
{% if type_to_ipv4 %}
<script> <script>
var type_to_ipv4 = { var type_to_ipv4 = {
type: [{% for type, iplist in type_to_ipv4.items %}"{{ type }}",{% endfor %}], 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> </script>
{% endif %}
<form class="form" method="post"> <form class="form" method="post">
{% csrf_token %} {% csrf_token %}