Skip to content

Commit

Permalink
Alterado forumlário de Reset de senha
Browse files Browse the repository at this point in the history
parte de #1070
  • Loading branch information
renzon committed May 27, 2020
1 parent 2e6437d commit c143222
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pypro/base/templates/registration/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load static %}
{% block title %}Python Pro - Login{% endblock title %}
{% block body %}
<div class="container">
<div class="container mt-5">
<div class="row">
<div class="col">

Expand Down
28 changes: 28 additions & 0 deletions pypro/base/templates/registration/password_reset_form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{% extends 'base/base.html' %}
{% load i18n static %}


{% block title %}Formulário de Recuperação de Senha{% endblock %}

{% block body %}
<div class="container mt-5">
<div class="row">
<div class="col">
<h1>{{ title }}</h1>
<p>{% trans 'Forgotten your password? Enter your email address below, and we’ll email instructions for setting a new one.' %}</p>

<form method="post">{% csrf_token %}
<fieldset class="module aligned">
<div class="form-row field-email">
{{ form.email.errors }}
<label for="id_email">{% trans 'Email address:' %}</label>
{{ form.email }}
</div>
<input type="submit" value="{% trans 'Reset my password' %}">
</fieldset>
</form>
</div>
</div>
</div>

{% endblock %}
8 changes: 4 additions & 4 deletions pypro/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@
# Application definition

INSTALLED_APPS = [
'pypro.base',
'pypro.turmas',
'pypro.aperitivos',
'pypro.modulos',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'collectfast',
'django.contrib.staticfiles',
'pypro.base',
'pypro.turmas',
'pypro.aperitivos',
'pypro.modulos',
'ordered_model',
'django_extensions',
]
Expand Down

0 comments on commit c143222

Please sign in to comment.