Stirling-PDF/src/main/resources/templates/pipeline.html

129 lines
5.9 KiB
HTML
Raw Normal View History

2023-06-13 01:32:15 +02:00
<!DOCTYPE html>
2023-06-13 20:18:40 +02:00
<html th:lang="${#locale.toString()}"
th:lang-direction="#{language.direction}"
xmlns:th="http://www.thymeleaf.org">
2023-06-13 01:32:15 +02:00
<th:block th:insert="~{fragments/common :: head(title=#{merge.title})}"></th:block>
<body>
2023-06-21 22:41:58 +02:00
<style>
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0, 0, 0); /* Fallback color */
background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}
2023-06-13 20:18:40 +02:00
2023-06-21 22:41:58 +02:00
/* Modal Content */
.modal-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
border: 1px solid #888;
width: 50%;
}
2023-06-13 20:18:40 +02:00
2023-06-21 22:41:58 +02:00
.btn-margin {
margin-right: 2px;
}
2023-06-13 20:18:40 +02:00
2023-06-21 22:41:58 +02:00
.modal-body {
display: flex;
flex-direction: column;
}
</style>
2023-06-13 20:18:40 +02:00
2023-06-21 22:41:58 +02:00
<div id="page-container">
2023-06-24 00:29:53 +02:00
<div id="content-wrap">
<div th:insert="~{fragments/navbar.html :: navbar}"></div>
<div class="container" id="dropContainer">
<div class="row justify-content-center">
<div class="col-md-6">
<!-- Homepage -->
<div class="mb-3">
<div class="form-group">
<label>Pipelines</label>
<select class="form-control" name="Pipelines">
<option value="example">example</option>
<option value="Pipelines2">example2</option>
</select>
2023-06-21 22:41:58 +02:00
</div>
2023-06-24 00:29:53 +02:00
<button id="customizeBtn" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#pipelineModal">Customize</button>
<button id="addNewPipelineBtn" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#pipelineModal">Add New Pipeline</button>
<div th:replace="~{fragments/common :: fileSelector(name='fileInput', multiple=false, accept='application/pdf')}"></div>
<button class="btn btn-primary" id="submitBtn">Submit</button>
</div>
<!-- Pipeline Modal -->
<div id="pipelineModal" class="modal fade" tabindex="-1" aria-labelledby="pipelineModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title">Pipeline Configuration</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
2023-06-21 22:41:58 +02:00
</div>
2023-06-13 01:32:15 +02:00
2023-06-24 00:29:53 +02:00
<div class="modal-body">
<!-- Buttons -->
<div class="mb-3">
<button id="savePipelineBtn" class="btn btn-success">Save Configuration</button>
<button id="validateButton" class="btn btn-success">Validate</button>
<div class="btn-group">
<button id="uploadPipelineBtn" class="btn btn-primary">Upload Configuration</button>
<input type="file" id="uploadPipelineInput" accept=".json" style="display: none;">
</div>
</div>
<!-- Operations dropdown and Add operation button -->
<div class="mb-3">
<select id="operationsDropdown" class="form-select">
<!-- Options will be dynamically populated here -->
</select>
<button id="addOperationBtn" class="btn btn-primary">Add operation to pipeline</button>
</div>
<!-- Pipeline operations list -->
<h3>Pipeline:</h3>
<ol id="pipelineList" class="list-group">
<!-- Pipeline operations will be dynamically populated here -->
</ol>
2023-06-21 22:41:58 +02:00
</div>
2023-06-24 00:29:53 +02:00
<div class="modal-footer">
<button class="btn btn-primary" id="submitConfigBtn">Submit</button>
</div>
2023-06-21 22:41:58 +02:00
</div>
</div>
2023-06-24 00:29:53 +02:00
</div>
<!-- pipelineSettings modal -->
<div id="pipelineSettingsModal" class="modal">
<div class="modal-content">
<div class="modal-body">
<span class="close">&times;</span>
<h2>Operation Settings</h2>
<div id="pipelineSettingsContent">
<!-- pipelineSettings will be dynamically populated here -->
2023-06-21 22:41:58 +02:00
</div>
</div>
</div>
2023-06-24 00:29:53 +02:00
</div>
2023-06-13 20:18:40 +02:00
2023-06-24 00:29:53 +02:00
<script src="js/pipeline.js"></script>
</div>
</div>
</div>
</div>
<div th:insert="~{fragments/footer.html :: footer}"></div>
</div>
2023-06-13 01:32:15 +02:00
</body>
</html>