34 lines
1.2 KiB
HTML
34 lines
1.2 KiB
HTML
{% extends "authentic2_pratic/form.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block page-title %}{{ block.super }} - {% trans "Edit user" %} {{ object }}{% endblock %}
|
|
|
|
{% block page_title %}{% trans "Edit user" %} {{ object }}{% endblock %}
|
|
|
|
{% block more-user-links %}
|
|
{{ block.super }}
|
|
<a href="{% url 'a2-pratic-collectivities' %}">{% trans "Collectivities management" %}</a>
|
|
<a href="{% url 'a2-pratic-collectivity-edit' collectivity_pk=collectivity.pk %}">{{ collectivity }}</a>
|
|
<a href="{% url 'a2-pratic-users' collectivity_pk=collectivity.pk %}">{% trans "Agents management" %}</a>
|
|
<a href="#">{{ object.get_full_name }}</a>
|
|
{% endblock %}
|
|
|
|
{% block appbar %}
|
|
<h2>{{ object.get_full_name }}</h2>
|
|
{% endblock %}
|
|
|
|
{% block beforeform %}
|
|
<p>
|
|
<label for="id_uuid">{% trans "UUID" %} :</label>
|
|
<input disabled type="text" id="id_uuid" value="{{ form.instance.uuid }}"/>
|
|
</p>
|
|
{% endblock %}
|
|
|
|
{% block afterform %}
|
|
{% if object.passwordreset_set.exists %}
|
|
<div class="warning-box">{% trans "User must change its password on next access to authentic" %}
|
|
<input type="submit" name="delete_password_reset" value="{% trans "Cancel this constraint" %}"/>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|