forked from EGCETSII/decide
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into bugfix/mixcript-priority
- Loading branch information
Showing
11 changed files
with
286 additions
and
11 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 |
---|---|---|
|
@@ -104,6 +104,8 @@ | |
Continuar con GitHub | ||
</a> | ||
</div> | ||
|
||
<a href="/password_reset">Recuperar Contraseña</a> | ||
</section> | ||
|
||
{% endblock %} |
46 changes: 46 additions & 0 deletions
46
decide/authentication/templates/authentication/password_reset.html
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,46 @@ | ||
{% extends "base.html" %} | ||
{% load i18n static %} | ||
|
||
{% block title %}Restore password{% endblock %} | ||
|
||
{% block extrahead %} | ||
<link rel="stylesheet" href="{% static "auth/style.css" %}"> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<section class="card form-card"> | ||
<section class="form-title"></section> | ||
<section class="form-msg"> | ||
<h3> | ||
Recuperar Contraseña | ||
</h3> | ||
{% if form.email.errors %} | ||
<div class="form-errors"> | ||
<p> | ||
{{ form.email.errors.0 }} | ||
</p> | ||
</div> | ||
{% endif %} | ||
{% if messages %} | ||
<div class="form-errors"> | ||
{% for message in messages %} | ||
<p>{{ message }}</p> | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
</section> | ||
<form method="post"> | ||
{% csrf_token %} | ||
<section class="form-content"> | ||
<div class="input-group"> | ||
<label for="id_email">Email:</label> | ||
{{ form.email }} | ||
</div> | ||
</section> | ||
<section class="form-confirmation"> | ||
<button type="submit" class="btn btn-primary" style="width: 200px; align-self: center;">Recuperar Contraseña</button> | ||
</section> | ||
</form> | ||
</section> | ||
|
||
{% endblock %} |
24 changes: 24 additions & 0 deletions
24
decide/authentication/templates/authentication/password_reset_complete.html
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,24 @@ | ||
{% extends "base.html" %} | ||
{% load i18n static %} | ||
|
||
{% block title %}Restore password{% endblock %} | ||
|
||
{% block extrahead %} | ||
<link rel="stylesheet" href="{% static "auth/style.css" %}"> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<section class="card form-card"> | ||
<section class="form-title"></section> | ||
<section class="form-msg"> | ||
<h3> | ||
Recuperar Contraseña | ||
</h3> | ||
</section> | ||
<section class="form-content"> | ||
<p>Contraseña restarurada. Ahora puedes hacer acceder con tu nueva contraseña.</p> | ||
</section> | ||
</section> | ||
|
||
{% endblock %} | ||
|
61 changes: 61 additions & 0 deletions
61
decide/authentication/templates/authentication/password_reset_confirm.html
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,61 @@ | ||
{% extends "base.html" %} | ||
{% load i18n static %} | ||
|
||
{% block title %}Restore password{% endblock %} | ||
|
||
{% block extrahead %} | ||
<link rel="stylesheet" href="{% static "auth/style.css" %}"> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
{% if validlink %} | ||
<section class="card form-card"> | ||
<section class="form-title"></section> | ||
<section class="form-msg"> | ||
<h3 style="align-self: center;"> | ||
Recuperar Contraseña | ||
</h3> | ||
{% if form.new_password1.errors %} | ||
<div class="form-errors"> | ||
<p> | ||
{{ form.new_password1.errors.0 }} | ||
</p> | ||
</div> | ||
{% endif %} | ||
{% if form.new_password2.errors %} | ||
<div class="form-errors"> | ||
<p> | ||
{{ form.new_password2.errors.0 }} | ||
</p> | ||
</div> | ||
{% endif %} | ||
</section> | ||
<form method="post"> | ||
{% csrf_token %} | ||
<section class="form-content"> | ||
<div class="input-group"> | ||
<label for="id_new_password1">Nueva contraseña:</label> | ||
{{ form.new_password1 }} | ||
</div> | ||
<div class="input-group"> | ||
<label for="id_new_password2">Confirme contraseña:</label> | ||
{{ form.new_password2 }} | ||
</div> | ||
</section> | ||
<section class="form-confirmation"> | ||
<button type="submit" class="btn btn-primary" style="width: 200px; align-self: center;">Cambiar Contraseña</button> | ||
</section> | ||
</form> | ||
</section> | ||
|
||
{% else %} | ||
<section class="card form-card"> | ||
<section class="form-content"> | ||
<p> | ||
El link ya no está disponible, probablemete porque ya ha sido utilizado o ha expirado. | ||
</p> | ||
</section> | ||
</section> | ||
{% endif %} | ||
|
||
{% endblock %} |
23 changes: 23 additions & 0 deletions
23
decide/authentication/templates/authentication/password_reset_done.html
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,23 @@ | ||
{% extends "base.html" %} | ||
{% load i18n static %} | ||
|
||
{% block title %}Restore password{% endblock %} | ||
|
||
{% block extrahead %} | ||
<link rel="stylesheet" href="{% static "auth/style.css" %}"> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<section class="card form-card"> | ||
<section class="form-title"></section> | ||
<section class="form-msg"> | ||
<h3> | ||
Recuperar Contraseña | ||
</h3> | ||
</section> | ||
<section class="form-content"> | ||
<p>Se ha enviado un correo a tu email para resetear la contraseña. Revisa tu correo y sigue las instrucciones.</p> | ||
</section> | ||
</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
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
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
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
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
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