Skip to content

Commit fa84db8

Browse files
chore: Clean code related to checkboxes
1 parent 32fc2a2 commit fa84db8

8 files changed

Lines changed: 23 additions & 23 deletions

File tree

src/views/collections/_form.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@
102102
</fieldset>
103103
{% endif %}
104104

105-
<div class="form-group">
105+
<div>
106106
<input
107107
type="checkbox"
108108
id="is_public"
109109
name="is_public"
110110
{{ form.is_public ? 'checked' : '' }}
111111
/>
112112

113-
<label class="label--checkbox" for="is_public">
113+
<label for="is_public">
114114
{{ t('Show the collection publicly') }}
115115
</label>
116116
</div>

src/views/collections/links/new.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@
4444
</p>
4545
</div>
4646

47-
<div class="form-group">
47+
<div>
4848
<input
4949
type="checkbox"
5050
id="is-hidden"
5151
name="is_hidden"
5252
{{ form.is_hidden ? 'checked' : '' }}
5353
>
5454

55-
<label class="label--checkbox" for="is-hidden">
55+
<label for="is-hidden">
5656
{{ t('Hide this link in public collections') }}
5757
</label>
5858
</div>

src/views/links/collections/index.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
{{ include('collections/_selector.html.twig') }}
3333
</fieldset>
3434

35-
<div class="form-group">
35+
<div>
3636
<input
3737
type="checkbox"
3838
id="is-hidden"
3939
name="is_hidden"
4040
{{ form.is_hidden ? 'checked' : '' }}
4141
>
4242

43-
<label class="label--checkbox" for="is-hidden">
43+
<label for="is-hidden">
4444
{{ t('Hide this link in public collections') }}
4545
</label>
4646
</div>

src/views/links/new.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
{{ form.is_hidden ? 'checked' : '' }}
6565
>
6666

67-
<label class="label--checkbox" for="is-hidden">
67+
<label for="is-hidden">
6868
{{ t('Hide this link in public collections') }}
6969
</label>
7070
</div>
@@ -77,7 +77,7 @@
7777
{{ form.read_later ? 'checked' : '' }}
7878
/>
7979

80-
<label class="label--checkbox" for="read-later">
80+
<label for="read-later">
8181
{{ t('Mark to read later?') }}
8282
</label>
8383
</div>

src/views/links/repairing/new.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
{% endif %}
7070
</div>
7171

72-
<div class="form-group" data-controller="caption-switcher">
72+
<div data-controller="caption-switcher">
7373
<input
7474
type="checkbox"
7575
id="force-sync"
@@ -80,7 +80,7 @@
8080
data-caption-switcher-target="switch"
8181
>
8282

83-
<label class="label--checkbox" for="force-sync">
83+
<label for="force-sync">
8484
{{ t('Force the synchronization') }}
8585
</label>
8686

@@ -96,7 +96,7 @@
9696
</div>
9797

9898
{% if form.displayMarkAsAccessibleField %}
99-
<div class="form-group">
99+
<div>
100100
<input
101101
type="checkbox"
102102
id="mark-as-accessible"
@@ -105,7 +105,7 @@
105105
aria-describedby="mark-as-accessible-caption"
106106
>
107107

108-
<label class="label--checkbox" for="mark-as-accessible">
108+
<label for="mark-as-accessible">
109109
{{ t('Mark the link as accessible') }}
110110
</label>
111111

src/views/mastodon/show.html.twig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,28 @@
2323
<form method="post" action="{{ url('update mastodon account') }}" class="flow">
2424
{{ include('alerts/_error.html.twig', { message: form.error('@base') }) }}
2525

26-
<div class="form-group">
26+
<div>
2727
<input
2828
type="checkbox"
2929
id="prefill-with-notes"
3030
name="prefill_with_notes"
3131
{{ form.prefill_with_notes ? 'checked' : '' }}
3232
>
3333

34-
<label class="label--checkbox" for="prefill-with-notes">
34+
<label for="prefill-with-notes">
3535
{{ t('Pre-fill the thread with the contents of your notes') }}
3636
</label>
3737
</div>
3838

39-
<div class="form-group">
39+
<div>
4040
<input
4141
type="checkbox"
4242
id="link-to-notes"
4343
name="link_to_notes"
4444
{{ form.link_to_notes ? 'checked' : '' }}
4545
>
4646

47-
<label class="label--checkbox" for="link-to-notes">
47+
<label for="link-to-notes">
4848
{{ t('Add a link to your notes in the first post of the thread') }}
4949
</label>
5050
</div>
@@ -78,15 +78,15 @@
7878
>
7979
</div>
8080

81-
<div class="form-group">
81+
<div>
8282
<input
8383
type="checkbox"
8484
id="post-scriptum-on-all-posts"
8585
name="post_scriptum_in_all_posts"
8686
{{ form.post_scriptum_in_all_posts ? 'checked' : '' }}
8787
>
8888

89-
<label class="label--checkbox" for="post-scriptum-on-all-posts">
89+
<label for="post-scriptum-on-all-posts">
9090
{{ t('Add the postscript in all the posts of the thread') }}
9191
</label>
9292
</div>

src/views/my/preferences/edit.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
{{ form.option_compact_mode ? 'checked' : '' }}
161161
>
162162

163-
<label class="label--checkbox" for="option-compact-mode">
163+
<label for="option-compact-mode">
164164
{{ t('Enable compact mode') }}
165165
</label>
166166

@@ -177,7 +177,7 @@
177177
{{ form.accept_contact ? 'checked' : '' }}
178178
>
179179

180-
<label class="label--checkbox" for="accept-contact">
180+
<label for="accept-contact">
181181
{{ t('Accept to be contacted by email to help improve the service (optional).') }}
182182
</label>
183183
</div>
@@ -191,7 +191,7 @@
191191
{{ form.beta_enabled ? 'checked' : '' }}
192192
>
193193

194-
<label class="label--checkbox" for="beta-enabled">
194+
<label for="beta-enabled">
195195
{{ t('Enable beta features') }}
196196
</label>
197197

src/views/registrations/new.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
name="accept_contact"
145145
/>
146146

147-
<label class="label--checkbox" for="accept-contact">
147+
<label for="accept-contact">
148148
{{ t('Accept to be contacted by email to help improve the service (optional).') }}
149149
</label>
150150
</div>
@@ -174,7 +174,7 @@
174174
{% endif %}
175175
>
176176

177-
<label class="label--checkbox" for="accept-terms">
177+
<label for="accept-terms">
178178
{{ t('I acknowledge that I have read and accepted the general terms and conditions of service and use') }}
179179
</label>
180180
</div>

0 commit comments

Comments
 (0)