Newer
Older
<@header.header "BudgetMaster"/>
<@header.style "categories"/>
<@header.style "globalDatepicker"/>
</head>
<body class="budgetmaster-blue-light">

Robert Goldmann
committed
<@navbar.navbar "transactions"/>
<#import "transactionsMacros.ftl" as transactionsMacros>

Robert Goldmann
committed
<div class="card main-card background-color">
<#import "../helpers/globalDatePicker.ftl" as datePicker>

Robert Goldmann
committed
<@datePicker.datePicker currentDate springMacroRequestContext.getRequestUri()/>

Robert Goldmann
committed
<div class="container">
<div class="row">
<div class="col s4">
<div class="icon-block">
<h1 class="center text-green budget-headline-icon"><i class="material-icons icon-budget">file_download</i></h1>
<h5 class="center budget">${helpers.getCurrencyString(incomeSum)}</h5>

Robert Goldmann
committed
<h5 class="center budget-headline">${locale.getString("title.incomes")}</h5>

Robert Goldmann
committed
</div>
</div>
<div class="col s4">
<div class="icon-block">

Robert Goldmann
committed
<h1 class="center ${redTextColor} budget-headline-icon"><i class="material-icons icon-budget">file_upload</i></h1>

Robert Goldmann
committed
<h5 class="center budget">${helpers.getCurrencyString(paymentSum)}</h5>

Robert Goldmann
committed
<h5 class="center budget-headline">${locale.getString("title.expenditures")}</h5>

Robert Goldmann
committed
</div>
</div>
<div class="col s4">
<div class="icon-block">
<h1 class="center budgetmaster-blue-text budget-headline-icon"><i class="fas fa-piggy-bank icon-budget"></i></h1>
<h5 class="center budget">${helpers.getCurrencyString(rest)}</h5>

Robert Goldmann
committed
<h5 class="center budget-headline">${locale.getString("title.rest")}</h5>

Robert Goldmann
committed
</div>
</div>

Robert Goldmann
committed

Robert Goldmann
committed
<#-- buttons -->
<@transactionsMacros.buttons isFilterActive/>

Robert Goldmann
committed

Robert Goldmann
committed
<#-- transactions list -->
<div class="row">
<div class="col s12">
<table class="bordered">
<#list transactions as transaction>
<tr>
<td>${helpers.getDateString(transaction.date)}</td>
<@transactionsMacros.transactionRepeating transaction/>
<@transactionsMacros.transactionCategory transaction/>
<@transactionsMacros.transactionNameAndDescription transaction/>
<@transactionsMacros.transactionAmount transaction.getAmount()/>
<@transactionsMacros.transactionButtons transaction/>
</tr>
</#list>
</table>
</div>
</div>
<#-- show placeholde text if no transactions are present in the current month or REST ist the only transaction -->
<@transactionsMacros.placeholder transactions/>

Robert Goldmann
committed
<#if currentTransaction??>
<@transactionsMacros.deleteModal currentTransaction/>
<@scripts.scripts/>
<script src="<@s.url '/js/transactions.js'/>"></script>
<script src="<@s.url '/js/globalDatePicker.js'/>"></script>

Robert Goldmann
committed
<script>document.cookie = "currentDate=${helpers.getDateString(currentDate)}";</script>