-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adhocracy-plus/templates: add missing password_set template
fixes #2721
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% extends "a4_candy_account/account_dashboard.html" %} | ||
|
||
{% load i18n %} | ||
|
||
{% block title %}{% translate "Set password" %} — {{ block.super }}{% endblock title %} | ||
|
||
{% block dashboard_content %} | ||
<h1 class="mt-0">{% translate "Set your password" %}</h1> | ||
|
||
<form name="PasswordSetForm" action="{% url 'account_set_password' %}" method="post"> | ||
{% csrf_token %} | ||
|
||
{% if form.non_field_errors %} | ||
<div class="form-errors"> | ||
{% for error in form.non_field_errors %} | ||
<p class="alert alert--danger">{{ error }}</p> | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
|
||
<div class="form-group"> | ||
<label for="{{ form.password1.id_for_label }}">{% translate "Password" %}</label> | ||
{{ form.password1.errors }} | ||
{{ form.password1 }} | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="{{ form.password2.id_for_label }}">{% translate "Repeat password" %}</label> | ||
{{ form.password2.errors }} | ||
{{ form.password2 }} | ||
</div> | ||
|
||
<div class="d-flex justify-content-end mb-3"> | ||
<button type="submit" value="reset" class="btn btn--primary">{% translate "Set password" %}</button> | ||
</div> | ||
</form> | ||
{% endblock dashboard_content %} |