Commit ac5d8e20 authored by Laouen Fernet's avatar Laouen Fernet Committed by chirac

Mark strings for translation in machines

parent 07ce7bd8
......@@ -41,6 +41,7 @@ def can_view(user):
can = user.has_module_perms("machines")
return (
can,
None if can else _("You don't have the right to view this" " application."),
None if can else _("You don't have the right to view this"
" application."),
("machines",),
)
This diff is collapsed.
......@@ -32,7 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<thead>
<tr>
<th>{% trans "Extension" %}</th>
<th>{% trans "'infra' right required" %}</th>
<th>{% blocktrans %}"infra" right required{% endblocktrans %}</th>
<th>{% trans "SOA record" %}</th>
<th>{% trans "A record origin" %}</th>
{% if ipv6_enabled %}
......
......@@ -34,7 +34,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<tr>
<th>{% trans "IP type" %}</th>
<th>{% trans "Extension" %}</th>
<th>{% trans "'infra' right required" %}</th>
<th>{% blocktrans %}"infra" right required{% endblocktrans %}</th>
<th>{% trans "IPv4 range" %}</th>
<th>{% trans "v6 prefix" %}</th>
<th>{% trans "DNSSEC reverse v4/v6" %}</th>
......
......@@ -123,7 +123,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<li>
<a href="{% url 'machines:edit-interface' interface.id %}">
<i class="fa fa-edit"></i>
{% trans " Edit" %}
{% trans "Edit" %}
</a>
</li>
{% acl_end %}
......@@ -131,7 +131,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<li>
<a href="{% url 'machines:index-alias' interface.id %}">
<i class="fa fa-edit"></i>
{% trans " Manage the aliases" %}
{% trans "Manage the aliases" %}
</a>
</li>
{% acl_end %}
......@@ -139,7 +139,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<li>
<a href="{% url 'machines:index-ipv6' interface.id %}">
<i class="fa fa-edit"></i>
{% trans " Manage the IPv6 addresses" %}
{% trans "Manage the IPv6 addresses" %}
</a>
</li>
{% acl_end %}
......@@ -147,7 +147,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<li>
<a href="{% url 'machines:index-sshfp' interface.machine.id %}">
<i class="fa fa-edit"></i>
{% trans " Manage the SSH fingerprints" %}
{% trans "Manage the SSH fingerprints" %}
</a>
</li>
{% acl_end %}
......@@ -155,7 +155,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<li>
<a href="{% url 'machines:port-config' interface.id %}">
<i class="fa fa-edit"></i>
{% trans " Manage the ports configuration" %}
{% trans "Manage the ports configuration" %}
</a>
</li>
{% acl_end %}
......
......@@ -31,8 +31,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<th>{% trans "Service name" %}</th>
<th>{% trans "Server" %}</th>
<th>{% trans "Last regeneration" %}</th>
<th>{% trans "Regeneration required" %}</th>
<th>{% trans "Regeneration activated" %}</th>
<th>{% trans "Regeneration asked" %}</th>
<th>{% trans "Regeneration needed" %}</th>
</tr>
</thead>
{% for server in servers_list %}
......
......@@ -47,11 +47,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</div>
<p>
{% trans "Add a port" as value %}
<input class="btn btn-primary btn-sm" role="button" value="value" id="add_one">
<input class="btn btn-primary btn-sm" role="button" value="{% trans "Add a port" %}" id="add_one">
</p>
{% trans "Create or edit" as tr_create_or_edit %}
{% bootstrap_button tr_create_or_edit icon='ok' button_class='btn-success' %}
{% trans "Confirm" as tr_confirm %}
{% bootstrap_button tr_confirm icon='ok' button_class='btn-success' %}
</form>
<script type="text/javascript">
var template = `{{ports.empty_form}}`;
......
......@@ -31,9 +31,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block content %}
<h2>{% trans "List of the aliases of the interface" %}</h2>
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-alias' interface_id %}"><i
class="fa fa-plus"></i>{% trans " Add an alias" %}</a>
class="fa fa-plus"></i> {% trans "Add an alias" %}</a>
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-alias' interface_id %}"><i
class="fa fa-trash"></i>{% trans " Delete one or several aliases" %}</a>
class="fa fa-trash"></i> {% trans "Delete one or several aliases" %}</a>
{% include 'machines/aff_alias.html' with alias_list=alias_list %}
<br/>
<br/>
......
......@@ -33,77 +33,76 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<h2>{% trans "List of extensions" %}</h2>
{% can_create Extension %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-extension' %}">
<i class="fa fa-plus"></i>
{% trans " Add an extension" %}</a>
<i class="fa fa-plus"></i> {% trans "Add an extension" %}</a>
{% acl_end %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-extension' %}">
<i class="fa fa-trash"></i>{% trans " Delete one or several extensions" %}
<i class="fa fa-trash"></i> {% trans "Delete one or several extensions" %}
</a>
{% include 'machines/aff_extension.html' with extension_list=extension_list %}
<h2>{% trans "List of SOA records" %}</h2>
{% can_create SOA %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-soa' %}">
<i class="fa fa-plus"></i>{% trans " Add an SOA record" %}
<i class="fa fa-plus"></i> {% trans "Add an SOA record" %}
</a>
{% acl_end %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-soa' %}">
<i class="fa fa-trash"></i>{% trans " Delete one or several SOA records" %}
<i class="fa fa-trash"></i> {% trans "Delete one or several SOA records" %}
</a>
{% include 'machines/aff_soa.html' with soa_list=soa_list %}
<h2>{% trans "List of MX records" %}</h2>
{% can_create Mx %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-mx' %}">
<i class="fa fa-plus"></i>{% trans " Add an MX record" %}
<i class="fa fa-plus"></i> {% trans "Add an MX record" %}
</a>
{% acl_end %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-mx' %}">
<i class="fa fa-trash"></i>{% trans " Delete one or several MX records" %}
<i class="fa fa-trash"></i> {% trans "Delete one or several MX records" %}
</a>
{% include 'machines/aff_mx.html' with mx_list=mx_list %}
<h2>{% trans "List of NS records" %}</h2>
{% can_create Ns %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-ns' %}">
<i class="fa fa-plus"></i>{% trans " Add an NS record" %}
<i class="fa fa-plus"></i> {% trans "Add an NS record" %}
</a>
{% acl_end %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-ns' %}">
<i class="fa fa-trash"></i>{% trans " Delete one or several NS records" %}
<i class="fa fa-trash"></i> {% trans "Delete one or several NS records" %}
</a>
{% include 'machines/aff_ns.html' with ns_list=ns_list %}
<h2>{% trans "List of TXT records" %}</h2>
{% can_create Txt %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-txt' %}">
<i class="fa fa-plus"></i>{% trans " Add a TXT record" %}
<i class="fa fa-plus"></i> {% trans "Add a TXT record" %}
</a>
{% acl_end %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-txt' %}">
<i class="fa fa-trash"></i>{% trans " Delete one or several TXT records" %}
<i class="fa fa-trash"></i> {% trans "Delete one or several TXT records" %}
</a>
{% include 'machines/aff_txt.html' with txt_list=txt_list %}
<h2>{% trans "List of DNAME records" %}</h2>
{% can_create DName %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-dname' %}">
<i class="fa fa-plus"></i> {% trans " Add a DNAME record" %}
<i class="fa fa-plus"></i> {% trans "Add a DNAME record" %}
</a>
{% acl_end %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-dname' %}">
<i class="fa fa-trash"></i> {% trans " Delete one or several DNAME records" %}
<i class="fa fa-trash"></i> {% trans "Delete one or several DNAME records" %}
</a>
{% include 'machines/aff_dname.html' with dname_list=dname_list %}
<h2>{% trans "List of SRV records" %}</h2>
{% can_create Srv %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-srv' %}">
<i class="fa fa-plus"></i>{% trans " Add an SRV record" %}
<i class="fa fa-plus"></i> {% trans "Add an SRV record" %}
</a>
{% acl_end %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-srv' %}">
<i class="fa fa-trash"></i>{% trans " Delete one or several SRV records" %}
<i class="fa fa-trash"></i> {% trans "Delete one or several SRV records" %}
</a>
{% include 'machines/aff_srv.html' with srv_list=srv_list %}
{% endblock %}
......@@ -33,11 +33,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<h2>{% trans "List of IP types" %}</h2>
{% can_create IpType %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-iptype' %}">
<i class="fa fa-plus"></i>{% trans " Add an IP type" %}
<i class="fa fa-plus"></i> {% trans "Add an IP type" %}
</a>
{% acl_end %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-iptype' %}">
<i class="fa fa-trash"></i>{% trans " Delete one or several IP types" %}
<i class="fa fa-trash"></i> {% trans "Delete one or several IP types" %}
</a>
{% include 'machines/aff_iptype.html' with iptype_list=iptype_list %}
{% endblock %}
......@@ -33,7 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<h2>{% trans "List of the IPv6 addresses of the interface" %}</h2>
{% can_create Ipv6List interface_id %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:new-ipv6list' interface_id %}">
<i class="fa fa-plus"></i>{% trans " Add an IPv6 address" %}
<i class="fa fa-plus"></i> {% trans "Add an IPv6 address" %}
</a>
{% acl_end %}
{% include 'machines/aff_ipv6.html' with ipv6_list=ipv6_list %}
......
......@@ -34,11 +34,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<h2>{% trans "List of machine types" %}</h2>
{% can_create MachineType %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-machinetype' %}">
<i class="fa fa-plus"></i>{% trans " Add a machine type" %}
<i class="fa fa-plus"></i> {% trans "Add a machine type" %}
</a>
{% acl_end %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-machinetype' %}">
<i class="fa fa-trash"></i>{% trans " Delete one or several machine types" %}
<i class="fa fa-trash"></i> {% trans "Delete one or several machine types" %}
</a>
{% include 'machines/aff_machinetype.html' with machinetype_list=machinetype_list %}
<br/>
......
......@@ -35,11 +35,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<h5>{% trans "The NAS device type and machine type are linked. It is useful for MAC address auto capture by RADIUS, and allows to choose the machine type to assign to the machines according to the NAS device type." %}</h5>
{% can_create Nas %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-nas' %}">
<i class="fa fa-plus"></i>{% trans " Add a NAS device type" %}
<i class="fa fa-plus"></i> {% trans "Add a NAS device type" %}
</a>
{% acl_end %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-nas' %}">
<i class="fa fa-trash"></i>{% trans " Delete one or several NAS device types" %}
<i class="fa fa-trash"></i> {% trans "Delete one or several NAS device types" %}
</a>
{% include 'machines/aff_nas.html' with nas_list=nas_list %}
<br/>
......
......@@ -11,7 +11,7 @@
<h2>{% trans "List of ports configurations" %}</h2>
{% can_create OuverturePortList %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-portlist' %}">
<i class="fa fa-plus"></i>{% trans " Add a configuration" %}
<i class="fa fa-plus"></i> {% trans "Add a configuration" %}
</a>
{% acl_end %}
<table class="table table-striped">
......
......@@ -33,9 +33,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<h2>{% trans "List of roles" %}</h2>
{% can_create Role %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-role' %}"><i
class="fa fa-plus"></i>{% trans " Add a role" %}</a>
class="fa fa-plus"></i> {% trans "Add a role" %}</a>
{% acl_end %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-role' %}"><i
class="fa fa-trash"></i>{% trans " Delete one or several roles" %}</a>
class="fa fa-trash"></i> {% trans "Delete one or several roles" %}</a>
{% include 'machines/aff_role.html' with role_list=role_list %}
{% endblock %}
......@@ -33,10 +33,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<h2>{% trans "List of services" %}</h2>
{% can_create machines.Service %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-service' %}"><i
class="fa fa-plus"></i>{% trans " Add a service" %}</a>
class="fa fa-plus"></i> {% trans "Add a service" %}</a>
{% acl_end %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-service' %}"><i
class="fa fa-trash"></i>{% trans " Delete one or several services" %}</a>
class="fa fa-trash"></i> {% trans "Delete one or several services" %}</a>
{% include 'machines/aff_service.html' with service_list=service_list %}
<h2>{% trans "States of servers" %}</h2>
......
......@@ -31,7 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<h2>{% trans "SSH fingerprints" %}</h2>
{% can_create SshFp machine_id %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:new-sshfp' machine_id %}">
<i class="fa fa-plus"></i>{% trans " Add an SSH fingerprint" %}
<i class="fa fa-plus"></i> {% trans "Add an SSH fingerprint" %}
</a>
{% acl_end %}
{% include 'machines/aff_sshfp.html' with sshfp_list=sshfp_list %}
......
......@@ -33,9 +33,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<h2>{% trans "List of VLANs" %}</h2>
{% can_create Vlan %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-vlan' %}"><i
class="fa fa-plus"></i>{% trans " Add a VLAN" %}</a>
class="fa fa-plus"></i> {% trans "Add a VLAN" %}</a>
{% acl_end %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-vlan' %}"><i
class="fa fa-trash"></i>{% trans " Delete one or several VLANs" %}</a>
class="fa fa-trash"></i> {% trans "Delete one or several VLANs" %}</a>
{% include 'machines/aff_vlan.html' with vlan_list=vlan_list %}
{% endblock %}
......@@ -60,7 +60,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% can_view_all Nas %}
<a class="list-group-item list-group-item-info" href="{% url 'machines:index-nas' %}">
<i class="fa fa-list-ul"></i>
{% trans "NAS devices" %}
{% trans "NAS devices" %}
</a>
{% acl_end %}
{% can_view_all machines.Service %}
......
......@@ -250,7 +250,7 @@ def new_machine(request, user, **_kwargs):
"interfaceform": interface,
"domainform": domain,
"i_mbf_param": i_mbf_param,
"action_name": _("Create a machine"),
"action_name": _("Add"),
},
"machines/machine.html",
request,
......@@ -314,7 +314,7 @@ def del_machine(request, machine, **_kwargs):
reverse("users:profil", kwargs={"userid": str(machine.user.id)})
)
return form(
{"objet": machine, "objet_name": "machine"}, "machines/delete.html", request
{"objet": machine, "objet_name": _("machine")}, "machines/delete.html", request
)
......@@ -345,7 +345,7 @@ def new_interface(request, machine, **_kwargs):
"interfaceform": interface_form,
"domainform": domain_form,
"i_mbf_param": i_mbf_param,
"action_name": _("Create an interface"),
"action_name": _("Add"),
},
"machines/machine.html",
request,
......@@ -366,7 +366,7 @@ def del_interface(request, interface, **_kwargs):
reverse("users:profil", kwargs={"userid": str(request.user.id)})
)
return form(
{"objet": interface, "objet_name": "interface"}, "machines/delete.html", request
{"objet": interface, "objet_name": _("interface")}, "machines/delete.html", request
)
......@@ -386,7 +386,7 @@ def new_ipv6list(request, interface, **_kwargs):
reverse("machines:index-ipv6", kwargs={"interfaceid": str(interface.id)})
)
return form(
{"ipv6form": ipv6, "action_name": _("Create an IPv6 addresses list")},
{"ipv6form": ipv6, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -426,7 +426,7 @@ def del_ipv6list(request, ipv6list, **_kwargs):
reverse("machines:index-ipv6", kwargs={"interfaceid": str(interfaceid)})
)
return form(
{"objet": ipv6list, "objet_name": "ipv6"}, "machines/delete.html", request
{"objet": ipv6list, "objet_name": _("IPv6 addresses list")}, "machines/delete.html", request
)
......@@ -444,7 +444,7 @@ def new_sshfp(request, machine, **_kwargs):
reverse("machines:index-sshfp", kwargs={"machineid": str(machine.id)})
)
return form(
{"sshfpform": sshfp, "action_name": _("Create a SSHFP record")},
{"sshfpform": sshfp, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -482,7 +482,7 @@ def del_sshfp(request, sshfp, **_kwargs):
reverse("machines:index-sshfp", kwargs={"machineid": str(machineid)})
)
return form(
{"objet": sshfp, "objet_name": "sshfp"}, "machines/delete.html", request
{"objet": sshfp, "objet_name": _("SSHFP record")}, "machines/delete.html", request
)
......@@ -498,7 +498,7 @@ def add_iptype(request):
messages.success(request, _("The IP type was created."))
return redirect(reverse("machines:index-iptype"))
return form(
{"iptypeform": iptype, "action_name": _("Create an IP type")},
{"iptypeform": iptype, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -563,7 +563,7 @@ def add_machinetype(request):
messages.success(request, _("The machine type was created."))
return redirect(reverse("machines:index-machinetype"))
return form(
{"machinetypeform": machinetype, "action_name": _("Create a machine" " type")},
{"machinetypeform": machinetype, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -626,7 +626,7 @@ def add_extension(request):
messages.success(request, _("The extension was created."))
return redirect(reverse("machines:index-extension"))
return form(
{"extensionform": extension, "action_name": _("Create an extension")},
{"extensionform": extension, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -688,7 +688,7 @@ def add_soa(request):
messages.success(request, _("The SOA record was created."))
return redirect(reverse("machines:index-extension"))
return form(
{"soaform": soa, "action_name": _("Create an SOA record")},
{"soaform": soa, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -740,7 +740,7 @@ def add_mx(request):
messages.success(request, _("The MX record was created."))
return redirect(reverse("machines:index-extension"))
return form(
{"mxform": mx, "action_name": _("Create an MX record")},
{"mxform": mx, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -792,7 +792,7 @@ def add_ns(request):
messages.success(request, _("The NS record was created."))
return redirect(reverse("machines:index-extension"))
return form(
{"nsform": ns, "action_name": _("Create an NS record")},
{"nsform": ns, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -844,7 +844,7 @@ def add_dname(request):
messages.success(request, _("The DNAME record was created."))
return redirect(reverse("machines:index-extension"))
return form(
{"dnameform": dname, "action_name": _("Create a DNAME record")},
{"dnameform": dname, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -899,7 +899,7 @@ def add_txt(request):
messages.success(request, _("The TXT record was created."))
return redirect(reverse("machines:index-extension"))
return form(
{"txtform": txt, "action_name": _("Create a TXT record")},
{"txtform": txt, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -951,7 +951,7 @@ def add_srv(request):
messages.success(request, _("The SRV record was created."))
return redirect(reverse("machines:index-extension"))
return form(
{"srvform": srv, "action_name": _("Create an SRV record")},
{"srvform": srv, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -1008,7 +1008,7 @@ def add_alias(request, interface, interfaceid):
reverse("machines:index-alias", kwargs={"interfaceid": str(interfaceid)})
)
return form(
{"aliasform": alias, "action_name": _("Create an alias")},
{"aliasform": alias, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -1069,7 +1069,7 @@ def add_role(request):
messages.success(request, _("The role was created."))
return redirect(reverse("machines:index-role"))
return form(
{"roleform": role, "action_name": _("Create a role")},
{"roleform": role, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -1121,7 +1121,7 @@ def add_service(request):
messages.success(request, _("The service was created."))
return redirect(reverse("machines:index-service"))
return form(
{"serviceform": service, "action_name": _("Create a service")},
{"serviceform": service, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -1187,7 +1187,7 @@ def add_vlan(request):
messages.success(request, _("The VLAN was created."))
return redirect(reverse("machines:index-vlan"))
return form(
{"vlanform": vlan, "action_name": _("Create a VLAN")},
{"vlanform": vlan, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -1239,7 +1239,7 @@ def add_nas(request):
messages.success(request, _("The NAS device was created."))
return redirect(reverse("machines:index-nas"))
return form(
{"nasform": nas, "action_name": _("Create a NAS device")},
{"nasform": nas, "action_name": _("Add")},
"machines/machine.html",
request,
)
......@@ -1558,8 +1558,8 @@ def configure_ports(request, interface_instance, **_kwargs):
request,
(
_(
"Warning: the IPv4 isn't public, the opening won't have effect"
" in v4."
"Warning: the IP address is not public, the opening won't"
" have any effect in v4."
)
),
)
......@@ -1572,7 +1572,7 @@ def configure_ports(request, interface_instance, **_kwargs):
messages.success(request, _("The ports configuration was edited."))
return redirect(reverse("machines:index"))
return form(
{"interfaceform": interface, "action_name": _("Edit the" " configuration")},
{"interfaceform": interface, "action_name": _("Edit")},
"machines/machine.html",
request,
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment