diff --git a/src/main/resources/templates/transactions/newTransactionMacros.ftl b/src/main/resources/templates/transactions/newTransactionMacros.ftl index 75579718eaf51d4d8fe39f8f48b90f52d206ce62..75d726084e4aa87d431f3793cad8be1ffbd35d08 100644 --- a/src/main/resources/templates/transactions/newTransactionMacros.ftl +++ b/src/main/resources/templates/transactions/newTransactionMacros.ftl @@ -154,7 +154,13 @@ </#macro> <#macro transactionRepeating transaction currentDate> - <div class="hidden" id="transaction-repeating-option"> + <div class="row <#if transaction.isRepeating()>hidden</#if>"> + <div class="col s12 center-align"> + <@header.buttonLink url='' icon='repeat' localizationKey='repeating.button' id='button-transaction-add-repeating-option' color='background-blue-baby' noUrl=true classes="text-black"/> + </div> + </div> + + <div class="<#if !transaction.isRepeating()>hidden</#if>" id="transaction-repeating-option"> <input type="hidden" name="isRepeating" value="<#if transaction.getRepeatingOption()??>1}</#if>"> <div class="row"> diff --git a/src/main/resources/templates/transactions/newTransactionNormal.ftl b/src/main/resources/templates/transactions/newTransactionNormal.ftl index 154f59ae4941d69a3908ac63fa80d770062c3ff5..4dfcf56988fadf3f9ad721fee37b7f4504b39a15 100644 --- a/src/main/resources/templates/transactions/newTransactionNormal.ftl +++ b/src/main/resources/templates/transactions/newTransactionNormal.ftl @@ -72,12 +72,6 @@ </#if> <@customSelectMacros.customAccountSelect "account-select-wrapper" "account" accounts selectedAccount "col s12 m12 l8 offset-l2" locale.getString("transaction.new.label.account") "transaction-account"/> - <div class="row"> - <div class="col s12 center-align"> - <@header.buttonLink url='' icon='repeat' localizationKey='repeating.button' id='button-transaction-add-repeating-option' color='background-blue-baby' noUrl=true classes="text-black"/> - </div> - </div> - <#-- repeating options --> <@newTransactionMacros.transactionRepeating transaction currentDate/>