From 1774bcf82bbb4003aac36d64c387fa140bf6b698 Mon Sep 17 00:00:00 2001 From: detraz Date: Sat, 29 Sep 2018 23:34:38 +0200 Subject: [PATCH] Frontend fix sur les editions de profils de port --- topologie/templates/topologie/topo.html | 2 +- topologie/views.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/topologie/templates/topologie/topo.html b/topologie/templates/topologie/topo.html index ad933a26..bf9f760b 100644 --- a/topologie/templates/topologie/topo.html +++ b/topologie/templates/topologie/topo.html @@ -37,7 +37,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endif %}
{% csrf_token %} - {% massive_bootstrap_form topoform 'room,related,machine_interface,members' %} + {% massive_bootstrap_form topoform 'room,related,machine_interface,members,vlan_tagged' %} {% bootstrap_button action_name icon='ok' button_class='btn-success' %}

diff --git a/topologie/views.py b/topologie/views.py index 74ea1148..77277ccf 100644 --- a/topologie/views.py +++ b/topologie/views.py @@ -1005,7 +1005,7 @@ def new_port_profile(request): if port_profile.is_valid(): port_profile.save() messages.success(request, _("The port profile was created.")) - return redirect(reverse('topologie:index')) + return redirect(reverse('topologie:index-port-profile')) return form( {'topoform': port_profile, 'action_name': _("Create")}, 'topologie/topo.html', @@ -1023,7 +1023,7 @@ def edit_port_profile(request, port_profile, **_kwargs): if port_profile.changed_data: port_profile.save() messages.success(request, _("The port profile was edited.")) - return redirect(reverse('topologie:index')) + return redirect(reverse('topologie:index-port-profile')) return form( {'topoform': port_profile, 'action_name': _("Edit")}, 'topologie/topo.html', @@ -1043,7 +1043,7 @@ def del_port_profile(request, port_profile, **_kwargs): except ProtectedError: messages.success(request, _("Impossible to delete the port profile.")) - return redirect(reverse('topologie:index')) + return redirect(reverse('topologie:index-port-profile')) return form( {'objet': port_profile, 'objet_name': _("Port profile")}, 'topologie/delete.html',