Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
70 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,36 @@ | ||
{% extends "page.jinja.html" %} | ||
|
||
{% block title %}{{ _('Reset Your Password') }} - {{ super() }}{% endblock %} | ||
|
||
{% block breadcrumb %} | ||
<ol class="breadcrumb"> | ||
<li class="current">{{ _('Password Reset') }}</li> | ||
</ol> | ||
{% endblock %} | ||
|
||
{% block primary_content %} | ||
<article class="module"> | ||
<h1 class="heading">{{ _('Reset Your Password') }}</h1> | ||
<div class="content"> | ||
{% block form %} | ||
<form class="form-horizontal" action="" method="post"> | ||
{{ form.errors(error_summary) }} | ||
{{ form.input("password1", id="field-password", label=_("Password"), type="password", placeholder="••••••••", value=data.password1, error=errors.password1, classes=["control-medium"]) }} | ||
{{ form.input("password2", id="field-confirm-password", label=_("Confirm"), type="password", placeholder="••••••••", value=data.password2, error=errors.password1, classes=["control-medium"]) }} | ||
<div class="form-actions"> | ||
<button class="btn btn-primary" type="submit" name="save">{{ _("Update Password") }}</button> | ||
</div> | ||
</form> | ||
{% endblock %} | ||
</div> | ||
</article> | ||
{% endblock %} | ||
|
||
{% block secondary_content %} | ||
<section class="module info"> | ||
<h2 class="heading">{{ _('How does this work?') }}</h2> | ||
<div class="content"> | ||
<p>{% trans %}Simply enter a new password and we'll update your account{% endtrans %}</p> | ||
</div> | ||
</section> | ||
{% endblock %} |
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,34 @@ | ||
{% extends "page.jinja.html" %} | ||
|
||
{% block title %}{{ _('Reset Your Password') }} - {{ super() }}{% endblock %} | ||
|
||
{% block breadcrumb %} | ||
<ol class="breadcrumb"> | ||
<li class="current">{{ h.nav_link(_('Password Reset'), controller='user', action='register') }}</li> | ||
</ol> | ||
{% endblock %} | ||
|
||
{% block primary_content %} | ||
<article class="module"> | ||
<h1 class="heading">{{ _('Reset Your Password') }}</h1> | ||
<div class="content"> | ||
{% block form %} | ||
<form action="" method="post" class="form-inline control-medium"> | ||
<label for="field-username">Username</label> | ||
<input id="field-username" name="user" value="" /> | ||
<button type="submit" name="reset" class="btn btn-primary">{{ _("Request Reset") }}</button> | ||
</form> | ||
{% endblock %} | ||
</div> | ||
</article> | ||
{% endblock %} | ||
|
||
{% block secondary_content %} | ||
<section class="module info"> | ||
<h2 class="heading">{{ _('How does this work?') }}</h2> | ||
<div class="content"> | ||
<p>{% trans %}Enter your username into the box and we will send you | ||
an email with a link to enter a new password.{% endtrans %}</p> | ||
</div> | ||
</section> | ||
{% endblock %} |