50 lines
2.4 KiB
HTML
50 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" xmlns:th="http://www.thymeleaf.org"
|
|
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
|
xmlns:with="http://www.thymeleaf.org/extras/with"
|
|
layout:decorate="~{layout}"
|
|
with:title="Upload">
|
|
<th:block layout:fragment="content">
|
|
<div class="container-fluid">
|
|
<div class="row justify-content-center" th:if="${foundJsonFile != null}">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-header bg-dark align-items-center">
|
|
<p class="md-12 display-5 text-light">Bestehnde Daten gefunden: </p>
|
|
</div>
|
|
<div class="card-body">
|
|
<p class="md-12 display-5" th:text="${foundJsonFile}"></p>
|
|
<form action="#" th:action="@{/data/load}" th:method="post">
|
|
<div style="display: flex; flex-direction: row; justify-content: flex-start; gap: 1em;">
|
|
<select name="account">
|
|
<option th:each="account : ${accounts}" th:value="${account.iban}"
|
|
th:text="${account.bankAccountName}">
|
|
</option>
|
|
</select>
|
|
<input th:value="${#dates.format(#dates.createNow(), 'yyyy-MM')}" type="month" id="month" name="month"/>
|
|
<input type="submit"/>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</br>
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-header bg-dark align-items-center">
|
|
<span class="md-12 display-5 text-light">Upload</span>
|
|
</div>
|
|
<div class="card-body">
|
|
<form style="display: flex; justify-content: space-between;" action="#"
|
|
th:action="@{/data/convert/}" th:method="post" enctype="multipart/form-data">
|
|
<input type="file" name="file" required/>
|
|
<input type="submit" value="Upload"/>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</th:block> |