{% 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 %} Configuration error {{ save_error }} {% endif %} {# Print form errors correctly #} {% if form.non_field_errors %} {% translate "Form errors" %} {{ form.non_field_errors|safe }} {% endif %} {% translate "Main settings" %} {% translate "Network" %} {% translate "Firewall" %} {% translate "Hostname" %} {{form.name}} {{form.name.errors|safe}} {{form.pstats_forwarders.label}} {{form.pstats_forwarders}} {{form.pstats_forwarders.errors|safe}} {% translate "Internet IP Address" %} {{form.internet_ip}} {{form.internet_ip.errors|safe}} {% translate "InterCluster IP Address" %} {{form.management_ip}} {{form.management_ip.errors|safe}} {% translate "Backends outgoing IP Address masquerading" %} {{form.backends_outgoing_ip}} {{form.backends_outgoing_ip.errors|safe}} {% translate "Log forwarders IP Address masquerading" %} {{form.logom_outgoing_ip}} {{form.logom_outgoing_ip.errors|safe}} {% translate "Default router" %} {{form.gateway}} {{form.gateway.errors|safe}} {% translate "Default IPV6 router" %} {{form.gateway_ipv6}} {{form.gateway_ipv6.errors|safe}} {% translate "Static network routes" %} {{form.static_routes}} {{form.static_routes.errors|safe}} {% translate "Scanner IP Address" %} {{form.scanner_ip}} {{form.scanner_ip.errors|safe}} {% translate "Max. entries for PF state table" %} {{form.pf_limit_states}} {{form.pf_limit_states.errors|safe}} {% translate "Max. entries for PF packet reassembly" %} {{form.pf_limit_frags}} {{form.pf_limit_frags.errors|safe}} {% translate "Max. entries for PF source tracking" %} {{form.pf_limit_src}} {{form.pf_limit_src.errors|safe}} {% translate "Advanced" %} {% translate "Custom PF initial parameters configuration" %} {{form.pf_custom_param_config}} {{form.pf_custom_param_config.errors|safe}} {% translate "Custom PF NAT Configuration" %} {{form.pf_custom_nat_config}} {{form.pf_custom_nat_config.errors|safe}} {% translate "Custom PF RDR Configuration" %} {{form.pf_custom_rdr_config}} {{form.pf_custom_rdr_config.errors|safe}} {% translate "Custom PF Configuration" %} {{form.pf_custom_config}} {{form.pf_custom_config.errors|safe}} {% 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 %}
{{ save_error }}