LP2015141 Labels for email record math captcha
authorStephanie Leary <stephanie.leary@equinoxoli.org>
Wed, 3 May 2023 12:46:15 +0000 (12:46 +0000)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 8 May 2023 14:08:38 +0000 (10:08 -0400)
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>
Signed-off-by: Galen Charlton <gmc@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 %]