WIP Initial commit for financer web client
This commit is contained in:
22
src/main/resources/templates/account/newAccount.html
Normal file
22
src/main/resources/templates/account/newAccount.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<title th:text="#{financer.account-new.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}">
|
||||
</head>
|
||||
<body>
|
||||
<h1 th:text="#{financer.heading.account-new}" />
|
||||
<span class="errorMessage" th:if="${errorMessage != null}" th:text="#{'financer.error-message.' + ${errorMessage}}"/>
|
||||
<form id="new-account-form" action="#" th:action="@{/saveAccount}" th:object="${newAccountForm}" method="post">
|
||||
<label for="inputKey" th:text="#{financer.account-new.label.key}"/>
|
||||
<input type="text" id="inputKey" th:field="*{key}" placeholder="accounts."/>
|
||||
<label for="selectType" th:text="#{financer.account-new.label.type}"/>
|
||||
<select id="selectType" th:field="*{type}">
|
||||
<option th:each="type : ${accounttypes}" th:value="${type}" th:text="#{'financer.account-type.' + ${type}}"/>
|
||||
</select>
|
||||
<input type="submit" th:value="#{financer.account-new.submit}" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user