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}}
|
2020-02-03 11:54:53 +01:00
|
|
|
<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}}
|