8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 11:53:12 +00:00

Add autocomplete on topologie app

This commit is contained in:
chirac 2020-12-28 13:22:23 +01:00 committed by Gabriel Detraz
parent ec6076d169
commit 46f3f564b9
3 changed files with 7 additions and 7 deletions

View file

@ -24,7 +24,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %}
{% load bootstrap3 %}
{% load massive_bootstrap_form %}
{% load i18n %}
{% block title %}{% trans "Topology" %}{% endblock %}
@ -41,7 +40,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% csrf_token %}
{% if topoform %}
<h3>{% trans "Specific settings for the switch" %}</h3>
{% massive_bootstrap_form topoform 'switch_interface' %}
{% bootstrap_form topoform %}
{% endif %}
{% trans "Confirm" as tr_confirm %}
{% bootstrap_button tr_confirm button_type="submit" icon='ok' button_class='btn-success' %}

View file

@ -24,7 +24,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %}
{% load bootstrap3 %}
{% load massive_bootstrap_form %}
{% load i18n %}
{% block title %}{% trans "Topology" %}{% endblock %}
@ -37,11 +36,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endif %}
<form class="form" method="post">
{% csrf_token %}
{% massive_bootstrap_form topoform 'room,related,machine_interface,members,vlan_tagged,switch' %}
{% bootstrap_form topoform %}
{% bootstrap_button action_name icon='ok' button_class='btn-success' %}
</form>
<br />
<br />
<br />
{{ topoform.media }}
{% endblock %}

View file

@ -24,7 +24,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %}
{% load bootstrap3 %}
{% load massive_bootstrap_form %}
{% load i18n %}
{% block title %}{% trans "Topology" %}{% endblock %}
@ -46,11 +45,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% csrf_token %}
{% if topoform %}
<h3>{% blocktrans %}Specific settings for the {{ device }} object{% endblocktrans %}</h3>
{% massive_bootstrap_form topoform 'ipv4,machine' mbf_param=i_mbf_param%}
{% bootstrap_form topoform %}
{% endif %}
{% if machineform %}
<h3>{% blocktrans %}General settings for the machine linked to the {{ device }} object{% endblocktrans %}</h3>
{% massive_bootstrap_form machineform 'user' %}
{% bootstrap_form machineform %}
{% endif %}
{% if domainform %}
<h3>{% trans "DNS name" %}</h3>