Add colors, fix bugs

This commit is contained in:
2019-10-18 22:09:25 +02:00
parent b23bfb9ff5
commit 5286c94dca
8 changed files with 132 additions and 8 deletions

View File

@@ -66,6 +66,7 @@
</div>
<table id="account-overview-table">
<tr>
<th id="type-row" />
<th class="hideable-column" th:text="#{financer.account-overview.table-header.id}"/>
<th th:text="#{financer.account-overview.table-header.key}"/>
<th th:text="#{financer.account-overview.table-header.balance}"/>
@@ -76,6 +77,12 @@
<th class="hideable-column" th:text="#{financer.account-overview.table-header.status}"/>
</tr>
<tr th:each="acc : ${accounts}">
<th class="bank-row" th:if="${acc.type == T(de.financer.model.AccountType).BANK}" />
<th class="cash-row" th:if="${acc.type == T(de.financer.model.AccountType).CASH}" />
<th class="income-row" th:if="${acc.type == T(de.financer.model.AccountType).INCOME}" />
<th class="liability-row" th:if="${acc.type == T(de.financer.model.AccountType).LIABILITY}" />
<th class="expense-row" th:if="${acc.type == T(de.financer.model.AccountType).EXPENSE}" />
<th class="start-row" th:if="${acc.type == T(de.financer.model.AccountType).START}" />
<td class="hideable-column" th:text="${acc.id}"/>
<td>
<a th:href="@{/accountDetails(key=${acc.key})}" th:text="${acc.key}"/>