Skip to content

Commit 798fc25

Browse files
authored
fix: Update checkbox elements to use Bootstrap classes for consistent styling (Stirling-Tools#4412)
1 parent a35bd09 commit 798fc25

28 files changed

+115
-112
lines changed

app/core/src/main/resources/templates/adminSettings.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ <h5 class="data-modal-title">
302302

303303
<div class="data-form-group" id="checkboxContainer">
304304
<div class="form-check">
305-
<input type="checkbox" class="form-check-input" id="forceChange" name="forceChange">
306-
<label class="form-check-label" for="forceChange" th:text="#{adminUserSettings.forceChange}">Force user to change username/password on login</label>
305+
<input id="forceChange" name="forceChange" type="checkbox">
306+
<label for="forceChange" th:text="#{adminUserSettings.forceChange}">Force user to change username/password on login</label>
307307
</div>
308308
</div>
309309

app/core/src/main/resources/templates/auto-split-pdf.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
th:replace="~{fragments/common :: fileSelector(name='fileInput', multipleInputsForSingleRequest=false, accept='application/pdf')}">
3030
</div>
3131
<div class="form-check ms-3">
32-
<input type="checkbox" name="duplexMode" id="duplexMode">
32+
<input id="duplexMode" name="duplexMode" type="checkbox">
3333
<label for="duplexMode" th:text=#{autoSplitPDF.duplexMode}></label>
3434
</div>
3535
<p>

app/core/src/main/resources/templates/convert/eml-to-pdf.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
th:replace="~{fragments/common :: fileSelector(name='fileInput', multipleInputsForSingleRequest=false, accept='.eml,message/rfc822')}">
2626
</div>
2727

28-
<div class="form-check mb-3">
29-
<input type="checkbox" class="form-check-input" name="downloadHtml" id="downloadHtml">
30-
<label class="form-check-label" for="downloadHtml" th:text="#{EMLToPDF.downloadHtml}"></label>
28+
<div class="form-check mb-3">
29+
<input id="downloadHtml" name="downloadHtml" type="checkbox">
30+
<label for="downloadHtml" th:text="#{EMLToPDF.downloadHtml}"></label>
3131
<div class="form-text" th:text="#{EMLToPDF.downloadHtmlHelp}"></div>
3232
</div>
3333

34-
<div id="pdfOnlyOptions">
35-
<div class="form-check mb-3">
36-
<input type="checkbox" class="form-check-input" name="includeAttachments" id="includeAttachments" checked>
37-
<label class="form-check-label" for="includeAttachments" th:text="#{EMLToPDF.includeAttachments}"></label>
34+
<div id="pdfOnlyOptions">
35+
<div class="form-check mb-3">
36+
<input checked id="includeAttachments" name="includeAttachments" type="checkbox">
37+
<label for="includeAttachments" th:text="#{EMLToPDF.includeAttachments}"></label>
3838
</div>
3939

4040
<div class="mb-3">

app/core/src/main/resources/templates/convert/img-to-pdf.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</div>
3737

3838
<div class="form-check ms-3">
39-
<input type="checkbox" name="autoRotate" id="autoRotate">
39+
<input id="autoRotate" name="autoRotate" type="checkbox">
4040
<label for="autoRotate" th:text=#{imageToPDF.selectText.2}></label>
4141
</div>
4242
<div class="mb-3">

app/core/src/main/resources/templates/convert/pdf-to-img.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@
7373
<option value="blackwhite" th:text="#{pdfToImage.blackwhite}"></option>
7474
</select>
7575
</div>
76-
<div class="mb-3 form-check">
77-
<input class="form-check-input" type="checkbox" id="includeAnnotations" name="includeAnnotations">
78-
<label class="form-check-label" for="includeAnnotations" th:text="#{pdfToImage.includeAnnotations}"></label>
76+
<div class="form-check mb-3">
77+
<input id="includeAnnotations" name="includeAnnotations" type="checkbox">
78+
<label for="includeAnnotations" th:text="#{pdfToImage.includeAnnotations}"></label>
7979
</div>
8080
<div class="mb-3">
8181
<label for="dpi">DPI:</label>

app/core/src/main/resources/templates/edit-table-of-contents.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,12 @@
3333
th:replace="~{fragments/common :: fileSelector(name='fileInput', multipleInputsForSingleRequest=false, accept='application/pdf')}">
3434
</div>
3535

36-
<div class="mb-3 form-check">
36+
<div class="form-check mb-3">
3737
<input type="checkbox"
38-
class="form-check-input"
3938
id="replaceExisting"
4039
name="replaceExisting"
4140
checked>
42-
<label class="form-check-label"
41+
<label
4342
for="replaceExisting"
4443
th:text="#{editTableOfContents.replaceExisting}"></label>
4544
<input type="hidden"

app/core/src/main/resources/templates/fragments/navbar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@ <h5 class="modal-title" id="settingsModalLabel" th:text="#{settings.title}"></h5
284284
<span id="zipThresholdValue" class="ms-2"></span>
285285
</div>
286286
<div class="form-check mb-3">
287-
<input type="checkbox" id="boredWaiting" th:title="#{settings.bored.help}">
287+
<input id="boredWaiting" th:title="#{settings.bored.help}" type="checkbox">
288288
<label for="boredWaiting" th:text="#{bored}"></label>
289289
</div>
290290
<div class="form-check mb-3">
291-
<input type="checkbox" id="cacheInputs" th:title="#{settings.cacheInputs.help}">
291+
<input id="cacheInputs" th:title="#{settings.cacheInputs.help}" type="checkbox">
292292
<label for="cacheInputs" th:text="#{settings.cacheInputs.name}"></label>
293293
</div>
294294

app/core/src/main/resources/templates/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ <h5 class="modal-title" id="surveyModalLabel" th:text="#{survey.title}">Stirling
152152
</div>
153153
<div class="modal-footer">
154154
<div class="form-check mb-3">
155-
<input type="checkbox" id="dontShowAgain">
155+
<input id="dontShowAgain" type="checkbox">
156156
<label for="dontShowAgain" th:text="#{survey.dontShowAgain}">Don't show again</label>
157157
</div>
158158

app/core/src/main/resources/templates/login.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ <h2 class="h5 mb-3 fw-normal" th:text="#{login.signinTitle}">Please sign in</h2>
130130
</div>
131131

132132
<div class="form-check m-2 mb-3">
133-
<input type="checkbox" name="remember-me" id="remember-me">
133+
<input id="remember-me" name="remember-me" type="checkbox">
134134
<label for="remember-me" th:text="#{login.rememberme}"></label>
135135
</div>
136136
<button type="submit" class="w-100 btn btn-lg btn-primary" th:text="#{login.signin}">Sign in</button>

app/core/src/main/resources/templates/merge-pdfs.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
th:replace="~{fragments/common :: fileSelector(name='fileInput', multipleInputsForSingleRequest=true, accept='application/pdf')}">
2828
</div>
2929
</div>
30-
<div class="mb-3">
31-
<input type="checkbox" name="removeCertSign" id="removeCertSign">
30+
<div class="form-check mb-3">
31+
<input id="removeCertSign" name="removeCertSign" type="checkbox">
3232
<label for="removeCertSign" th:text="#{merge.removeCertSign}">Remove digital signature in the merged
3333
file?</label>
3434
</div>
35-
<div class="mb-3">
36-
<input type="checkbox" name="generateToc" id="generateToc">
35+
<div class="form-check mb-3">
36+
<input id="generateToc" name="generateToc" type="checkbox">
3737
<label for="generateToc" th:text="#{merge.generateToc}">Generate table of contents in the merged file?</label>
3838
</div>
3939
<div class="mb-3">

0 commit comments

Comments
 (0)