Skip to content

Commit

Permalink
adhocracy-plus/templates: add missing password_set template
Browse files Browse the repository at this point in the history
fixes #2721
  • Loading branch information
goapunk authored and m4ra committed Jun 25, 2024
1 parent aad2092 commit a5a5024
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions adhocracy-plus/templates/account/password_set.html
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 %}

0 comments on commit a5a5024

Please sign in to comment.