PINES Custom: Re-add persistent login boxes to OPAC
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 19 Jan 2021 15:49:57 +0000 (10:49 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Sat, 19 Nov 2022 19:58:15 +0000 (14:58 -0500)
I took these off before because I didn't think they actually
worked, but I was wrong, so adding them back in!

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates-bootstrap/opac/parts/login/form.tt2
Open-ILS/src/templates-bootstrap/opac/parts/login/login_modal.tt2

index d08ca77..169b2ed 100755 (executable)
         </div>
 
          <div class="col-12 pt-4 text-center">
+            <div class="form-check my-2">
+                <input class="form-check-input" type="checkbox" value="" id="rememberMe">
+                <label class="form-check-label" for="rememberMe">
+                    [% l('Stay logged in?') %]
+                </label>
+            </div>
             <button type="submit" class="btn btn-confirm my-2"><i class="fas fa-sign-in-alt" aria-hidden="true"></i> [% l('Log in') %]</button>
         </div>
         <div style="clear: both; padding-top: 15px;" class="col-12 text-center">
index 31e4d5d..3879aa6 100755 (executable)
@@ -77,6 +77,8 @@
       <div class="modal-footer">
       <div class="mr-auto">
         <input type='hidden' name='redirect_to' value='[% redirect | html %]'/>
+        <input type="checkbox" name="persist" id="login_persist" class="mr-1"/>
+        <label for="login_persist"> [% l('Stay logged in?') %]</label>
       </div>
 
         <button type="button" class="btn btn-secondary" data-dismiss="modal"><i class="fas fa-times" aria-hidden="true"></i> [% l('Close') %]</button>