8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-30 16:42:25 +00:00

Remove massive_boostrap form on machine forms

This commit is contained in:
chirac 2020-12-28 16:20:33 +01:00 committed by Gabriel Detraz
parent d00d7019c5
commit 0aaceab549

View file

@ -25,7 +25,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %} {% endcomment %}
{% load bootstrap3 %} {% load bootstrap3 %}
{% load massive_bootstrap_form %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Machines" %}{% endblock %} {% block title %}{% trans "Machines" %}{% endblock %}
@ -33,15 +32,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block content %} {% block content %}
{% if machineform %} {% if machineform %}
{% bootstrap_form_errors machineform %} {% bootstrap_form_errors machineform %}
{{ machineform.media }}
{% endif %} {% endif %}
{% if interfaceform %} {% if interfaceform %}
{% bootstrap_form_errors interfaceform %} {% bootstrap_form_errors interfaceform %}
{{ interfaceform.media }}
{% endif %} {% endif %}
{% if domainform %} {% if domainform %}
{% bootstrap_form_errors domainform %} {% bootstrap_form_errors domainform %}
{% endif %} {% endif %}
{% if iptypeform %} {% if iptypeform %}
{% bootstrap_form_errors iptypeform %} {% bootstrap_form_errors iptypeform %}
{{ iptypeform.media }}
{% endif %} {% endif %}
{% if machinetypeform %} {% if machinetypeform %}
{% bootstrap_form_errors machinetypeform %} {% bootstrap_form_errors machinetypeform %}
@ -51,36 +53,45 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endif %} {% endif %}
{% if mxform %} {% if mxform %}
{% bootstrap_form_errors mxform %} {% bootstrap_form_errors mxform %}
{{ mxform.media }}
{% endif %} {% endif %}
{% if nsform %} {% if nsform %}
{% bootstrap_form_errors nsform %} {% bootstrap_form_errors nsform %}
{{ nsform.media }}
{% endif %} {% endif %}
{% if txtform %} {% if txtform %}
{% bootstrap_form_errors txtform %} {% bootstrap_form_errors txtform %}
{{ txtform.media }}
{% endif %} {% endif %}
{% if dnameform %} {% if dnameform %}
{% bootstrap_form_errors dnameform %} {% bootstrap_form_errors dnameform %}
{{ dnameform.media }}
{% endif %} {% endif %}
{% if srvform %} {% if srvform %}
{% bootstrap_form_errors srvform %} {% bootstrap_form_errors srvform %}
{{ srvform.media }}
{% endif %} {% endif %}
{% if aliasform %} {% if aliasform %}
{% bootstrap_form_errors aliasform %} {% bootstrap_form_errors aliasform %}
{{ aliasform.media }}
{% endif %} {% endif %}
{% if serviceform %} {% if serviceform %}
{% bootstrap_form_errors serviceform %} {% bootstrap_form_errors serviceform %}
{{ serviceform.media }}
{% endif %} {% endif %}
{% if sshfpform %} {% if sshfpform %}
{% bootstrap_form_errors sshfpform %} {% bootstrap_form_errors sshfpform %}
{% endif %} {% endif %}
{% if roleform %} {% if roleform %}
{% bootstrap_form_errors roleform %} {% bootstrap_form_errors roleform %}
{{ roleform.media }}
{% endif %} {% endif %}
{% if vlanform %} {% if vlanform %}
{% bootstrap_form_errors vlanform %} {% bootstrap_form_errors vlanform %}
{% endif %} {% endif %}
{% if nasform %} {% if nasform %}
{% bootstrap_form_errors nasform %} {% bootstrap_form_errors nasform %}
{{ nasform.media }}
{% endif %} {% endif %}
{% if ipv6form %} {% if ipv6form %}
{% bootstrap_form_errors ipv6form %} {% bootstrap_form_errors ipv6form %}
@ -90,15 +101,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% csrf_token %} {% csrf_token %}
{% if machineform %} {% if machineform %}
<h3>{% trans "Machine" %}</h3> <h3>{% trans "Machine" %}</h3>
{% massive_bootstrap_form machineform 'user' %} {% bootstrap_form machineform %}
{% endif %} {% endif %}
{% if interfaceform %} {% if interfaceform %}
<h3>{% trans "Interface" %}</h3> <h3>{% trans "Interface" %}</h3>
{% if i_mbf_param %} {% bootstrap_form interfaceform %}
{% massive_bootstrap_form interfaceform 'ipv4,machine,port_lists' mbf_param=i_mbf_param %}
{% else %}
{% massive_bootstrap_form interfaceform 'ipv4,machine,port_lists' %}
{% endif %}
{% endif %} {% endif %}
{% if domainform %} {% if domainform %}
<h3>{% trans "Domain" %}</h3> <h3>{% trans "Domain" %}</h3>
@ -114,7 +121,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endif %} {% endif %}
{% if extensionform %} {% if extensionform %}
<h3>{% trans "Extension" %}</h3> <h3>{% trans "Extension" %}</h3>
{% massive_bootstrap_form extensionform 'origin' %} {% bootstrap_form extensionform %}
{% endif %} {% endif %}
{% if soaform %} {% if soaform %}
<h3>{% trans "SOA record" %}</h3> <h3>{% trans "SOA record" %}</h3>
@ -122,11 +129,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endif %} {% endif %}
{% if mxform %} {% if mxform %}
<h3>{% trans "MX record" %}</h3> <h3>{% trans "MX record" %}</h3>
{% massive_bootstrap_form mxform 'name' %} {% bootstrap_form mxform %}
{% endif %} {% endif %}
{% if nsform %} {% if nsform %}
<h3>{% trans "NS record" %}</h3> <h3>{% trans "NS record" %}</h3>
{% massive_bootstrap_form nsform 'ns' %} {% bootstrap_form nsform %}
{% endif %} {% endif %}
{% if txtform %} {% if txtform %}
<h3>{% trans "TXT record" %}</h3> <h3>{% trans "TXT record" %}</h3>
@ -138,7 +145,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endif %} {% endif %}
{% if srvform %} {% if srvform %}
<h3>{% trans "SRV record" %}</h3> <h3>{% trans "SRV record" %}</h3>
{% massive_bootstrap_form srvform 'target' %} {% bootstrap_form srvform %}
{% endif %} {% endif %}
{% if sshfpform %} {% if sshfpform %}
<h3>{% trans "SSHFP record" %}</h3> <h3>{% trans "SSHFP record" %}</h3>
@ -146,15 +153,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endif %} {% endif %}
{% if aliasform %} {% if aliasform %}
<h3>{% trans "Alias" %}</h3> <h3>{% trans "Alias" %}</h3>
{% massive_bootstrap_form aliasform 'extension' %} {% bootstrap_form aliasform %}
{% endif %} {% endif %}
{% if serviceform %} {% if serviceform %}
<h3>{% trans "Service" %}</h3> <h3>{% trans "Service" %}</h3>
{% massive_bootstrap_form serviceform 'servers' %} {% bootstrap_form serviceform %}
{% endif %} {% endif %}
{% if roleform %} {% if roleform %}
<h3>Role</h3> <h3>Role</h3>
{% massive_bootstrap_form roleform 'servers' %} {% bootstrap_form roleform %}
{% endif %} {% endif %}
{% if vlanform %} {% if vlanform %}
<h3>{% trans "VLAN" %}</h3> <h3>{% trans "VLAN" %}</h3>