Skip to content

Commit 1d35703

Browse files
committed
fix: migrate registration newsletter to native HTML checkbox
1 parent c507c96 commit 1d35703

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

openlibrary/plugins/upstream/forms.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,6 @@ class RegisterForm(Form):
112112
maxlength="20",
113113
required="true",
114114
),
115-
Checkbox(
116-
'ia_newsletter',
117-
description=_(
118-
'I want to receive news, announcements, and resources from the '
119-
'<a href="https://archive.org/">Internet Archive</a>, the non-profit '
120-
'that runs Open Library.'
121-
),
122-
),
123115
Checkbox(
124116
"pd_request",
125117
description=_(

openlibrary/templates/account/create.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ <h1 class="ol-signup-hero__title">$_("Sign Up")</h1>
7676
$:field(form.password)
7777

7878
<div class="ol-signup-form__checkbox">
79-
$:form.ia_newsletter.render() <label for="ia_newsletter">$:form.ia_newsletter.description</label>
79+
<input type="checkbox" id="ia_newsletter" name="ia_newsletter"/>
80+
<label for="ia_newsletter">
81+
I want to receive news, announcements, and resources from the
82+
<a href="https://archive.org/">Internet Archive</a>,
83+
the non-profit that runs Open Library.
84+
</label>
8085
</div>
8186
<div id="rpd-checkbox" class="ol-signup-form__checkbox">
8287
$:form.pd_request.render() <label for="pd_request">$:form.pd_request.description</label>

0 commit comments

Comments
 (0)