diff options
Diffstat (limited to '')
-rw-r--r-- | templates/registration/login.html | 3 | ||||
-rw-r--r-- | templates/registration/password_reset_complete.html | 14 | ||||
-rw-r--r-- | templates/registration/password_reset_confirm.html | 35 | ||||
-rw-r--r-- | templates/registration/password_reset_done.html | 24 | ||||
-rw-r--r-- | templates/registration/password_reset_email.html | 11 | ||||
-rw-r--r-- | templates/registration/password_reset_form.html | 21 | ||||
-rw-r--r-- | templates/registration/password_reset_subject.txt | 2 |
7 files changed, 72 insertions, 38 deletions
diff --git a/templates/registration/login.html b/templates/registration/login.html index 9459f93..9ee3bb8 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -11,6 +11,9 @@ {% csrf_token %} {{ form.as_p }} <br> + <a href={% url 'password_reset' %}>Password dimenticata</a> + <br> + <br> <button class="btn waves-effect waves-light" type="submit">Login</button> </form> </div> diff --git a/templates/registration/password_reset_complete.html b/templates/registration/password_reset_complete.html index c0bccc1..bf8e24c 100644 --- a/templates/registration/password_reset_complete.html +++ b/templates/registration/password_reset_complete.html @@ -1,7 +1,15 @@ {% extends 'registration/base_simple.html' %} {% block content %} - <p> - Your password has been set. You may go ahead and <a href="{% url 'signin' %}">sign in</a> now. - </p> + <div class="row"> + <div class="col l4 offset-l4 m8 offset-m2 s12"> + <div class="card"> + <div class="card-content"> + <p> + La password è stata reimpostata con successo. Ora puoi fare il <a href="{% url 'login' %}">login</a>. + </p> + </div> + </div> + </div> + </div> {% endblock %}
\ No newline at end of file diff --git a/templates/registration/password_reset_confirm.html b/templates/registration/password_reset_confirm.html index 6838eb8..b0b46a4 100644 --- a/templates/registration/password_reset_confirm.html +++ b/templates/registration/password_reset_confirm.html @@ -1,17 +1,26 @@ {% extends 'registration/base_simple.html' %} {% block content %} - {% if validlink %} - <h3>Change password</h3> - <form method="post"> - {% csrf_token %} - {{ form.as_p }} - <button type="submit">Change password</button> - </form> - {% else %} - <p> - The password reset link was invalid, possibly because it has already been used. - Please request a new password reset. - </p> - {% endif %} + <div class="row"> + <div class="col l4 offset-l4 m8 offset-m2 s12"> + <div class="card"> + <div class="card-content"> + {% if validlink %} + <h5>Cambia password</h5> + <form method="post"> + {% csrf_token %} + {{ form.as_p }} + <br> + <button class="btn waves-effect waves-light" type="submit">Invia</button> + </form> + {% else %} + <p> + Il link di reimpostazione della password è invalido, probabilmente perchè è già stato usato. + Prego richiedere un altro link. + </p> + {% endif %} + </div> + </div> + </div> + </div> {% endblock %}
\ No newline at end of file diff --git a/templates/registration/password_reset_done.html b/templates/registration/password_reset_done.html index 6abc3e1..399afb7 100644 --- a/templates/registration/password_reset_done.html +++ b/templates/registration/password_reset_done.html @@ -1,12 +1,20 @@ {% extends 'registration/base_simple.html' %} {% block content %} - <p> - We've emailed you instructions for setting your password, if an account exists with the email you entered. - You should receive them shortly. - </p> - <p> - If you don't receive an email, please make sure you've entered the address you registered with, - and check your spam folder. - </p> + <div class="row"> + <div class="col l4 offset-l4 m8 offset-m2 s12"> + <div class="card"> + <div class="card-content"> + <p> + Ti abbiamo inviato una email con le istruzioni per reimpostare la password, se l'account inserito + esiste. Dovresti riceverle a breve. + </p> + <p> + Se non hai ricevuto la email controlla che l'indirizzo inserito sia corretto e controlla la cartella + di spam. + </p> + </div> + </div> + </div> + </div> {% endblock %}
\ No newline at end of file diff --git a/templates/registration/password_reset_email.html b/templates/registration/password_reset_email.html index da2c169..b5892a4 100644 --- a/templates/registration/password_reset_email.html +++ b/templates/registration/password_reset_email.html @@ -1,12 +1,9 @@ {% autoescape off %} -To initiate the password reset process for your {{ user.get_username }} TestSite Account, -click the link below: +Per reimpostare la password per l'utente {{ user.get_username }} +clicca il link qua sotto: {{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %} -If clicking the link above doesn't work, please copy and paste the URL in a new browser -window instead. - -Sincerely, -The TestSite Team +Se cliccando il link non funziona prova a copiare ed incollare il link direttamente nella barra del +tuo browser. {% endautoescape %}
\ No newline at end of file diff --git a/templates/registration/password_reset_form.html b/templates/registration/password_reset_form.html index d0d6250..5789900 100644 --- a/templates/registration/password_reset_form.html +++ b/templates/registration/password_reset_form.html @@ -1,10 +1,19 @@ {% extends 'registration/base_simple.html' %} {% block content %} - <h3>Forgot password</h3> - <form method="post"> - {% csrf_token %} - {{ form.as_p }} - <button type="submit">Submit</button> - </form> + <div class="row"> + <div class="col l4 offset-l4 m8 offset-m2 s12"> + <div class="card"> + <div class="card-content"> + <h5>Reimposta password</h5> + <form method="post"> + {% csrf_token %} + {{ form.as_p }} + <br> + <button class="btn waves-effect waves-light" type="submit">Invia</button> + </form> + </div> + </div> + </div> + </div> {% endblock %}
\ No newline at end of file diff --git a/templates/registration/password_reset_subject.txt b/templates/registration/password_reset_subject.txt index 7b5a65b..711fff8 100644 --- a/templates/registration/password_reset_subject.txt +++ b/templates/registration/password_reset_subject.txt @@ -1 +1 @@ -TestSite password reset
\ No newline at end of file +Scout Breganzona reimpostazione password
\ No newline at end of file |