templates: use common breadcrumb in role edit page (#47703)

This commit is contained in:
Valentin Deniaud 2021-05-26 14:50:38 +02:00
parent e71abfa96f
commit 0f848ec694
1 changed files with 13 additions and 3 deletions

View File

@ -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 %}