Changed the names of the introduced options for it to be more intiuitive for the user

This commit is contained in:
OUNZAR Aymane 2025-10-23 19:54:50 +02:00
parent 66787bcc08
commit b249028199
3 changed files with 16 additions and 16 deletions

View File

@ -21,12 +21,12 @@ public class MergeMultiplePagesRequest extends PDFFile {
@Schema(
description = "The layout direction of content on the page",
type = "string",
defaultValue = "TOP_DOWN_LEFT_RIGHT",
defaultValue = "LR_TD",
allowableValues = {
"TOP_DOWN_LEFT_RIGHT",
"TOP_DOWN_RIGHT_LEFT",
"BOTTOM_UP_LEFT_RIGHT",
"BOTTOM_UP_RIGHT_LEFT"
"LR_TD",
"RL_TD",
"TD_LR",
"TD_RL"
})
private String direction;

View File

@ -1163,11 +1163,11 @@ pageLayout.landscape=Landscape
pageLayout.addBorder=Add Borders
pageLayout.rows=Rows
pageLayout.columns=Columns
pageLayout.direction=Direction
pageLayout.topDownLeftRight=Top down then left right
pageLayout.topDownRightLeft=Top down then right left
pageLayout.bottomUpLeftRight=Bottom up then left right
pageLayout.bottomUpRightLeft=Bottom up then right left
pageLayout.pageOrder=Page order:
pageLayout.leftRightTopDown=Left -> Right, then Top -> Bottom
pageLayout.rightLeftTopDown=Right -> Left, then Top -> Bottom
pageLayout.topDownLeftRight=Top -> Bottom, then Left -> Right
pageLayout.topDownRightLeft=Top -> Bottom, then Right -> Left
pageLayout.submit=Submit

View File

@ -37,12 +37,12 @@
<input type="text" class="form-control" id="columns" name="columns" required>
</div>
<div class="mb-3">
<label for="direction" th:text="#{pageLayout.direction}"></label>
<select class="form-control" id="direction" name="direction">
<option value="TOP_DOWN_LEFT_RIGHT" th:text="#{pageLayout.topDownLeftRight}"></option>
<option value="TOP_DOWN_RIGHT_LEFT" th:text="#{pageLayout.topDownRightLeft}"></option>
<option value="BOTTOM_UP_RIGHT_LEFT" th:text="#{pageLayout.bottomUpRightLeft}"></option>
<option value="BOTTOM_UP_LEFT_RIGHT" th:text="#{pageLayout.bottomUpLeftRight}"></option>
<label for="page-order" th:text="#{pageLayout.pageOrder}"></label>
<select class="form-control" id="page-order" name="page-order">
<option value="LR_TD" th:text="#{pageLayout.leftRightTopDown}"></option>
<option value="RL_TD" th:text="#{pageLayout.rightLeftTopDown}"></option>
<option value="TD_LR" th:text="#{pageLayout.topDownLeftRight}"></option>
<option value="TD_RL" th:text="#{pageLayout.topDownRightLeft}"></option>
</select>
</div>
<div class="mb-3">