oef/templates/layout/submit_cancel_button.html.tpl
2020-02-03 11:54:53 +01:00

12 lines
435 B
Smarty

{{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}}
{{if .options.cancelTitle}}
<a href="{{if .referer}}{{.referer|html}}{{else}}{{all .options.model}}{{end}}" class="btn btn-default">Annulla</a>
{{end}}
{{end}}
</div>
{{end}}