Online Renewal - Create page to hold embedded form
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 25 Aug 2022 19:42:53 +0000 (15:42 -0400)
committerTerran McCanna <tmccanna@georgialibraries.org>
Thu, 25 Aug 2022 19:42:53 +0000 (15:42 -0400)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates-bootstrap/opac/renew-account-sp.tt2 [new file with mode: 0644]
Open-ILS/src/templates-bootstrap/opac/renew-account.tt2 [new file with mode: 0644]

diff --git a/Open-ILS/src/templates-bootstrap/opac/renew-account-sp.tt2 b/Open-ILS/src/templates-bootstrap/opac/renew-account-sp.tt2
new file mode 100644 (file)
index 0000000..ec5e051
--- /dev/null
@@ -0,0 +1,35 @@
+[%- PROCESS "opac/parts/header.tt2";
+    PROCESS "opac/parts/org_selector.tt2";
+    WRAPPER "opac/parts/base.tt2";
+    INCLUDE "opac/parts/topnav.tt2";
+    ctx.page_title = l("Renew Your Library Card");
+%]
+
+<!-- eCARD scripts here -->
+<script id="eRenewServer" src="https://ecard.quipugroup.net/js/eRenewEmbed.js"></script>
+<script>loadQGeRenew(48)</script>
+
+<h2 class="sr-only">[% l('Renew Your Library Card') %]</h2>
+<div id="content-wrapper">
+    <div id="main-content-register">
+        <div class="common-full-pad"></div>
+            <p style="font-size:.8em;">(<a href="/eg/opac/renew-account">English</a> | Español)</p>
+            
+            <!-- eCARD div here: -->
+            <input type="hidden" id="patronID" value="[% ctx.user.id %]" />
+            <div id="eRenew" data-language="sp" data-branchid=""></div>
+
+            
+            <!-- eCARD requires JavaScript in order to display the registration form -->
+            <!-- The following will detect if JavaScript is enabled on the patron's browser -->
+            <noscript>
+            <h2 style="color:red;">Warning - JavaScript Required</h2>
+            <p>For full functionality of this web page it is necessary to enable JavaScript in your browser. For more information on most browsers, try <a href="http://www.enable-javascript.com/" target="_blank">How to enable JavaScript</a> OR <a href="http://activatejavascript.org/en/instructions" target="_blank">activatejavascript.org</a><
+            </p>
+            </noscript>
+            </div>
+        
+        <div class="common-full-pad"></div>    
+    </div>
+</div>
+[%- END %]
diff --git a/Open-ILS/src/templates-bootstrap/opac/renew-account.tt2 b/Open-ILS/src/templates-bootstrap/opac/renew-account.tt2
new file mode 100644 (file)
index 0000000..c093eab
--- /dev/null
@@ -0,0 +1,37 @@
+[%- PROCESS "opac/parts/header.tt2";
+    PROCESS "opac/parts/org_selector.tt2";
+    WRAPPER "opac/parts/base.tt2";
+    INCLUDE "opac/parts/topnav.tt2";
+    ctx.page_title = l("Renew Your Library Card");
+%]
+
+<!-- eCARD scripts here -->
+<script id="eRenewServer" src="https://ecard.quipugroup.net/js/eRenewEmbed.js"></script>
+<script>loadQGeRenew(48)</script>
+
+
+<h2 class="sr-only">[% l('Renew Your Library Card') %]</h2>
+
+<div id="content-wrapper">
+    <div id="main-content-register">
+        <div class="common-full-pad"></div>
+            <p style="font-size:.8em;">(English | <a href="/eg/opac/renew-account-sp">Español</a>)</p>
+            
+            <!-- eCARD div here: -->
+            <input type="hidden" id="patronID" value="[% ctx.user.id %]" />
+            <div id="eRenew" data-language="en" data-branchid=""></div>
+
+            
+            <!-- eCARD requires JavaScript in order to display the registration form -->
+            <!-- The following will detect if JavaScript is enabled on the patron's browser -->
+            <noscript>
+            <h2 style="color:red;">Warning - JavaScript Required</h2>
+            <p>For full functionality of this web page it is necessary to enable JavaScript in your browser. For more information on most browsers, try <a href="http://www.enable-javascript.com/" target="_blank">How to enable JavaScript</a> OR <a href="http://activatejavascript.org/en/instructions" target="_blank">activatejavascript.org</a><
+            </p>
+            </noscript>
+            </div>
+        
+        <div class="common-full-pad"></div>    
+    </div>
+</div>
+[%- END %]