Remove artificial restriction that account keys need to start with 'accounts.'

This commit is contained in:
2019-05-12 00:43:48 +02:00
parent 2e7a809dd4
commit 9282c641d1
2 changed files with 1 additions and 2 deletions

View File

@@ -122,7 +122,6 @@ financer.heading.recurring-to-transaction-with-amount=financer\: create transact
financer.error-message.UNKNOWN_ERROR=An unknown error occurred! financer.error-message.UNKNOWN_ERROR=An unknown error occurred!
financer.error-message.INVALID_ACCOUNT_TYPE=The selected account type is not valid! financer.error-message.INVALID_ACCOUNT_TYPE=The selected account type is not valid!
financer.error-message.INVALID_ACCOUNT_KEY=The entered account key is invalid! It has to start with 'accounts.'.
financer.error-message.FROM_ACCOUNT_NOT_FOUND=The specified from account has not been found! financer.error-message.FROM_ACCOUNT_NOT_FOUND=The specified from account has not been found!
financer.error-message.TO_ACCOUNT_NOT_FOUND=The specified to account has not been found! financer.error-message.TO_ACCOUNT_NOT_FOUND=The specified to account has not been found!
financer.error-message.FROM_AND_TO_ACCOUNT_NOT_FOUND=Neither from nor to have not been found! financer.error-message.FROM_AND_TO_ACCOUNT_NOT_FOUND=Neither from nor to have not been found!

View File

@@ -11,7 +11,7 @@
<span class="errorMessage" th:if="${errorMessage != null}" th:text="#{'financer.error-message.' + ${errorMessage}}"/> <span class="errorMessage" th:if="${errorMessage != null}" th:text="#{'financer.error-message.' + ${errorMessage}}"/>
<form id="new-account-form" action="#" th:action="@{/saveAccount}" th:object="${form}" method="post"> <form id="new-account-form" action="#" th:action="@{/saveAccount}" th:object="${form}" method="post">
<label for="inputKey" th:text="#{financer.account-new.label.key}"/> <label for="inputKey" th:text="#{financer.account-new.label.key}"/>
<input type="text" id="inputKey" th:field="*{key}" placeholder="accounts."/> <input type="text" id="inputKey" th:field="*{key}" />
<label for="selectType" th:text="#{financer.account-new.label.type}"/> <label for="selectType" th:text="#{financer.account-new.label.type}"/>
<select id="selectType" th:field="*{type}"> <select id="selectType" th:field="*{type}">
<option th:each="type : ${accounttypes}" th:value="${type}" th:text="#{'financer.account-type.' + ${type}}"/> <option th:each="type : ${accounttypes}" th:value="${type}" th:text="#{'financer.account-type.' + ${type}}"/>