Skip to content

Commit

Permalink
#249 input labels on registration form
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitlinnewson committed Aug 7, 2024
1 parent 5f642c2 commit 4f74718
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions templates/frontend/components/registrationForm.tpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{**
* templates/frontend/components/registrationForm.tpl
*
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Copyright (c) 2014-2024 Simon Fraser University
* Copyright (c) 2003-2024 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @brief Display the basic registration form fields
Expand Down Expand Up @@ -119,7 +119,7 @@
{* Require the user to agree to the terms of the privacy policy *}
<div class="fields">
<div class="optin optin-privacy form-check">
<input type="checkbox" class="form-check-input" name="privacyConsent" value="1"{if $privacyConsent} checked="checked"{/if}>
<input type="checkbox" class="form-check-input" name="privacyConsent" id="privacyConsent" value="1"{if $privacyConsent} checked="checked"{/if}>
<label for="privacyConsent" class="form-check-label">
{capture assign="privacyUrl"}{url router=$smarty.const.ROUTE_PAGE page="about" op="privacy"}{/capture}
{translate key="user.register.form.privacyConsent" privacyUrl=$privacyUrl}
Expand All @@ -130,7 +130,7 @@
{* Ask the user to opt into public email notifications *}
<div class="fields">
<div class="optin optin-email form-check">
<input type="checkbox" class="form-check-input" name="emailConsent" value="1"{if $emailConsent} checked="checked"{/if}>
<input type="checkbox" class="form-check-input" name="emailConsent" id="emailConsent" value="1"{if $emailConsent} checked="checked"{/if}>
<label for="emailConsent" class="form-check-label">
{translate key="user.register.form.emailConsent"}
</label>
Expand Down Expand Up @@ -172,7 +172,9 @@
{* review interests (with modified tag-it library) *}
<div id="reviewerInterests" class="reviewer_interests hidden">
<div class="label">
{translate key="user.interests"}
<label for="interests">
{translate key="user.interests"}
</label>
</div>
<input type="text" name="interests" id="interests" value="{$interests|default:""|escape}">
</div>
Expand Down

0 comments on commit 4f74718

Please sign in to comment.