2013-07-29 23:03:31 +02:00
|
|
|
{% extends "zerver/portico_signup.html" %}
|
2015-11-03 09:37:07 +01:00
|
|
|
{% load i18n %}
|
2013-04-08 21:24:44 +02:00
|
|
|
{% block customhead %}
|
|
|
|
{{ block.super }}
|
|
|
|
<script type="text/javascript" src="/static/third/zxcvbn/zxcvbn.js"></script>
|
|
|
|
{% endblock %}
|
|
|
|
|
2012-11-05 19:53:16 +01:00
|
|
|
{% block portico_content %}
|
|
|
|
|
|
|
|
<div class="pitch">
|
|
|
|
<hr/>
|
2015-11-03 09:37:07 +01:00
|
|
|
<h3>{% trans 'Reset your password' %}.</h3>
|
2012-11-05 19:53:16 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if validlink %}
|
2013-06-19 23:46:11 +02:00
|
|
|
<form method="post" id="password_reset" class="form-horizontal">
|
2012-11-05 19:53:16 +01:00
|
|
|
{% csrf_token %}
|
|
|
|
<div class="control-group">
|
2015-11-03 09:37:07 +01:00
|
|
|
<label for="id_new_password1" class="control-label">{% trans 'Password' %}</label>
|
2012-11-05 19:53:16 +01:00
|
|
|
<div class="controls">
|
|
|
|
<input id="id_new_password1" class="required" type="password" name="new_password1"
|
|
|
|
value="{% if form.new_password1.value %}{{ form.new_password1.value }}{% endif %}"
|
|
|
|
maxlength="100" />
|
|
|
|
{% if form.new_password1.errors %}
|
|
|
|
{% for error in form.new_password1.errors %}
|
|
|
|
<div class="alert alert-error">{{ error }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-04-08 21:24:44 +02:00
|
|
|
<div class="control-group">
|
2015-11-03 09:37:07 +01:00
|
|
|
<label class="control-label">{% trans 'Password strength' %}</label>
|
2013-04-08 21:24:44 +02:00
|
|
|
<div class="controls">
|
|
|
|
<div class="progress" id="pw_strength">
|
|
|
|
<div class="bar bar-danger" style="width: 10%;"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-11-05 19:53:16 +01:00
|
|
|
<div class="control-group">
|
2015-11-03 09:37:07 +01:00
|
|
|
<label for="id_new_password2" class="control-label">{% trans 'Confirm password' %}</label>
|
2012-11-05 19:53:16 +01:00
|
|
|
<div class="controls">
|
|
|
|
<input id="id_new_password2" class="required" type="password" name="new_password2"
|
|
|
|
value="{% if form.new_password2.value %}{{ form.new_password2.value }}{% endif %}"
|
|
|
|
maxlength="100" />
|
|
|
|
{% if form.new_password2.errors %}
|
|
|
|
{% for error in form.new_password2.errors %}
|
|
|
|
<div class="alert alert-error">{{ error }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<div class="controls">
|
|
|
|
<input type="submit" class="btn btn-primary" value="Submit" /><br />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
autofocus('#id_new_password1');
|
|
|
|
</script>
|
|
|
|
{% else %}
|
2015-11-03 09:37:07 +01:00
|
|
|
<p>{% trans 'Sorry, the link you provided is invalid or has already been used' %}.</p>
|
2012-11-05 19:53:16 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endblock %}
|