LP2015141 Labels for email record math captcha user/sleary/lp2015141-email-record-math-label
authorStephanie Leary <stephanie.leary@equinoxoli.org>
Wed, 3 May 2023 12:46:15 +0000 (12:46 +0000)
committerStephanie Leary <stephanie.leary@equinoxoli.org>
Wed, 3 May 2023 12:50:36 +0000 (12:50 +0000)
Adds a <label> tag surrounding the math problem shown to users who are
not logged in when they email a record from the OPAC.

Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org>
Open-ILS/src/templates-bootstrap/opac/record/email_preview.tt2
Open-ILS/src/templates/opac/record/email_preview.tt2

index f28cf89..775ed70 100644 (file)
@@ -85,7 +85,7 @@
             [% IF ctx.captcha.key %]
             <div class="searchbar">
                 <p>[% l('Please prove you are not a robot by answering the following addition problem:') %]</p>
-                <p>[% ctx.captcha.left %] + [% ctx.captcha.right %] = <input type="text" name="capanswer"/></p>
+                <p><label for="capanswer">[% ctx.captcha.left %] + [% ctx.captcha.right %] = </label>&nbsp;<input type="text" name="capanswer" id="capanswer"/></p>
                 <input type="hidden" name="capkey" value="[% ctx.captcha.key %]"/>
             </div>
             [% END %]
index fd49392..391a82c 100644 (file)
@@ -83,7 +83,7 @@
             [% IF ctx.captcha.key %]
             <div class="searchbar">
                 <p>[% l('Please prove you are not a robot by answering the following addition problem:') %]</p>
-                <p>[% ctx.captcha.left %] + [% ctx.captcha.right %] = <input type="text" name="capanswer"/></p>
+                <p><label for="capanswer">[% ctx.captcha.left %] + [% ctx.captcha.right %] = </label>&nbsp;<input type="text" name="capanswer" id="capanswer"/></p>
                 <input type="hidden" name="capkey" value="[% ctx.captcha.key %]"/>
             </div>
             [% END %]