{% extends "layout2.html" %} {% load i18n %} {% load static %} {% block css_include %} {% endblock %} {% block js_include %} {% endblock %} {% block content %}
{% csrf_token %}

 {% translate "Node settings" %}

{# If there is save/configuration errors #} {% if save_error %} {% endif %} {# Print form errors correctly #} {% if form.non_field_errors %}

{% translate "Form errors" %}

{{ form.non_field_errors|safe }}
{% endif %}
{% endblock %} {% block jquery_code %} $(function() { $('.select2').select2(); $('#id_nic').change(function(e) { {{ nic_map_js|safe }} var selected = $(this).val(); if (! selected) { $("#carp_info").hide(); return; } nb_nic = selected.length; //This is a CARP configuration if (nb_nic > 1) { $("#carp_info").show(); } else { $("#carp_info").hide(); } }); $('#id_nic').trigger('change'); }); {% endblock %}