From f0641ef3655bd7d2b89a0e4f77a564d121ea1f6a Mon Sep 17 00:00:00 2001 From: Sanjiban Sengupta Date: Sun, 27 Sep 2020 23:43:40 +0530 Subject: [PATCH] feat: Add Hide/show toggle for all password fields --- vms/authentication/templates/authentication/login.html | 6 ++++-- .../templates/registration/signup_administrator.html | 9 ++++++--- .../templates/registration/signup_volunteer.html | 9 ++++++--- vms/vms/static/vms/css/style.css | 3 +++ vms/vms/static/vms/js/passwordtoggle.js | 9 +++++++++ vms/vms/templates/vms/base.html | 9 +++++++-- 6 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 vms/vms/static/vms/js/passwordtoggle.js diff --git a/vms/authentication/templates/authentication/login.html b/vms/authentication/templates/authentication/login.html index 7d7512c..0317be6 100644 --- a/vms/authentication/templates/authentication/login.html +++ b/vms/authentication/templates/authentication/login.html @@ -42,6 +42,7 @@

{% trans "Please sign in" %}

{% trans "Password" %}*
+

@@ -57,10 +58,11 @@

{% trans "Please sign in" %}

-
- +
+
+ {% endif %} {% if form.errors %}
diff --git a/vms/registration/templates/registration/signup_administrator.html b/vms/registration/templates/registration/signup_administrator.html index be71df1..e47fd48 100644 --- a/vms/registration/templates/registration/signup_administrator.html +++ b/vms/registration/templates/registration/signup_administrator.html @@ -38,11 +38,12 @@

{% trans "Sign Up" %}

{% endif %} {% if user_form.password.errors %}
-