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

#596 - automatically show repeating options if a repeating transactions is edited

parent cb0ac2ac
No related branches found
No related tags found
No related merge requests found
...@@ -154,7 +154,13 @@ ...@@ -154,7 +154,13 @@
</#macro> </#macro>
<#macro transactionRepeating transaction currentDate> <#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>"> <input type="hidden" name="isRepeating" value="<#if transaction.getRepeatingOption()??>1}</#if>">
<div class="row"> <div class="row">
......
...@@ -72,12 +72,6 @@ ...@@ -72,12 +72,6 @@
</#if> </#if>
<@customSelectMacros.customAccountSelect "account-select-wrapper" "account" accounts selectedAccount "col s12 m12 l8 offset-l2" locale.getString("transaction.new.label.account") "transaction-account"/> <@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 --> <#-- repeating options -->
<@newTransactionMacros.transactionRepeating transaction currentDate/> <@newTransactionMacros.transactionRepeating transaction currentDate/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment