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

Fixed #532 - Wrong redirect on cancel action on template edit

parent b35b3a3c
No related branches found
No related tags found
No related merge requests found
Pipeline #3640 failed
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<br> <br>
<#-- buttons --> <#-- buttons -->
<@newTransactionMacros.buttons/> <@newTransactionMacros.buttons '/templates'/>
</form> </form>
</div> </div>
</div> </div>
......
...@@ -335,10 +335,10 @@ ...@@ -335,10 +335,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">
...@@ -349,7 +349,7 @@ ...@@ -349,7 +349,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">
...@@ -360,8 +360,8 @@ ...@@ -360,8 +360,8 @@
</div> </div>
</#macro> </#macro>
<#macro buttonCancel> <#macro buttonCancel url>
<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 url/>" 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