28 lines
947 B
Smarty
28 lines
947 B
Smarty
|
{{ define "content" }}
|
||
|
|
||
|
<div class="container">
|
||
|
|
||
|
{{template "breadcrumb" toSlice "Gare" (all "Contest") (.Data|string) "current"}}
|
||
|
{{template "show_header" dict "title" (.Data|string) "updatePath" (.Data.ID|update "Contest") "deletePath" (.Data.ID|delete "Contest")}}
|
||
|
|
||
|
<h2 class="karmen-relation-header">Informazioni generali sulla gara</h2>
|
||
|
<p>La gara si svolgerà il giorno <strong>{{.Data.Date|prettyDate}}</strong> dalle ore <strong>{{.Data.StartTime|convertTime}}</strong> alle ore <strong>{{.Data.EndTime|convertTime}}</strong>.</p>
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
|
||
|
{{$options := `
|
||
|
title: "Domande"
|
||
|
model: "Question"
|
||
|
icon: "fa fa-question-circle"
|
||
|
`}}
|
||
|
|
||
|
{{$noElements := "nessuna domanda associata alla gara"}}
|
||
|
{{template "relation_list" dict "options" ($options|yaml) "data" .Data.Questions "noElements" $noElements}}
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
{{ end }}
|