12 lines
435 B
Smarty
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}}
|