mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-11-01 01:21:18 +01:00 
			
		
		
		
	Merge pull request #2509 from Ludy87/btn_standardize
standardize the submit button
This commit is contained in:
		
						commit
						a71cb7f5d9
					
				@ -89,10 +89,10 @@
 | 
				
			|||||||
                      <td style="align-content: center;">
 | 
					                      <td style="align-content: center;">
 | 
				
			||||||
                        <form th:action="@{'/api/v1/user/admin/changeUserEnabled/' + ${user.username}}" method="post" onsubmit="return confirmChangeUserStatus()">
 | 
					                        <form th:action="@{'/api/v1/user/admin/changeUserEnabled/' + ${user.username}}" method="post" onsubmit="return confirmChangeUserStatus()">
 | 
				
			||||||
                          <input type="hidden" name="enabled" th:value="!${user.enabled}" />
 | 
					                          <input type="hidden" name="enabled" th:value="!${user.enabled}" />
 | 
				
			||||||
                          <button th:if="${user.enabled}" th:title="#{adminUserSettings.enabledUser}" type="submit" class="btn btn-success btn-sm">
 | 
					                          <button type="submit" th:if="${user.enabled}" th:title="#{adminUserSettings.enabledUser}" class="btn btn-success btn-sm">
 | 
				
			||||||
                            <span class="material-symbols-rounded">person</span>
 | 
					                            <span class="material-symbols-rounded">person</span>
 | 
				
			||||||
                          </button>
 | 
					                          </button>
 | 
				
			||||||
                          <button th:unless="${user.enabled}" th:title="#{adminUserSettings.disabledUser}" type="submit" class="btn btn-danger btn-sm">
 | 
					                          <button type="submit" th:unless="${user.enabled}" th:title="#{adminUserSettings.disabledUser}" class="btn btn-danger btn-sm">
 | 
				
			||||||
                            <span class="material-symbols-rounded">person_off</span>
 | 
					                            <span class="material-symbols-rounded">person_off</span>
 | 
				
			||||||
                          </button>
 | 
					                          </button>
 | 
				
			||||||
                        </form>
 | 
					                        </form>
 | 
				
			||||||
 | 
				
			|||||||
@ -19,7 +19,7 @@
 | 
				
			|||||||
              <form id="PDFToCSVForm" th:action="@{'/api/v1/convert/pdf/csv'}" method="post" enctype="multipart/form-data">
 | 
					              <form id="PDFToCSVForm" th:action="@{'/api/v1/convert/pdf/csv'}" method="post" enctype="multipart/form-data">
 | 
				
			||||||
                <input  id="pageId" type="hidden" name="pageId">
 | 
					                <input  id="pageId" type="hidden" name="pageId">
 | 
				
			||||||
                <div th:replace="~{fragments/common :: fileSelector(name='fileInput', multipleInputsForSingleRequest=false, accept='application/pdf')}"></div>
 | 
					                <div th:replace="~{fragments/common :: fileSelector(name='fileInput', multipleInputsForSingleRequest=false, accept='application/pdf')}"></div>
 | 
				
			||||||
                <button type="submit" class="btn btn-primary" th:text="#{PDFToCSV.submit}" id="submitBtn"></button>
 | 
					                <button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{PDFToCSV.submit}"></button>
 | 
				
			||||||
              </form>
 | 
					              </form>
 | 
				
			||||||
              <p id="instruction-text" style="margin: 0; display: none" th:text="#{PDFToCSV.prompt}"></p>
 | 
					              <p id="instruction-text" style="margin: 0; display: none" th:text="#{PDFToCSV.prompt}"></p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -22,7 +22,7 @@
 | 
				
			|||||||
                <input id="y" type="hidden" name="y">
 | 
					                <input id="y" type="hidden" name="y">
 | 
				
			||||||
                <input id="width" type="hidden" name="width">
 | 
					                <input id="width" type="hidden" name="width">
 | 
				
			||||||
                <input id="height" type="hidden" name="height">
 | 
					                <input id="height" type="hidden" name="height">
 | 
				
			||||||
                <button id="submitBtn" type="submit" class="btn btn-primary" th:text="#{crop.submit}"></button>
 | 
					                <button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{crop.submit}"></button>
 | 
				
			||||||
              </form>
 | 
					              </form>
 | 
				
			||||||
              <div id="canvasesContainer" style="position: relative; margin: 20px 0; width: auto;">
 | 
					              <div id="canvasesContainer" style="position: relative; margin: 20px 0; width: auto;">
 | 
				
			||||||
                <canvas id="cropPdfCanvas" style="width: 100%"></canvas>
 | 
					                <canvas id="cropPdfCanvas" style="width: 100%"></canvas>
 | 
				
			||||||
 | 
				
			|||||||
@ -93,7 +93,7 @@
 | 
				
			|||||||
            <input type="checkbox" name="remember-me" id="remember-me">
 | 
					            <input type="checkbox" name="remember-me" id="remember-me">
 | 
				
			||||||
            <label for="remember-me" th:text="#{login.rememberme}"></label>
 | 
					            <label for="remember-me" th:text="#{login.rememberme}"></label>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
          <button class="w-100 btn btn-lg btn-primary" type="submit" th:text="#{login.signin}">Sign in</button>
 | 
					          <button type="submit" class="w-100 btn btn-lg btn-primary" th:text="#{login.signin}">Sign in</button>
 | 
				
			||||||
        </form>
 | 
					        </form>
 | 
				
			||||||
        <div class="mt-3"> <!-- Added a margin-top for spacing -->
 | 
					        <div class="mt-3"> <!-- Added a margin-top for spacing -->
 | 
				
			||||||
          <div class="dropdown text-center">
 | 
					          <div class="dropdown text-center">
 | 
				
			||||||
 | 
				
			|||||||
@ -83,7 +83,7 @@
 | 
				
			|||||||
                <button type="button" class="btn btn-secondary" id="addMetadataBtn" th:text="#{changeMetadata.selectText.5}"></button>
 | 
					                <button type="button" class="btn btn-secondary" id="addMetadataBtn" th:text="#{changeMetadata.selectText.5}"></button>
 | 
				
			||||||
                <br>
 | 
					                <br>
 | 
				
			||||||
                <br>
 | 
					                <br>
 | 
				
			||||||
                <button class="btn btn-primary" type="submit" id="submitBtn" th:text="#{changeMetadata.submit}"></button>
 | 
					                <button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{changeMetadata.submit}"></button>
 | 
				
			||||||
                <script type="module" th:src="@{'/pdfjs-legacy/pdf.mjs'}"></script>
 | 
					                <script type="module" th:src="@{'/pdfjs-legacy/pdf.mjs'}"></script>
 | 
				
			||||||
                <script type="module" th:src="@{'/js/pages/change-metadata.js'}">
 | 
					                <script type="module" th:src="@{'/js/pages/change-metadata.js'}">
 | 
				
			||||||
                </script>
 | 
					                </script>
 | 
				
			||||||
 | 
				
			|||||||
@ -2,8 +2,7 @@
 | 
				
			|||||||
<html th:lang="${#locale.language}" th:dir="#{language.direction}" th:data-language="${#locale.toString()}"
 | 
					<html th:lang="${#locale.language}" th:dir="#{language.direction}" th:data-language="${#locale.toString()}"
 | 
				
			||||||
      xmlns:th="https://www.thymeleaf.org">
 | 
					      xmlns:th="https://www.thymeleaf.org">
 | 
				
			||||||
<head>
 | 
					<head>
 | 
				
			||||||
    <th:block
 | 
					    <th:block th:insert="~{fragments/common :: head(title=#{removeImage.title}, header=#{removeImage.header})}"></th:block>
 | 
				
			||||||
            th:insert="~{fragments/common :: head(title=#{removeImage.title}, header=#{removeImage.header})}"></th:block>
 | 
					 | 
				
			||||||
    <link rel="stylesheet" th:href="@{'/css/removeImage.css'}">
 | 
					    <link rel="stylesheet" th:href="@{'/css/removeImage.css'}">
 | 
				
			||||||
</head>
 | 
					</head>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -20,7 +19,7 @@
 | 
				
			|||||||
                        <span class="material-symbols-rounded tool-header-icon word">remove_selection</span>
 | 
					                        <span class="material-symbols-rounded tool-header-icon word">remove_selection</span>
 | 
				
			||||||
                        <span class="tool-header-text" th:text="#{removeImage.header}"></span>
 | 
					                        <span class="tool-header-text" th:text="#{removeImage.header}"></span>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                        <form th:action="@{'api/v1/general/remove-image-pdf'}" method="post" enctype="multipart/form-data">
 | 
					                    <form th:action="@{'api/v1/general/remove-image-pdf'}" method="post" enctype="multipart/form-data">
 | 
				
			||||||
                        <div th:replace="~{fragments/common :: fileSelector(name='fileInput', multipleInputsForSingleRequest=false, accept='application/pdf')}"></div>
 | 
					                        <div th:replace="~{fragments/common :: fileSelector(name='fileInput', multipleInputsForSingleRequest=false, accept='application/pdf')}"></div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        <br>
 | 
					                        <br>
 | 
				
			||||||
 | 
				
			|||||||
@ -131,7 +131,7 @@
 | 
				
			|||||||
                            <label for="convertPDFToImage" th:text="#{watermark.selectText.10}"></label>
 | 
					                            <label for="convertPDFToImage" th:text="#{watermark.selectText.10}"></label>
 | 
				
			||||||
                        </div>
 | 
					                        </div>
 | 
				
			||||||
                        <div class="mb-3 text-left">
 | 
					                        <div class="mb-3 text-left">
 | 
				
			||||||
                            <input type="submit" id="submitBtn" th:value="#{watermark.submit}" class="btn btn-primary">
 | 
					                            <button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{watermark.submit}"></button>
 | 
				
			||||||
                        </div>
 | 
					                        </div>
 | 
				
			||||||
                    </form>
 | 
					                    </form>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -74,7 +74,7 @@
 | 
				
			|||||||
                  <label for="convertPDFToImage" th:text="#{autoRedact.convertPDFToImageLabel}"></label>
 | 
					                  <label for="convertPDFToImage" th:text="#{autoRedact.convertPDFToImageLabel}"></label>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                <button type="submit" class="btn btn-primary" th:text="#{autoRedact.submitButton}"></button>
 | 
					                <button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{autoRedact.submitButton}"></button>
 | 
				
			||||||
              </form>
 | 
					              </form>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
 | 
				
			|||||||
@ -26,7 +26,7 @@
 | 
				
			|||||||
                  <input type="text" id="watermarkText" name="watermarkText" class="form-control" placeholder="Stirling-PDF" required />
 | 
					                  <input type="text" id="watermarkText" name="watermarkText" class="form-control" placeholder="Stirling-PDF" required />
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                <div class="mb-3 text-center">
 | 
					                <div class="mb-3 text-center">
 | 
				
			||||||
                  <input type="submit" id="submitBtn" th:value="#{remove-watermark.submit}" class="btn btn-primary" />
 | 
					                  <button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{remove-watermark.submit}"></button>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
              </form>
 | 
					              </form>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user