Files
financer/financer-web-client/src/main/resources/templates/transaction/searchTransactions.html

61 lines
3.0 KiB
HTML

<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title th:text="#{financer.search-transactions.title}"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" th:href="@{/css/main.css}">
<link rel="shortcut icon" th:href="@{/favicon.ico}" />
</head>
<body>
<h1 th:text="#{financer.heading.search-transactions}" />
<span class="errorMessage" th:if="${errorMessage != null}" th:text="#{'financer.error-message.' + ${errorMessage}}"/>
<a th:href="@{/accountOverview}" th:text="#{financer.search-transactions.back-to-overview}"/>
<form id="search-transactions-form" action="#" th:action="@{/searchTransactions}" th:object="${form}"
method="post">
<label for="inputFql" th:text="#{financer.search-transactions.label.fql}"/>
<input type="text" id="inputFql" th:field="*{fql}"/>
<input type="submit" th:value="#{financer.search-transactions.submit}"/>
</form>
<details>
<summary th:text="#{financer.search-transactions.show-query-options}"/>
<div id="search-transactions-fql-detail">
<p>
<div>Available fields:</div>
<ul>
<li>amount: the amount of a transaction</li>
<li>fromAccount: the key of the from account</li>
<li>toAccount: the key of the to account</li>
<li>fromAccountGroup: the name of the account group of the from account</li>
<li>toAccountGroup: the name of the account group of the to account</li>
<li>date: the date of the transaction in the format yyyy-mm-dd</li>
<li>recurring: whether the transaction has been created from a recurring transaction</li>
<li>taxRelevant: whether the transaction is relevant for tax declaration</li>
<li>period: the period the transaction is assigned to
<ul>
<li>CURRENT: denotes the current expense period</li>
<li>LAST: denotes the last expense period</li>
<li>CURRENT_YEAR: denotes the current year period</li>
<li>LAST_YEAR: denotes the last year period</li>
<li>GRAND_TOTAL: denotes the grand total period</li>
</ul>
</li>
</ul>
</p>
<p>
<div>General</div>
<ul>
<li>Conjunctions with OR, AND</li>
<li>Grouping of expressions with parenthesis</li>
<li>Strings enclosed in single quotes</li>
<li>Case-insensitive</li>
<li>Possible operators =, >, >=, <, <=, !=</li>
<li>Ordering for a single field ASC, DESC via ORDER BY</li>
</ul>
</p>
</div>
</details>
<div th:replace="transaction/transactionList :: transaction-list"/>
<div th:replace="includes/footer :: footer"/>
</body>
</html>