add authorization rule edit template

This commit is contained in:
Paul Marillonnet 2019-05-03 10:13:40 +02:00
parent 2bfa718fbe
commit 55f6cbe2c4
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block page-title %}
{{ block.super }} - {{ view.title }}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="..">{% trans "Your account" %}</a>
<a href="">{{ view.title }}</a>
{% endblock %}
{% block content %}
<form enctype="multipart/form-data" method="post">
{% csrf_token %}
{{ form.as_p }}
{% if form.instance and form.instance.id %}
<button class="submit-button">{% trans "Submit" %}</button>
<button class="cancel-button" name="cancel" formnovalidate>{% trans "Cancel" %}</button>
{% else %}
<button class="submit-button">{% trans "Create" %}</button>
{% endif %}
</form>
{% endblock %}