templates: use common breadcrumb in role edit page (#47703)
This commit is contained in:
parent
e71abfa96f
commit
0f848ec694
|
@ -1,11 +1,21 @@
|
|||
{% extends "authentic2/manager/form.html" %}
|
||||
{% load i18n %}
|
||||
{% extends "authentic2/manager/role_common.html" %}
|
||||
{% load i18n gadjo %}
|
||||
|
||||
{% block page-title %}{{ block.super }} - {% trans "Edit role" %} {{ object }}{% endblock %}
|
||||
|
||||
{% block breadcrumb %}
|
||||
{{ block.super }}
|
||||
<a href="{% url 'a2-manager-roles' %}">{% trans 'Roles' %}</a>
|
||||
<a href="..">{{ object }}</a>
|
||||
<a href="#">{% trans "Modify" %}</a>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form|with_template }}
|
||||
<div class="buttons">
|
||||
<button>{% trans "Save" %}</button>
|
||||
<a class="cancel" href="..">{% trans 'Cancel' %}</a>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue