From d21e1ccc1cb79c72105caf92f5b387f0ad7fcb8d Mon Sep 17 00:00:00 2001 From: Brock Whittaker Date: Wed, 3 May 2017 22:48:53 -0700 Subject: [PATCH] Unify styling on password reset flow pages. --- static/styles/portico.css | 19 +++++-- templates/zerver/reset_confirm.html | 82 +++++++++++++++-------------- templates/zerver/reset_done.html | 8 ++- templates/zerver/reset_emailed.html | 14 +++-- 4 files changed, 71 insertions(+), 52 deletions(-) diff --git a/static/styles/portico.css b/static/styles/portico.css index 539ce67980..ae91e1dfa2 100644 --- a/static/styles/portico.css +++ b/static/styles/portico.css @@ -272,6 +272,7 @@ img.screenshot { #pw_strength { /* Same width as a Bootstrap default text with padding */ width: 220px; + height: 8px; } #registration #pw_strength { @@ -1115,20 +1116,28 @@ input.new-organization-button { } /* -- password reset container -- */ -.password-container { - text-align: center; - margin-top: calc(50vh - 290px); -} - .password-reset { display: inline-block; text-align: left; } +.password-reset form { + margin: 0px; +} + +.password-reset #pw_strength { + width: 328px; + margin-top: 20px; +} + .password-reset .control-group .control-label { display: block; } +.password-reset { + width: 328px; +} + .password-reset .pitch { width: auto; } diff --git a/templates/zerver/reset_confirm.html b/templates/zerver/reset_confirm.html index 6a2894271f..904a684502 100644 --- a/templates/zerver/reset_confirm.html +++ b/templates/zerver/reset_confirm.html @@ -6,73 +6,75 @@ {% block portico_content %} -
-
- -
-

{{ _('Reset your password.') }}

+
+
+ + +
+
+

{{ _('Reset your password.') }}

+
+ - {% if validlink %} -
- {{ csrf_input }} -
- -
- + {% if validlink %} + + {{ csrf_input }} +
+ +
+ +
-
-
- -
+
+ + data-min-quality="{{password_min_quality}}" required /> + {% if form.new_password1.errors %} {% for error in form.new_password1.errors %}
{{ error }}
{% endfor %} {% endif %}
-
-
- -
-
-
+
+
+
+
+
-
-
- -
+
+ + maxlength="100" required /> + {% if form.new_password2.errors %} {% for error in form.new_password2.errors %}
{{ error }}
{% endfor %} {% endif %}
-
-
-
- +
+
+ +
-
- + - - {% else %} -

{{ _('Sorry, the link you provided is invalid or has already been used.') }}

- {% endif %} + + {% else %} +

{{ _('Sorry, the link you provided is invalid or has already been used.') }}

+ {% endif %} +
diff --git a/templates/zerver/reset_done.html b/templates/zerver/reset_done.html index 4db8f425a4..d39e981df7 100644 --- a/templates/zerver/reset_done.html +++ b/templates/zerver/reset_done.html @@ -1,6 +1,10 @@ {% extends "zerver/portico_signup.html" %} {% block portico_content %} -

{{ _("We've reset your password!") }}

-

{% trans login_url=url('django.contrib.auth.views.login') %}Please log in.{% endtrans %}

+
+
+

{{ _("We've reset your password!") }}

+

{% trans login_url=url('django.contrib.auth.views.login') %}Please log in.{% endtrans %}

+
+
{% endblock %} diff --git a/templates/zerver/reset_emailed.html b/templates/zerver/reset_emailed.html index ba42ccca01..3e563cc0ae 100644 --- a/templates/zerver/reset_emailed.html +++ b/templates/zerver/reset_emailed.html @@ -1,8 +1,12 @@ {% extends "zerver/portico_signup.html" %} {% block portico_content %} - {% trans %} -

We just sent you a password reset!

-

Check your email to finish the process.

-

(Or don't, but then why did you fill out this form?)

- {% endtrans %} +
+
+ {% trans %} +

We just sent you a password reset!

+

Check your email to finish the process.

+

(Or don't, but then why did you fill out this form?)

+ {% endtrans %} +
+
{% endblock %}