authentic/src/authentic2/templates/authentic2/accounts_edit.html

29 lines
786 B
HTML

{% extends "authentic2/base-page.html" %}
{% load i18n gadjo %}
{% 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|with_template }}
<div class="buttons">
{% 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 %}
</div>
</form>
{% endblock %}