LP#1732552: Move OPAC login username hint to separate template
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 15 Nov 2017 22:36:21 +0000 (14:36 -0800)
committerBill Erickson <berickxx@gmail.com>
Thu, 23 Aug 2018 15:48:06 +0000 (11:48 -0400)
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/opac/parts/login/form.tt2
Open-ILS/src/templates/opac/parts/login/username_hint.tt2 [new file with mode: 0644]
docs/RELEASE_NOTES_NEXT/OPAC/username-hint.adoc [new file with mode: 0644]

index f357e8a..3146d5b 100644 (file)
@@ -22,8 +22,7 @@
             <div class="input_bg">
                 <input type='text' id="username_field" name="username" autofocus />
             </div>
             <div class="input_bg">
                 <input type='text' id="username_field" name="username" autofocus />
             </div>
-            <div class="lbl2">[% l('Please include leading zeros.') %]</div>
-            <div class="lbl2">[% l('Example: 0026626051') %]</div>
+            [% INCLUDE "opac/parts/login/username_hint.tt2" %]
         </div>
         <div class='float-left'>
             <label for="password_field" class="lbl1" >[% l('PIN Number or Password') %]</label>
         </div>
         <div class='float-left'>
             <label for="password_field" class="lbl1" >[% l('PIN Number or Password') %]</label>
diff --git a/Open-ILS/src/templates/opac/parts/login/username_hint.tt2 b/Open-ILS/src/templates/opac/parts/login/username_hint.tt2
new file mode 100644 (file)
index 0000000..f070c81
--- /dev/null
@@ -0,0 +1,6 @@
+<div class="lbl2">
+[% l('Please include leading zeros.') %]
+</div>
+<div class="lbl2">
+[% l('Example: 0026626051') %]
+</div>
diff --git a/docs/RELEASE_NOTES_NEXT/OPAC/username-hint.adoc b/docs/RELEASE_NOTES_NEXT/OPAC/username-hint.adoc
new file mode 100644 (file)
index 0000000..7fe99d5
--- /dev/null
@@ -0,0 +1,6 @@
+Username Login Hint
+^^^^^^^^^^^^^^^^^^^
+To make customization easier, the username hint on the OPAC login page ("Please
+include leading zeros...") has been moved to a separate TT2 template.  If you
+have customized the hint text, you will need to add your modifications to
+username_hint.tt2.