Skip to content
Snippets Groups Projects
Select Git revision
  • d564481d57dd388ccf2dd1ed9aefe1d041e8b4c5
  • 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
  • newTransactionRepeating.ftl 4.59 KiB
    <html>
        <head>
            <#import "../helpers/header.ftl" as header>
            <@header.globals/>
            <#assign title = locale.getString("title.transaction.new.repeating.long")/>
            <#if isEdit>
                <#assign title=locale.getString("title.transaction.edit", title)/>
            <#else>
                <#assign title=locale.getString("title.transaction.new", title)/>
            </#if>
    
            <@header.header "BudgetMaster - ${title}"/>
            <@header.style "transactions"/>
            <@header.style "datepicker"/>
            <@header.style "categories"/>
            <#import "/spring.ftl" as s>
        </head>
        <@header.body>
            <#import "../helpers/navbar.ftl" as navbar>
            <@navbar.navbar "transactions" settings/>
    
            <#import "newTransactionMacros.ftl" as newTransactionMacros>
    
            <main>
                <div class="card main-card background-color">
                    <div class="container">
                        <div class="section center-align">
                            <div class="headline">${title}</div>
                        </div>
                    </div>
    
                    <@header.content>
                        <div class="container">
                            <#import "../helpers/validation.ftl" as validation>
                            <form name="NewTransaction" action="<@s.url '/transactions/newTransaction/repeating'/>" method="post" onsubmit="return validateForm()">
                                <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
                                <input type="hidden" name="ID" value="<#if transaction.getID()??>${transaction.getID()?c}</#if>">
                                <input type="hidden" name="isRepeating" value="${transaction.isRepeating()?c}">
                                <input type="hidden" name="previousType" value="<#if previousType??>${previousType.name()}</#if>">
    
                                <#-- isPayment switch -->
                                <@newTransactionMacros.isExpenditureSwitch transaction/>
    
                                <#-- name -->
                                <@newTransactionMacros.transactionName transaction suggestionsJSON/>
    
                                <#-- amount -->
                                <@newTransactionMacros.transactionAmount transaction/>
    
                                <#-- category -->
                                <@newTransactionMacros.categorySelect categories transaction.getCategory() "col s12 m12 l8 offset-l2" locale.getString("transaction.new.label.category")/>
    
                                <#-- date -->
                                <@newTransactionMacros.transactionStartDate transaction currentDate/>
    
                                <#-- description -->
                                <@newTransactionMacros.transactionDescription transaction/>
    
                                <#-- tags -->
                                <@newTransactionMacros.transactionTags transaction/>
    
                                <#-- account -->
                                <#if transaction.getAccount()??>
                                    <@newTransactionMacros.account accounts transaction.getAccount() "transaction-account" "account" locale.getString("transaction.new.label.account") false/>
                                <#else>
                                    <@newTransactionMacros.account accounts helpers.getCurrentAccountOrDefault() "transaction-account" "account" locale.getString("transaction.new.label.account") false/>
                                </#if>
    
                                <#-- repeating options -->
                                <@newTransactionMacros.transactionRepeating transaction currentDate/>
                                <br>
                                <#-- buttons -->
                                <@newTransactionMacros.buttons "/transactions"/>
                                <@newTransactionMacros.buttonTransactionActions isEdit false previousType??/>
                            </form>
    
                            <div id="changeTransactionTypeModalContainer"></div>
                        </div>
                    </@header.content>
                </div>
            </main>
    
            <!-- Pass localization to JS -->
            <#import "../helpers/globalDatePicker.ftl" as datePicker>
            <@datePicker.datePickerLocalization/>
    
            <!-- Scripts-->
            <#import "../helpers/scripts.ftl" as scripts>
            <@scripts.scripts/>
            <script src="<@s.url '/js/libs/spectrum.js'/>"></script>
            <script src="<@s.url '/js/helpers.js'/>"></script>
            <script src="<@s.url '/js/transactions.js'/>"></script>
            <script src="<@s.url '/js/transactionActions.js'/>"></script>
            <script src="<@s.url '/js/categorySelect.js'/>"></script>
        </@header.body>
    </html>