oef/templates/layout/submit_cancel_button.html.tpl

13 lines
435 B
Smarty
Raw Permalink Normal View History

2019-11-04 15:00:46 +01:00
{{define "submit_cancel_buttons"}}
<div class="form-group">
<button type="submit" class="btn btn-primary">{{.options.saveTitle}}</button>
{{if .options.update}}
<a href="{{.id|show .options.model}}" class="btn btn-default">Annulla</a>
{{else}}
2019-11-18 17:04:07 +01:00
{{if .options.cancelTitle}}
<a href="{{if .referer}}{{.referer|html}}{{else}}{{all .options.model}}{{end}}" class="btn btn-default">Annulla</a>
2019-11-04 15:00:46 +01:00
{{end}}
2019-11-18 17:04:07 +01:00
{{end}}
2019-11-04 15:00:46 +01:00
</div>
{{end}}