Bugzilla – Attachment 176502 Details for
Bug 34778
Add a 'Show password'/eye icon to toggle visibility of password when logging into OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34778: (follow-up) convert label from 'span' to 'label' element
Bug-34778-follow-up-convert-label-from-span-to-lab.patch (text/plain), 4.14 KB, created by
Biblibre Sandboxes
on 2025-01-14 13:26:25 UTC
(
hide
)
Description:
Bug 34778: (follow-up) convert label from 'span' to 'label' element
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2025-01-14 13:26:25 UTC
Size:
4.14 KB
patch
obsolete
>From c29a9b58ff0c23bcac7f40da8987b19fb96143f3 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Wed, 13 Nov 2024 01:34:56 +0000 >Subject: [PATCH] Bug 34778: (follow-up) convert label from 'span' to 'label' > element >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Also uses the "for" attribute to uniquely point to the correct >checkbox. > >Signed-off-by: Emmanuel Bétemps <e.betemps@gmail.com> >--- > koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 6 ++++++ > .../bootstrap/en/includes/show-password-toggle.inc | 4 ++-- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 2 +- > 4 files changed, 10 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >index 959bda1e27..5f182f644a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >+++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >@@ -2975,4 +2975,10 @@ $star-selected: #EDB867; > display: inline; > } > >+fieldset.brief label.show-password-toggle-label { >+ display: inline; >+ font-weight: normal; >+ padding: 0; >+} >+ > @import "responsive"; >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/show-password-toggle.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/show-password-toggle.inc >index 17a854b074..b7b804a591 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/show-password-toggle.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/show-password-toggle.inc >@@ -1,4 +1,4 @@ > <div class="show-password-toggle"> >- <input type="checkbox" class="show-password-toggle-checkbox"> >- <span class="show-password-toggle-label"> Show password</span> >+ <input type="checkbox" class="show-password-toggle-checkbox" id="show-password-toggle-checkbox-[% checkbox_id_suffix | html %]"> >+ <label class="show-password-toggle-label" for="show-password-toggle-checkbox-[% checkbox_id_suffix | html %]"> Show password</label> > </div> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt >index 55e4ec3dd0..f3ed6992e8 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt >@@ -249,7 +249,7 @@ > <label for="password">Password:</label> > <input class="form-control" type="password" size="25" id="password" name="login_password" autocomplete="off" /> > </div> >- [% INCLUDE 'show-password-toggle.inc' %] >+ [% INCLUDE 'show-password-toggle.inc' checkbox_id_suffix='auth' %] > <fieldset class="action"> > <input type="submit" value="Log in" class="btn btn-primary" /> > </fieldset> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >index 312d2fead1..c86c5a8da1 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >@@ -204,7 +204,7 @@ > <input class="form-control" type="text" id="userid" name="login_userid" autocomplete="off" /> > <label for="password">Password:</label> > <input class="form-control" type="password" id="password" name="login_password" autocomplete="off" /> >- [% INCLUDE 'show-password-toggle.inc' %] >+ [% INCLUDE 'show-password-toggle.inc' checkbox_id_suffix='main' %] > <fieldset class="action"> > <input type="hidden" name="op" value="cud-login" /> > <input type="submit" value="Log in" class="btn btn-primary" /> >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34778
:
173115
|
173310
|
174442
|
176485
|
176486
|
176501
|
176502
|
176505
|
176506
|
176703
|
176904
|
176905
|
176907
|
176908
|
176909
|
176910
|
176911
|
177272
|
177300
|
177301
|
177302
|
177303
|
177304
|
177305