Skip to content
Snippets Groups Projects
Commit c3e0d3d4 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

usability improvements (updated localization; new payment switch now defaults to expenditure)

parent 14e44e28
No related branches found
No related tags found
No related merge requests found
Pipeline #253 passed
...@@ -25,8 +25,8 @@ error.database.import.unknown.version=Die hochgeladene JSON Datei enth ...@@ -25,8 +25,8 @@ error.database.import.unknown.version=Die hochgeladene JSON Datei enth
# TITLE # TITLE
title.incomes=Einnahmen title.incomes=Einnahmen
title.income=Einnahme title.income=Einnahme
title.transactions=Ausgaben title.expenditures=Expenditures
title.transaction=Ausgabe title.expenditure=Expenditure
title.rest=Rest title.rest=Rest
title.category=Kategorie title.category=Kategorie
title.amount=Betrag title.amount=Betrag
......
...@@ -25,8 +25,8 @@ error.database.import.unknown.version=The uploaded JSON File does not contain a ...@@ -25,8 +25,8 @@ error.database.import.unknown.version=The uploaded JSON File does not contain a
# TITLE # TITLE
title.incomes=Incomes title.incomes=Incomes
title.income=Income title.income=Income
title.transactions=Transactions title.expenditures=Expenditures
title.transaction=Transaction title.expenditure=Expenditure
title.rest=Rest title.rest=Rest
title.category=Category title.category=Category
title.amount=Amount title.amount=Amount
......
...@@ -29,9 +29,13 @@ ...@@ -29,9 +29,13 @@
<div class="switch"> <div class="switch">
<label> <label>
${locale.getString("title.income")} ${locale.getString("title.income")}
<input type="checkbox" name="isPayment" <#if transaction.getAmount()?? && transaction.getAmount() < 0>checked</#if>> <#if transaction.getAmount()??>
<input type="checkbox" name="isPayment" <#if transaction.getAmount() < 0>checked</#if>>
<#else>
<input type="checkbox" name="isPayment" checked>
</#if>
<span class="lever"></span> <span class="lever"></span>
${locale.getString("title.transaction")} ${locale.getString("title.expenditure")}
</label> </label>
</div> </div>
</div> </div>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<div class="icon-block"> <div class="icon-block">
<h1 class="center ${redTextColor} budget-headline-icon"><i class="material-icons icon-budget">file_upload</i></h1> <h1 class="center ${redTextColor} budget-headline-icon"><i class="material-icons icon-budget">file_upload</i></h1>
<h5 class="center budget">${helpers.getCurrencyString(paymentSum)}</h5> <h5 class="center budget">${helpers.getCurrencyString(paymentSum)}</h5>
<h5 class="center budget-headline">${locale.getString("title.transactions")}</h5> <h5 class="center budget-headline">${locale.getString("title.expenditures")}</h5>
</div> </div>
</div> </div>
<div class="col s4"> <div class="col s4">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment