Commit ed436f44c2e4334383d02390b4167f1a4a6f618a
Committed by
Sergio Oliveira
1 parent
7c9dab31
Exists in
master
and in
39 other branches
Adding register templates directory
Signed-off-by: Alexandre Barbosa <alexandreab@live.com> Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com>
Showing
14 changed files
with
264 additions
and
264 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,56 @@ |
| 1 | +{% extends "base.html" %} | |
| 2 | +{% load i18n %} | |
| 3 | +{% block main-content %} | |
| 4 | + | |
| 5 | + | |
| 6 | +<div class="row"> | |
| 7 | + {% if form.errors %} | |
| 8 | + <div class="alert alert-danger"> | |
| 9 | + <b>{% trans "Please correct the errors below and try again" %}</b> | |
| 10 | + </div> | |
| 11 | + {% endif %} | |
| 12 | + | |
| 13 | + {% for error in form.non_field_errors %} | |
| 14 | + <div class="alert alert-danger"> | |
| 15 | + {{ error }} | |
| 16 | + </div> | |
| 17 | + {% endfor %} | |
| 18 | +</div> | |
| 19 | + | |
| 20 | + | |
| 21 | +<br> | |
| 22 | +<form action="{% url 'login' %}" method="post" role="form" class="form-horizontal signup"> | |
| 23 | + {% csrf_token %} | |
| 24 | + | |
| 25 | + <div class="row"> | |
| 26 | + <div class="col-md-4 col-md-offset-4 col-lg-4 col-lg-4 col-sm-8 col-sm-offset-2 col-xs-12"> | |
| 27 | + <div class="panel panel-default"> | |
| 28 | + <div class="panel-heading"><h3 class="panel-title">{% trans 'Login' %}</h3></div> | |
| 29 | + | |
| 30 | + <div class="panel-body"> | |
| 31 | + <div class="form-group{% if form.username.errors %} alert alert-danger has-error{% endif %}"> | |
| 32 | + {{ form.username.label_tag }} | |
| 33 | + <input class="form-control" id="id_username" maxlength="254" name="username" type="text"> | |
| 34 | + {{ form.username.errors }} | |
| 35 | + </div> | |
| 36 | + <div class="form-group{% if form.password.errors %} alert alert-danger has-error{% endif %}"> | |
| 37 | + {{ form.password.label_tag }} | |
| 38 | + <input class="form-control" id="id_password" name="password" type="password"> | |
| 39 | + {{ form.password.errors }} | |
| 40 | + </div> | |
| 41 | + </div> | |
| 42 | + </div> | |
| 43 | + </div> | |
| 44 | + </div> | |
| 45 | + | |
| 46 | + <div class="row"> | |
| 47 | + <div class="submit"> | |
| 48 | + <input type="submit" value="{% trans 'Login' %}" class="btn btn-primary btn-lg btn-block"> | |
| 49 | + </div> | |
| 50 | + <p class="text-center"><a href="{% url 'password_reset' %}">{% trans 'Forgot Password?' %}</a></p> | |
| 51 | + </div> | |
| 52 | + | |
| 53 | +</form> | |
| 54 | + | |
| 55 | +{% endblock %} | |
| 56 | + | ... | ... |
colab/accounts/templates/registration/password_change_form_custom.html
0 → 100644
| ... | ... | @@ -0,0 +1,61 @@ |
| 1 | +{% extends "base.html" %} | |
| 2 | +{% load i18n %} | |
| 3 | +{% block main-content %} | |
| 4 | + | |
| 5 | +<div class="row"> | |
| 6 | + {% if form.errors %} | |
| 7 | + <div class="alert alert-danger"> | |
| 8 | + <b> | |
| 9 | + {% if form.errors.items|length == 1 %} | |
| 10 | + <!-- FIXME: This message was not translated yet --> | |
| 11 | + {% trans "Please correct the error below and try again." %} | |
| 12 | + {% else %} | |
| 13 | + {% trans "Please correct the errors below and try again." %} | |
| 14 | + {% endif %} | |
| 15 | + </b> | |
| 16 | + </div> | |
| 17 | + {% endif %} | |
| 18 | +</div> | |
| 19 | + | |
| 20 | +<br> | |
| 21 | +<form action="" method="post" role="form" class="form-horizontal signup"> | |
| 22 | + {% csrf_token %} | |
| 23 | + | |
| 24 | + <div class="row"> | |
| 25 | + <div class="col-md-4 col-md-offset-4 col-lg-4 col-lg-offset-4 col-sm-8 col-sm-offset-2 col-xs-12"> | |
| 26 | + <div class="panel panel-default"> | |
| 27 | + <div class="panel-heading"><h3 class="panel-title">{% trans 'Change Password' %}</h3></div> | |
| 28 | + | |
| 29 | + <div class="panel-body"> | |
| 30 | + <div class="form-group{% if form.old_password.errors %} alert alert-danger has-error{% endif %}"> | |
| 31 | + {{ form.old_password.label_tag }} | |
| 32 | + <input class="form-control" id="id_old_password" maxlength="254" name="old_password" type="password"> | |
| 33 | + {{ form.old_password.errors }} | |
| 34 | + </div> | |
| 35 | + | |
| 36 | + <div class="form-group{% if form.new_password1.errors %} alert alert-danger has-error{% endif %}"> | |
| 37 | + {{ form.new_password1.label_tag }} | |
| 38 | + <input class="form-control" id="id_new_password1" maxlength="254" name="new_password1" type="password"> | |
| 39 | + {{ form.new_password1.errors }} | |
| 40 | + </div> | |
| 41 | + | |
| 42 | + <div class="form-group{% if form.new_password2.errors %} alert alert-danger has-error{% endif %}"> | |
| 43 | + {{ form.new_password2.label_tag }} | |
| 44 | + <input class="form-control" id="id_new_password2" maxlength="254" name="new_password2" type="password"> | |
| 45 | + {{ form.new_password2.errors }} | |
| 46 | + </div> | |
| 47 | + | |
| 48 | + </div> | |
| 49 | + </div> | |
| 50 | + </div> | |
| 51 | + </div> | |
| 52 | + | |
| 53 | + <div class="row"> | |
| 54 | + <div class="submit"> | |
| 55 | + <input type="submit" value="{% trans 'Change my password' %}" class="btn btn-primary btn-lg btn-block"> | |
| 56 | + </div> | |
| 57 | + <script type="text/javascript">document.getElementById("id_old_password").focus();</script> | |
| 58 | + </div> | |
| 59 | +</form> | |
| 60 | + | |
| 61 | +{% endblock %} | ... | ... |
colab/accounts/templates/registration/password_reset_complete_custom.html
0 → 100644
colab/accounts/templates/registration/password_reset_confirm_custom.html
0 → 100644
| ... | ... | @@ -0,0 +1,64 @@ |
| 1 | +{% extends "base.html" %} | |
| 2 | +{% load i18n %} | |
| 3 | +{% block title %}{% trans "Setting New password" %}{% endblock %} | |
| 4 | +{% block main-content %} | |
| 5 | + {% if validlink %} | |
| 6 | + | |
| 7 | + <div class="row"> | |
| 8 | + {% if form.errors %} | |
| 9 | + <div class="alert alert-danger"> | |
| 10 | + <b> | |
| 11 | + {% if form.errors.items|length == 1 %} | |
| 12 | + {% trans "Please correct the error below and try again." %} | |
| 13 | + {% else %} | |
| 14 | + <!-- FIXME: This message was not translated yet --> | |
| 15 | + {% trans "Please correct the errors below and try again." %} | |
| 16 | + {% endif %} | |
| 17 | + </b> | |
| 18 | + </div> | |
| 19 | + {% endif %} | |
| 20 | + </div> | |
| 21 | + | |
| 22 | + <br> | |
| 23 | + <form action="" method="post" role="form" class="form-horizontal signup"> | |
| 24 | + {% csrf_token %} | |
| 25 | + | |
| 26 | + <div class="row"> | |
| 27 | + <div class="col-md-4 col-md-offset-4 col-lg-4 col-lg-offset-4 col-sm-8 col-sm-offset-2 col-xs-12"> | |
| 28 | + <div class="panel panel-default"> | |
| 29 | + <div class="panel-heading"><h3 class="panel-title">{% trans 'Change Password' %}</h3></div> | |
| 30 | + | |
| 31 | + <div class="panel-body"> | |
| 32 | + | |
| 33 | + <div class="form-group{% if form.new_password1.errors %} alert alert-danger has-error{% endif %}"> | |
| 34 | + {{ form.new_password1.label_tag }} | |
| 35 | + <input class="form-control" id="id_new_password1" maxlength="254" name="new_password1" type="password"> | |
| 36 | + {{ form.new_password1.errors }} | |
| 37 | + </div> | |
| 38 | + | |
| 39 | + <div class="form-group{% if form.new_password2.errors %} alert alert-danger has-error{% endif %}"> | |
| 40 | + {{ form.new_password2.label_tag }} | |
| 41 | + <input class="form-control" id="id_new_password2" maxlength="254" name="new_password2" type="password"> | |
| 42 | + {{ form.new_password2.errors }} | |
| 43 | + </div> | |
| 44 | + | |
| 45 | + </div> | |
| 46 | + </div> | |
| 47 | + </div> | |
| 48 | + </div> | |
| 49 | + | |
| 50 | + <div class="row"> | |
| 51 | + <div class="submit"> | |
| 52 | + <input type="submit" value="{% trans 'Change my password' %}" class="btn btn-primary btn-lg btn-block"> | |
| 53 | + </div> | |
| 54 | + <script type="text/javascript">document.getElementById("id_new_password1").focus();</script> | |
| 55 | + </div> | |
| 56 | + </form> | |
| 57 | + {% else %} | |
| 58 | + <h1>Password reset unsuccessful</h1> | |
| 59 | + <p>The password reset link was invalid, <br /> | |
| 60 | + possibly because it has already been used. <br /> | |
| 61 | + Please request a new password reset.</p> | |
| 62 | + {% endif %} | |
| 63 | + | |
| 64 | +{% endblock %} | ... | ... |
colab/accounts/templates/registration/password_reset_done_custom.html
0 → 100644
| ... | ... | @@ -0,0 +1,8 @@ |
| 1 | +{% extends "base.html" %} | |
| 2 | + | |
| 3 | +{% block title %}Password reset successful{% endblock %} | |
| 4 | + | |
| 5 | +{% block main-content %} | |
| 6 | +<p>We've e-mailed you instructions for setting your password to the e-mail address you submitted.</p> | |
| 7 | +<p>You should be receiving it shortly.</p> | |
| 8 | +{% endblock %} | ... | ... |
colab/accounts/templates/registration/password_reset_email_custom.html
0 → 100644
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +{% autoescape off %} | |
| 2 | +You're receiving this e-mail because you requested a password reset for your user account at {{ site_name }}. | |
| 3 | + | |
| 4 | +Please go to the following page and choose a new password: | |
| 5 | +{% block reset_link %} | |
| 6 | +{{ protocol }}://{{ domain }}{% url django.contrib.auth.views.password_reset_confirm uidb64=uid, token=token %} | |
| 7 | +{% endblock %} | |
| 8 | + | |
| 9 | +Your username, in case you've forgotten: {{ user.username }} | |
| 10 | + | |
| 11 | +Thanks for using our site! | |
| 12 | + | |
| 13 | +The {{ site_name }} team. | |
| 14 | + | |
| 15 | +{% endautoescape %} | ... | ... |
colab/accounts/templates/registration/password_reset_form_custom.html
0 → 100644
| ... | ... | @@ -0,0 +1,52 @@ |
| 1 | +{% extends "base.html" %} | |
| 2 | +{% load i18n %} | |
| 3 | +{% block main-content %} | |
| 4 | + | |
| 5 | + | |
| 6 | +<div class="row"> | |
| 7 | + {% if form.errors %} | |
| 8 | + <div class="alert alert-danger"> | |
| 9 | + <b>{% trans "Please correct the errors below and try again" %}</b> | |
| 10 | + </div> | |
| 11 | + {% endif %} | |
| 12 | +</div> | |
| 13 | + | |
| 14 | +<br> | |
| 15 | +<form action="" method="post" role="form" class="form-horizontal signup"> | |
| 16 | + {% csrf_token %} | |
| 17 | + | |
| 18 | + <div class="row"> | |
| 19 | + <div class="col-md-4 col-md-offset-4 col-lg-6 col-lg-offset-3 col-sm-8 col-sm-offset-2 col-xs-12"> | |
| 20 | + <div class="panel panel-default"> | |
| 21 | + <div class="panel-heading"><h3 class="panel-title">{{ title }}</h3></div> | |
| 22 | + <div class="panel-body"> | |
| 23 | + <div class= >{% trans "Forgotten your password? Enter your email address below, and we'll email instructions for setting a new one." %}</div> | |
| 24 | + <br> | |
| 25 | + <div class="form-group{% if form.email.errors %} alert alert-danger has-error{% endif %}"> | |
| 26 | + <label>{% trans 'Email address:' %}</label> | |
| 27 | + <input class="form-control" id="id_email" maxlength="254" name="email" type="email"> | |
| 28 | + {{ form.email.errors }} | |
| 29 | + </div> | |
| 30 | + </div> | |
| 31 | + </div> | |
| 32 | + </div> | |
| 33 | + </div> | |
| 34 | + | |
| 35 | + <div class="row"> | |
| 36 | + <div class="submit"> | |
| 37 | + <input class="btn btn-primary btn-lg btn-block" type="submit" value="Reset password" /></p> | |
| 38 | + </div> | |
| 39 | + </div> | |
| 40 | + | |
| 41 | +</form> | |
| 42 | + | |
| 43 | +{% endblock %} | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | ... | ... |
src/accounts/templates/registration/login.html
| ... | ... | @@ -1,56 +0,0 @@ |
| 1 | -{% extends "base.html" %} | |
| 2 | -{% load i18n %} | |
| 3 | -{% block main-content %} | |
| 4 | - | |
| 5 | - | |
| 6 | -<div class="row"> | |
| 7 | - {% if form.errors %} | |
| 8 | - <div class="alert alert-danger"> | |
| 9 | - <b>{% trans "Please correct the errors below and try again" %}</b> | |
| 10 | - </div> | |
| 11 | - {% endif %} | |
| 12 | - | |
| 13 | - {% for error in form.non_field_errors %} | |
| 14 | - <div class="alert alert-danger"> | |
| 15 | - {{ error }} | |
| 16 | - </div> | |
| 17 | - {% endfor %} | |
| 18 | -</div> | |
| 19 | - | |
| 20 | - | |
| 21 | -<br> | |
| 22 | -<form action="{% url 'login' %}" method="post" role="form" class="form-horizontal signup"> | |
| 23 | - {% csrf_token %} | |
| 24 | - | |
| 25 | - <div class="row"> | |
| 26 | - <div class="col-md-4 col-md-offset-4 col-lg-4 col-lg-4 col-sm-8 col-sm-offset-2 col-xs-12"> | |
| 27 | - <div class="panel panel-default"> | |
| 28 | - <div class="panel-heading"><h3 class="panel-title">{% trans 'Login' %}</h3></div> | |
| 29 | - | |
| 30 | - <div class="panel-body"> | |
| 31 | - <div class="form-group{% if form.username.errors %} alert alert-danger has-error{% endif %}"> | |
| 32 | - {{ form.username.label_tag }} | |
| 33 | - <input class="form-control" id="id_username" maxlength="254" name="username" type="text"> | |
| 34 | - {{ form.username.errors }} | |
| 35 | - </div> | |
| 36 | - <div class="form-group{% if form.password.errors %} alert alert-danger has-error{% endif %}"> | |
| 37 | - {{ form.password.label_tag }} | |
| 38 | - <input class="form-control" id="id_password" name="password" type="password"> | |
| 39 | - {{ form.password.errors }} | |
| 40 | - </div> | |
| 41 | - </div> | |
| 42 | - </div> | |
| 43 | - </div> | |
| 44 | - </div> | |
| 45 | - | |
| 46 | - <div class="row"> | |
| 47 | - <div class="submit"> | |
| 48 | - <input type="submit" value="{% trans 'Login' %}" class="btn btn-primary btn-lg btn-block"> | |
| 49 | - </div> | |
| 50 | - <p class="text-center"><a href="{% url 'password_reset' %}">{% trans 'Forgot Password?' %}</a></p> | |
| 51 | - </div> | |
| 52 | - | |
| 53 | -</form> | |
| 54 | - | |
| 55 | -{% endblock %} | |
| 56 | - |
src/accounts/templates/registration/password_change_form_custom.html
| ... | ... | @@ -1,61 +0,0 @@ |
| 1 | -{% extends "base.html" %} | |
| 2 | -{% load i18n %} | |
| 3 | -{% block main-content %} | |
| 4 | - | |
| 5 | -<div class="row"> | |
| 6 | - {% if form.errors %} | |
| 7 | - <div class="alert alert-danger"> | |
| 8 | - <b> | |
| 9 | - {% if form.errors.items|length == 1 %} | |
| 10 | - <!-- FIXME: This message was not translated yet --> | |
| 11 | - {% trans "Please correct the error below and try again." %} | |
| 12 | - {% else %} | |
| 13 | - {% trans "Please correct the errors below and try again." %} | |
| 14 | - {% endif %} | |
| 15 | - </b> | |
| 16 | - </div> | |
| 17 | - {% endif %} | |
| 18 | -</div> | |
| 19 | - | |
| 20 | -<br> | |
| 21 | -<form action="" method="post" role="form" class="form-horizontal signup"> | |
| 22 | - {% csrf_token %} | |
| 23 | - | |
| 24 | - <div class="row"> | |
| 25 | - <div class="col-md-4 col-md-offset-4 col-lg-4 col-lg-offset-4 col-sm-8 col-sm-offset-2 col-xs-12"> | |
| 26 | - <div class="panel panel-default"> | |
| 27 | - <div class="panel-heading"><h3 class="panel-title">{% trans 'Change Password' %}</h3></div> | |
| 28 | - | |
| 29 | - <div class="panel-body"> | |
| 30 | - <div class="form-group{% if form.old_password.errors %} alert alert-danger has-error{% endif %}"> | |
| 31 | - {{ form.old_password.label_tag }} | |
| 32 | - <input class="form-control" id="id_old_password" maxlength="254" name="old_password" type="password"> | |
| 33 | - {{ form.old_password.errors }} | |
| 34 | - </div> | |
| 35 | - | |
| 36 | - <div class="form-group{% if form.new_password1.errors %} alert alert-danger has-error{% endif %}"> | |
| 37 | - {{ form.new_password1.label_tag }} | |
| 38 | - <input class="form-control" id="id_new_password1" maxlength="254" name="new_password1" type="password"> | |
| 39 | - {{ form.new_password1.errors }} | |
| 40 | - </div> | |
| 41 | - | |
| 42 | - <div class="form-group{% if form.new_password2.errors %} alert alert-danger has-error{% endif %}"> | |
| 43 | - {{ form.new_password2.label_tag }} | |
| 44 | - <input class="form-control" id="id_new_password2" maxlength="254" name="new_password2" type="password"> | |
| 45 | - {{ form.new_password2.errors }} | |
| 46 | - </div> | |
| 47 | - | |
| 48 | - </div> | |
| 49 | - </div> | |
| 50 | - </div> | |
| 51 | - </div> | |
| 52 | - | |
| 53 | - <div class="row"> | |
| 54 | - <div class="submit"> | |
| 55 | - <input type="submit" value="{% trans 'Change my password' %}" class="btn btn-primary btn-lg btn-block"> | |
| 56 | - </div> | |
| 57 | - <script type="text/javascript">document.getElementById("id_old_password").focus();</script> | |
| 58 | - </div> | |
| 59 | -</form> | |
| 60 | - | |
| 61 | -{% endblock %} |
src/accounts/templates/registration/password_reset_complete_custom.html
src/accounts/templates/registration/password_reset_confirm_custom.html
| ... | ... | @@ -1,64 +0,0 @@ |
| 1 | -{% extends "base.html" %} | |
| 2 | -{% load i18n %} | |
| 3 | -{% block title %}{% trans "Setting New password" %}{% endblock %} | |
| 4 | -{% block main-content %} | |
| 5 | - {% if validlink %} | |
| 6 | - | |
| 7 | - <div class="row"> | |
| 8 | - {% if form.errors %} | |
| 9 | - <div class="alert alert-danger"> | |
| 10 | - <b> | |
| 11 | - {% if form.errors.items|length == 1 %} | |
| 12 | - {% trans "Please correct the error below and try again." %} | |
| 13 | - {% else %} | |
| 14 | - <!-- FIXME: This message was not translated yet --> | |
| 15 | - {% trans "Please correct the errors below and try again." %} | |
| 16 | - {% endif %} | |
| 17 | - </b> | |
| 18 | - </div> | |
| 19 | - {% endif %} | |
| 20 | - </div> | |
| 21 | - | |
| 22 | - <br> | |
| 23 | - <form action="" method="post" role="form" class="form-horizontal signup"> | |
| 24 | - {% csrf_token %} | |
| 25 | - | |
| 26 | - <div class="row"> | |
| 27 | - <div class="col-md-4 col-md-offset-4 col-lg-4 col-lg-offset-4 col-sm-8 col-sm-offset-2 col-xs-12"> | |
| 28 | - <div class="panel panel-default"> | |
| 29 | - <div class="panel-heading"><h3 class="panel-title">{% trans 'Change Password' %}</h3></div> | |
| 30 | - | |
| 31 | - <div class="panel-body"> | |
| 32 | - | |
| 33 | - <div class="form-group{% if form.new_password1.errors %} alert alert-danger has-error{% endif %}"> | |
| 34 | - {{ form.new_password1.label_tag }} | |
| 35 | - <input class="form-control" id="id_new_password1" maxlength="254" name="new_password1" type="password"> | |
| 36 | - {{ form.new_password1.errors }} | |
| 37 | - </div> | |
| 38 | - | |
| 39 | - <div class="form-group{% if form.new_password2.errors %} alert alert-danger has-error{% endif %}"> | |
| 40 | - {{ form.new_password2.label_tag }} | |
| 41 | - <input class="form-control" id="id_new_password2" maxlength="254" name="new_password2" type="password"> | |
| 42 | - {{ form.new_password2.errors }} | |
| 43 | - </div> | |
| 44 | - | |
| 45 | - </div> | |
| 46 | - </div> | |
| 47 | - </div> | |
| 48 | - </div> | |
| 49 | - | |
| 50 | - <div class="row"> | |
| 51 | - <div class="submit"> | |
| 52 | - <input type="submit" value="{% trans 'Change my password' %}" class="btn btn-primary btn-lg btn-block"> | |
| 53 | - </div> | |
| 54 | - <script type="text/javascript">document.getElementById("id_new_password1").focus();</script> | |
| 55 | - </div> | |
| 56 | - </form> | |
| 57 | - {% else %} | |
| 58 | - <h1>Password reset unsuccessful</h1> | |
| 59 | - <p>The password reset link was invalid, <br /> | |
| 60 | - possibly because it has already been used. <br /> | |
| 61 | - Please request a new password reset.</p> | |
| 62 | - {% endif %} | |
| 63 | - | |
| 64 | -{% endblock %} |
src/accounts/templates/registration/password_reset_done_custom.html
| ... | ... | @@ -1,8 +0,0 @@ |
| 1 | -{% extends "base.html" %} | |
| 2 | - | |
| 3 | -{% block title %}Password reset successful{% endblock %} | |
| 4 | - | |
| 5 | -{% block main-content %} | |
| 6 | -<p>We've e-mailed you instructions for setting your password to the e-mail address you submitted.</p> | |
| 7 | -<p>You should be receiving it shortly.</p> | |
| 8 | -{% endblock %} |
src/accounts/templates/registration/password_reset_email_custom.html
| ... | ... | @@ -1,15 +0,0 @@ |
| 1 | -{% autoescape off %} | |
| 2 | -You're receiving this e-mail because you requested a password reset for your user account at {{ site_name }}. | |
| 3 | - | |
| 4 | -Please go to the following page and choose a new password: | |
| 5 | -{% block reset_link %} | |
| 6 | -{{ protocol }}://{{ domain }}{% url django.contrib.auth.views.password_reset_confirm uidb64=uid, token=token %} | |
| 7 | -{% endblock %} | |
| 8 | - | |
| 9 | -Your username, in case you've forgotten: {{ user.username }} | |
| 10 | - | |
| 11 | -Thanks for using our site! | |
| 12 | - | |
| 13 | -The {{ site_name }} team. | |
| 14 | - | |
| 15 | -{% endautoescape %} |
src/accounts/templates/registration/password_reset_form_custom.html
| ... | ... | @@ -1,52 +0,0 @@ |
| 1 | -{% extends "base.html" %} | |
| 2 | -{% load i18n %} | |
| 3 | -{% block main-content %} | |
| 4 | - | |
| 5 | - | |
| 6 | -<div class="row"> | |
| 7 | - {% if form.errors %} | |
| 8 | - <div class="alert alert-danger"> | |
| 9 | - <b>{% trans "Please correct the errors below and try again" %}</b> | |
| 10 | - </div> | |
| 11 | - {% endif %} | |
| 12 | -</div> | |
| 13 | - | |
| 14 | -<br> | |
| 15 | -<form action="" method="post" role="form" class="form-horizontal signup"> | |
| 16 | - {% csrf_token %} | |
| 17 | - | |
| 18 | - <div class="row"> | |
| 19 | - <div class="col-md-4 col-md-offset-4 col-lg-6 col-lg-offset-3 col-sm-8 col-sm-offset-2 col-xs-12"> | |
| 20 | - <div class="panel panel-default"> | |
| 21 | - <div class="panel-heading"><h3 class="panel-title">{{ title }}</h3></div> | |
| 22 | - <div class="panel-body"> | |
| 23 | - <div class= >{% trans "Forgotten your password? Enter your email address below, and we'll email instructions for setting a new one." %}</div> | |
| 24 | - <br> | |
| 25 | - <div class="form-group{% if form.email.errors %} alert alert-danger has-error{% endif %}"> | |
| 26 | - <label>{% trans 'Email address:' %}</label> | |
| 27 | - <input class="form-control" id="id_email" maxlength="254" name="email" type="email"> | |
| 28 | - {{ form.email.errors }} | |
| 29 | - </div> | |
| 30 | - </div> | |
| 31 | - </div> | |
| 32 | - </div> | |
| 33 | - </div> | |
| 34 | - | |
| 35 | - <div class="row"> | |
| 36 | - <div class="submit"> | |
| 37 | - <input class="btn btn-primary btn-lg btn-block" type="submit" value="Reset password" /></p> | |
| 38 | - </div> | |
| 39 | - </div> | |
| 40 | - | |
| 41 | -</form> | |
| 42 | - | |
| 43 | -{% endblock %} | |
| 44 | - | |
| 45 | - | |
| 46 | - | |
| 47 | - | |
| 48 | - | |
| 49 | - | |
| 50 | - | |
| 51 | - | |
| 52 | - |