diff --git a/templates/layout/base.html.tpl b/templates/layout/base.html.tpl index bad49591..e6c2d406 100644 --- a/templates/layout/base.html.tpl +++ b/templates/layout/base.html.tpl @@ -94,8 +94,8 @@ + diff --git a/templates/layout/submit_cancel_button.html.tpl b/templates/layout/submit_cancel_button.html.tpl index f8295609..d85d256e 100644 --- a/templates/layout/submit_cancel_button.html.tpl +++ b/templates/layout/submit_cancel_button.html.tpl @@ -5,7 +5,7 @@ Annulla {{else}} {{if .options.cancelTitle}} - Annulla + Annulla {{end}} {{end}} diff --git a/templates/schools_add_update.html.tpl b/templates/schools_add_update.html.tpl index 8c2ebc1c..339d55f2 100644 --- a/templates/schools_add_update.html.tpl +++ b/templates/schools_add_update.html.tpl @@ -105,8 +105,12 @@ {{$options := ` { saveTitle: "Invia iscrizione", model: "School" } `}} {{template "submit_cancel_buttons" dict "options" ($options|yaml) "id" (.Data|field "ID") "update" $update}} {{else}} - {{$options := ` { cancelTitle: "Annulla", saveTitle: "Salva", model: "School" } `}} + {{$options := ` { cancelTitle: "Annulla", saveTitle: "Salva", model: "School" } `}} + {{if $isAdmin}} {{template "submit_cancel_buttons" dict "options" ($options|yaml) "id" (.Data|field "ID") "update" $update}} + {{else}} + {{template "submit_cancel_buttons" dict "options" ($options|yaml) "id" (.Data|field "ID") "update" $update "referer" (.Data.ID|show "School")}} + {{end}} {{end}} diff --git a/templates/schools_show.html.tpl b/templates/schools_show.html.tpl index 613c826b..be9cb798 100644 --- a/templates/schools_show.html.tpl +++ b/templates/schools_show.html.tpl @@ -55,6 +55,9 @@
{{.Data.User.Username}}
Password
{{.Data.User.Password}}
+ +
Referente di sede
{{.Data.SchoolContactPersonLastname}} {{.Data.SchoolContactPersonFirstname}}
+
Responsabile di gara
{{.Data.ContestDirectorLastname}} {{.Data.ContestDirectorFirstname}}
{{if $isAdmin}} {{if $creatorUser:=.Data.CreatedBy}}