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

Fixed #718 - new template page should not force input amount

parent a729e746
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@
<@fontColorPickerMacros.fontColorPicker template/>
<#-- buttons -->
<@newTransactionMacros.buttons cancelURL="/templates" includeContinueButton=false/>
<@newTransactionMacros.buttons cancelURL="/templates" includeContinueButton=false allowEmptyAmount=true/>
</form>
<div id="transactionNameKeywordWarningModalContainer"></div>
......
......@@ -310,7 +310,7 @@
</div>
</#macro>
<#macro buttons cancelURL includeContinueButton>
<#macro buttons cancelURL includeContinueButton allowEmptyAmount=false>
<div id="keywordCheckUrl" class="hidden" data-url="<@s.url '/keywords/keywordCheck'/>"></div>
<br>
......@@ -323,7 +323,7 @@
<#if includeContinueButton>
<@buttonSaveAndContinue/>&nbsp;
</#if>
<@buttonSave/>
<@buttonSave allowEmptyAmount/>
</div>
</div>
......@@ -342,7 +342,7 @@
</#if>
<div class="row center-align">
<div class="col s12">
<@buttonSave/>
<@buttonSave allowEmptyAmount/>
</div>
</div>
</div>
......@@ -352,8 +352,8 @@
<@header.buttonLink url=cancelURL icon='clear' localizationKey='cancel' id='button-cancel-save-transaction' color='red'/>
</#macro>
<#macro buttonSave>
<@header.buttonSubmit name='action' icon='save' localizationKey='save' id='button-save-transaction' color='green' onclick='return validateForm(false, false, false)'/>
<#macro buttonSave allowEmptyAmount>
<@header.buttonSubmit name='action' icon='save' localizationKey='save' id='button-save-transaction' color='green' onclick='return validateForm(false, ${allowEmptyAmount?c}, false)'/>
</#macro>
<#macro buttonSaveAndContinue>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment