mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-10-25 11:17:28 +02:00 
			
		
		
		
	standardize the submit button
This commit is contained in:
		
							parent
							
								
									30bcdbd7be
								
							
						
					
					
						commit
						a9e250547a
					
				| @ -89,10 +89,10 @@ | ||||
|                       <td style="align-content: center;"> | ||||
|                         <form th:action="@{'/api/v1/user/admin/changeUserEnabled/' + ${user.username}}" method="post" onsubmit="return confirmChangeUserStatus()"> | ||||
|                           <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> | ||||
|                           </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> | ||||
|                           </button> | ||||
|                         </form> | ||||
|  | ||||
| @ -19,7 +19,7 @@ | ||||
|               <form id="PDFToCSVForm" th:action="@{'/api/v1/convert/pdf/csv'}" method="post" enctype="multipart/form-data"> | ||||
|                 <input  id="pageId" type="hidden" name="pageId"> | ||||
|                 <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> | ||||
|               <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="width" type="hidden" name="width"> | ||||
|                 <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> | ||||
|               <div id="canvasesContainer" style="position: relative; margin: 20px 0; width: auto;"> | ||||
|                 <canvas id="cropPdfCanvas" style="width: 100%"></canvas> | ||||
|  | ||||
| @ -93,7 +93,7 @@ | ||||
|             <input type="checkbox" name="remember-me" id="remember-me"> | ||||
|             <label for="remember-me" th:text="#{login.rememberme}"></label> | ||||
|           </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> | ||||
|         <div class="mt-3"> <!-- Added a margin-top for spacing --> | ||||
|           <div class="dropdown text-center"> | ||||
|  | ||||
| @ -83,7 +83,7 @@ | ||||
|                 <button type="button" class="btn btn-secondary" id="addMetadataBtn" th:text="#{changeMetadata.selectText.5}"></button> | ||||
|                 <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="@{'/js/pages/change-metadata.js'}"> | ||||
|                 </script> | ||||
|  | ||||
| @ -2,8 +2,7 @@ | ||||
| <html th:lang="${#locale.language}" th:dir="#{language.direction}" th:data-language="${#locale.toString()}" | ||||
|       xmlns:th="https://www.thymeleaf.org"> | ||||
| <head> | ||||
|     <th:block | ||||
|             th:insert="~{fragments/common :: head(title=#{removeImage.title}, header=#{removeImage.header})}"></th:block> | ||||
|     <th:block th:insert="~{fragments/common :: head(title=#{removeImage.title}, header=#{removeImage.header})}"></th:block> | ||||
|     <link rel="stylesheet" th:href="@{'/css/removeImage.css'}"> | ||||
| </head> | ||||
| 
 | ||||
| @ -20,7 +19,7 @@ | ||||
|                         <span class="material-symbols-rounded tool-header-icon word">remove_selection</span> | ||||
|                         <span class="tool-header-text" th:text="#{removeImage.header}"></span> | ||||
|                     </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> | ||||
| 
 | ||||
|                         <br> | ||||
|  | ||||
| @ -131,7 +131,7 @@ | ||||
|                             <label for="convertPDFToImage" th:text="#{watermark.selectText.10}"></label> | ||||
|                         </div> | ||||
|                         <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> | ||||
|                     </form> | ||||
| 
 | ||||
|  | ||||
| @ -74,7 +74,7 @@ | ||||
|                   <label for="convertPDFToImage" th:text="#{autoRedact.convertPDFToImageLabel}"></label> | ||||
|                 </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> | ||||
|             </div> | ||||
|           </div> | ||||
|  | ||||
| @ -26,7 +26,7 @@ | ||||
|                   <input type="text" id="watermarkText" name="watermarkText" class="form-control" placeholder="Stirling-PDF" required /> | ||||
|                 </div> | ||||
|                 <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> | ||||
|               </form> | ||||
|             </div> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user