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

#547 - Fixed: cancel template edit leads to wrong page

parent 6825a011
Branches
Tags
No related merge requests found
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<br> <br>
<#-- buttons --> <#-- buttons -->
<@newTransactionMacros.buttons/> <@newTransactionMacros.buttons "/templates"/>
</form> </form>
</div> </div>
</div> </div>
......
...@@ -340,10 +340,10 @@ ...@@ -340,10 +340,10 @@
</div> </div>
</#macro> </#macro>
<#macro buttons> <#macro buttons cancelURL>
<div class="row hide-on-small-only"> <div class="row hide-on-small-only">
<div class="col s6 right-align"> <div class="col s6 right-align">
<@buttonCancel/> <@buttonCancel cancelURL/>
</div> </div>
<div class="col s6 left-align"> <div class="col s6 left-align">
...@@ -354,7 +354,7 @@ ...@@ -354,7 +354,7 @@
<div class="hide-on-med-and-up"> <div class="hide-on-med-and-up">
<div class="row center-align"> <div class="row center-align">
<div class="col s12"> <div class="col s12">
<@buttonCancel/> <@buttonCancel cancelURL/>
</div> </div>
</div> </div>
<div class="row center-align"> <div class="row center-align">
...@@ -365,8 +365,8 @@ ...@@ -365,8 +365,8 @@
</div> </div>
</#macro> </#macro>
<#macro buttonCancel> <#macro buttonCancel cancelURL>
<a href="<@s.url '/transactions'/>" class="waves-effect waves-light btn budgetmaster-blue"><i class="material-icons left">clear</i>${locale.getString("cancel")}</a> <a href="<@s.url cancelURL/>" class="waves-effect waves-light btn budgetmaster-blue"><i class="material-icons left">clear</i>${locale.getString("cancel")}</a>
</#macro> </#macro>
<#macro buttonSave> <#macro buttonSave>
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<br> <br>
<#-- buttons --> <#-- buttons -->
<@newTransactionMacros.buttons/> <@newTransactionMacros.buttons "/transactions"/>
<@newTransactionMacros.buttonTemplate/> <@newTransactionMacros.buttonTemplate/>
</form> </form>
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<@newTransactionMacros.transactionRepeating transaction currentDate/> <@newTransactionMacros.transactionRepeating transaction currentDate/>
<br> <br>
<#-- buttons --> <#-- buttons -->
<@newTransactionMacros.buttons/> <@newTransactionMacros.buttons "/transactions"/>
</form> </form>
</div> </div>
</div> </div>
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<br> <br>
<#-- buttons --> <#-- buttons -->
<@newTransactionMacros.buttons/> <@newTransactionMacros.buttons "/transactions"/>
<@newTransactionMacros.buttonTemplate/> <@newTransactionMacros.buttonTemplate/>
</form> </form>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment