This commit is contained in:
fz 2024-11-17 22:48:15 +01:00
parent 3e72b5a9b8
commit 93a0176890
8 changed files with 10 additions and 2 deletions

View File

@ -17,6 +17,7 @@
<span class="material-symbols-rounded tool-header-icon advance">layers</span> <span class="material-symbols-rounded tool-header-icon advance">layers</span>
<span class="tool-header-text" th:text="#{overlay-pdfs.header}"></span> <span class="tool-header-text" th:text="#{overlay-pdfs.header}"></span>
</div> </div>
<div><p th:text="#{home.overlay-pdfs.desc}"></p></div>
<form id="overlayForm" method="post" enctype="multipart/form-data" th:action="@{'/api/v1/general/overlay-pdfs'}"> <form id="overlayForm" method="post" enctype="multipart/form-data" th:action="@{'/api/v1/general/overlay-pdfs'}">
<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>
<div th:replace="~{fragments/common :: fileSelector(name='overlayFiles', multipleInputsForSingleRequest=true, accept='application/pdf')}"></div> <div th:replace="~{fragments/common :: fileSelector(name='overlayFiles', multipleInputsForSingleRequest=true, accept='application/pdf')}"></div>

View File

@ -16,6 +16,7 @@
<span class="material-symbols-rounded tool-header-icon organize">format_list_bulleted</span> <span class="material-symbols-rounded tool-header-icon organize">format_list_bulleted</span>
<span class="tool-header-text" th:text="#{pdfOrganiser.header}"></span> <span class="tool-header-text" th:text="#{pdfOrganiser.header}"></span>
</div> </div>
<div><p th:text="#{home.pdfOrganiser.desc}"></p></div>
<form th:action="@{'/api/v1/general/rearrange-pages'}" method="post" enctype="multipart/form-data"> <form th:action="@{'/api/v1/general/rearrange-pages'}" 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>

View File

@ -16,6 +16,7 @@
<span class="material-symbols-rounded tool-header-icon organize">looks_one</span> <span class="material-symbols-rounded tool-header-icon organize">looks_one</span>
<span class="tool-header-text" th:text="#{pdfToSinglePage.header}"></span> <span class="tool-header-text" th:text="#{pdfToSinglePage.header}"></span>
</div> </div>
<div><p th:text="#{home.pdfToSinglePage.desc}"></p></div>
<form method="post" enctype="multipart/form-data" th:action="@{'/api/v1/general/pdf-to-single-page'}"> <form method="post" enctype="multipart/form-data" th:action="@{'/api/v1/general/pdf-to-single-page'}">
<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" id="submitBtn" class="btn btn-primary" th:text="#{pdfToSinglePage.submit}"></button> <button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{pdfToSinglePage.submit}"></button>

View File

@ -20,6 +20,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>
<div><p th:text="#{home.removeImage.desc}"></p></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>

View File

@ -16,6 +16,7 @@
<span class="material-symbols-rounded tool-header-icon organize">delete</span> <span class="material-symbols-rounded tool-header-icon organize">delete</span>
<span class="tool-header-text" th:text="#{pageRemover.header}"></span> <span class="tool-header-text" th:text="#{pageRemover.header}"></span>
</div> </div>
<div><p th:text="#{home.pageRemover.desc}"></p></div>
<form th:action="@{'/api/v1/general/remove-pages'}" method="post" enctype="multipart/form-data"> <form th:action="@{'/api/v1/general/remove-pages'}" 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>

View File

@ -16,6 +16,7 @@
<span class="material-symbols-rounded tool-header-icon organize">rotate_right</span> <span class="material-symbols-rounded tool-header-icon organize">rotate_right</span>
<span class="tool-header-text" th:text="#{rotate.header}"></span> <span class="tool-header-text" th:text="#{rotate.header}"></span>
</div> </div>
<div><p th:text="#{home.rotate.desc}"></p></div>
<form action="#" th:action="@{'/api/v1/general/rotate-pdf'}" th:object="${rotateForm}" method="post" enctype="multipart/form-data"> <form action="#" th:action="@{'/api/v1/general/rotate-pdf'}" th:object="${rotateForm}" 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>

View File

@ -16,6 +16,7 @@
<span class="material-symbols-rounded tool-header-icon organize">fullscreen</span> <span class="material-symbols-rounded tool-header-icon organize">fullscreen</span>
<span class="tool-header-text" th:text="#{scalePages.header}"></span> <span class="tool-header-text" th:text="#{scalePages.header}"></span>
</div> </div>
<div><p th:text="#{home.scalePages.desc}"></p></div>
<form id="scalePagesFrom" th:action="@{'/api/v1/general/scale-pages'}" method="post" enctype="multipart/form-data"> <form id="scalePagesFrom" th:action="@{'/api/v1/general/scale-pages'}" 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>
<div class="mb-3"> <div class="mb-3">

View File

@ -16,6 +16,7 @@
<span class="material-symbols-rounded tool-header-icon security">lock</span> <span class="material-symbols-rounded tool-header-icon security">lock</span>
<span class="tool-header-text" th:text="#{addPassword.header}"></span> <span class="tool-header-text" th:text="#{addPassword.header}"></span>
</div> </div>
<div><p th:text="#{home.addPassword.desc}"></p></div>
<form th:action="@{'api/v1/security/add-password'}" method="post" enctype="multipart/form-data"> <form th:action="@{'api/v1/security/add-password'}" method="post" enctype="multipart/form-data">
<div class="mb-3"> <div class="mb-3">
<label th:text="#{addPassword.selectText.1}"></label> <label th:text="#{addPassword.selectText.1}"></label>