OpenSlides/openslides/participant/templates/participant/edit.html

30 lines
1.1 KiB
HTML

{% extends "participant/base_participant.html" %}
{% block title %}{{ block.super }} - {%trans "Participant" %} {% endblock %}
{% block content %}
{% if edituser %}
<h1>{%trans "Edit participant" %}</h1>
{% else %}
<h1>{%trans "New participant" %}</h1>
{% endif %}
<form action="" method="post">{% csrf_token %}
{{ userform.as_p }}
{{ profileform.as_p }}
{% if edituser %}
<p><a href="{% url user_reset_password edituser.id %}">{% trans 'Reset to First Password' %}</a></p>
{% endif %}
<button class="button" type="submit">
<span class="icon ok">{%trans 'Save' %}</span>
</button>
<button class="button" type="submit" name="apply">
<span class="icon apply">{%trans 'Apply' %}</span>
</button>
<a href='{% url user_overview %}'>
<button class="button" type="button" onclick="window.location='{% url user_overview %}'">
<span class="icon cancel">{%trans 'Cancel' %}</span>
</button>
</a>
</form>
{% endblock %}