Skip to content
Snippets Groups Projects
Select Git revision
  • 87752b91fc8e028b83abe82e770ce88c57d50f2b
  • master default
  • renovate/selenium.version
  • renovate/assertj-core.version
  • renovate/major-fontawesome.version
  • renovate/datatables.version
  • renovate/opencsv.version
  • renovate/org.springframework.boot-spring-boot-starter-parent-3.x
  • renovate/junit-jupiter-engine.version
  • renovate/testcontainer.version
  • demo
  • v1_8_1
  • v2.18.1
  • v2.18.0
  • v2.17.2
  • v2.17.1
  • v2.17.0
  • v2.16.1
  • v2.16.0
  • v2.15.1
  • v2.15.0
  • v2.14.0
  • v2.13.0
  • v2.12.0
  • v2.11.0
  • v2.10.0
  • v2.9.2
  • v2.9.1
  • v2.9.0
  • v2.8.0
  • testPipeline2
  • v2.7.0
32 results

pom.xml

Blame
  • transactions.ftl 4.54 KiB
    <html>
        <head>
            <#import "../helpers/header.ftl" as header>
            <@header.header "BudgetMaster"/>
            <@header.style "categories"/>
            <@header.style "transactions"/>
            <@header.style "globalDatepicker"/>
            <@header.style "filter"/>
            <#import "/spring.ftl" as s>
        </head>
        <body class="budgetmaster-blue-light">
            <#import "../helpers/navbar.ftl" as navbar>
            <@navbar.navbar "transactions"/>
    
            <#import "transactionsMacros.ftl" as transactionsMacros>
            <#import "../filter/filterMacros.ftl" as filterMacros>
    
            <main>
                <div class="card main-card background-color">
                    <#import "../helpers/globalDatePicker.ftl" as datePicker>
                    <@datePicker.datePicker currentDate springMacroRequestContext.getRequestUri()/>
                    <div class="container transaction-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>
                                    <h5 class="center budget-headline">${locale.getString("title.incomes")}</h5>
                                </div>
                            </div>
                            <div class="col s4">
                                <div class="icon-block">
                                    <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-headline">${locale.getString("title.expenditures")}</h5>
                                </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>
                                    <h5 class="center budget-headline">${locale.getString("title.rest")}</h5>
                                </div>
                            </div>
                        </div>
    
                        <#-- buttons -->
                        <@transactionsMacros.buttons filterConfiguration.isActive()/>
    
                        <#-- transactions list -->
                        <br>
                        <div class="row">
                            <div class="col s12">
                                <table class="bordered responsive-table">
                                    <#list transactions as transaction>
                                        <tr>
                                            <td class="transaction-table-cell">${helpers.getDateStringWithoutYear(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/>
                    </div>
                </div>
    
                <#if currentTransaction??>
                    <@transactionsMacros.deleteModal currentTransaction/>
                </#if>
    
                <@filterMacros.filterModal filterConfiguration/>
            </main>
    
            <!--  Scripts-->
            <#import "../helpers/scripts.ftl" as scripts>
            <@scripts.scripts/>
            <script src="<@s.url '/js/transactions.js'/>"></script>
            <script src="<@s.url '/js/globalDatePicker.js'/>"></script>
            <script src="<@s.url '/js/filter.js'/>"></script>
            <script>document.cookie = "currentDate=${helpers.getDateString(currentDate)}";</script>
        </body>
    </html>