Stirling-PDF/src/main/resources/templates/scale-pages.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
2.2 KiB
HTML
Raw Normal View History

2023-05-31 21:39:40 +02:00
<!DOCTYPE html>
<html th:lang="${#locale.toString()}" th:lang-direction="#{language.direction}" xmlns:th="http://www.thymeleaf.org">
<th:block th:insert="~{fragments/common :: head(title=#{scalePages.title}, header=#{scalePages.header})}"></th:block>
2023-05-31 21:39:40 +02:00
<body>
<div id="page-container">
<div id="content-wrap">
<div th:insert="~{fragments/navbar.html :: navbar}"></div>
<br> <br>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6">
<h2 th:text="#{scalePages.header}"></h2>
2023-09-13 01:46:30 +02:00
<form id="scalePagesFrom" th:action="@{api/v1/general/scale-pages}" method="post" enctype="multipart/form-data">
2023-05-31 21:39:40 +02:00
<div th:replace="~{fragments/common :: fileSelector(name='fileInput', multiple=false, accept='application/pdf')}"></div>
2023-08-20 22:57:19 +02:00
<div class="mb-3">
2023-05-31 21:39:40 +02:00
<label for="pageSize" th:text="#{scalePages.pageSize}"></label>
<select id="pageSize" name="pageSize" required>
2023-06-01 22:37:33 +02:00
<option value="A0">A0</option>
<option value="A1">A1</option>
<option value="A2">A2</option>
<option value="A3">A3</option>
<option value="A4" selected>A4</option>
<option value="A5">A5</option>
2023-09-02 21:21:55 +02:00
<option value="A6">A6</option>
2023-06-01 22:37:33 +02:00
<option value="LETTER">Letter</option>
<option value="LEGAL">Legal</option>
2023-05-31 21:39:40 +02:00
</select>
</div>
2023-08-20 22:57:19 +02:00
<div class="mb-3">
2023-05-31 21:39:40 +02:00
<label for="scaleFactor" th:text="#{scalePages.scaleFactor}"></label>
<input type="number" id="scaleFactor" name="scaleFactor" step="any" min="0" value="1">
</div>
<button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{scalePages.submit}"></button>
</form>
</div>
</div>
</div>
</div>
<div th:insert="~{fragments/footer.html :: footer}"></div>
</div>
</body>
</html>