oef/templates/participants_show.html.tpl

72 lines
2 KiB
Smarty
Raw Normal View History

2019-11-14 15:04:11 +01:00
{{ define "content" }}
<div class="container">
2019-11-15 10:41:32 +01:00
{{template "breadcrumb" toSlice "Partecipanti" (all "Participant") (.Data|string) "current"}}
2019-11-14 15:04:11 +01:00
{{template "show_header" dict "title" (.Data|string) "updatePath" (.Data.ID|update "Participant") "deletePath" (.Data.ID|delete "Participant")}}
2019-11-15 10:41:32 +01:00
<h2 class="karmen-relation-header">Informazioni generali</h2>
<dl class="row">
<dt class="col-sm-3">Username</dt>
<dd class="col-sm-9">{{.Data.User.Username}}</dd>
<dt class="col-sm-3">Password</dt>
<dd class="col-sm-9">{{.Data.User.Password}}</dd>
{{/*if $user:=.Data.CreatedBy*/}}
<!-- <dt class="col-sm-3">Creato da</dt> -->
<!-- <dd class="col-sm-9">{{/*$user.Username*/}}</dd> -->
{{/*end*/}}
<dt class="col-sm-3">IP del creatore</dt>
<dd class="col-sm-9">{{.Data.CreatorIP}}</dd>
</dl>
2019-12-03 15:24:01 +01:00
<div class="row">
<div class="col-md-12">
{{$options := `
title: "Scuola di appartenenza del partecipante"
model: "School"
icon: "fa fa-school"
`}}
{{$noElements := "Il partecipante non appartiene ad alcuna scuola."}}
{{template "relation_list" dict "options" ($options|yaml) "data" .Data.School "noElements" $noElements}}
</div>
</div>
2019-11-14 15:04:11 +01:00
<div class="row">
<div class="col-md-12">
{{$options := `
2019-11-15 10:41:32 +01:00
title: "Gare a cui il partecipante è iscritto"
model: "Contest"
icon: "fa fa-hourglass-start"
2019-11-14 15:04:11 +01:00
`}}
2019-11-15 10:41:32 +01:00
{{$noElements := "Il partecipante non è iscritto ad alcuna gara."}}
{{template "relation_list" dict "options" ($options|yaml) "data" .Data.Contests "noElements" $noElements}}
2019-11-14 15:04:11 +01:00
</div>
</div>
2019-11-22 11:16:27 +01:00
<div class="row">
<div class="col-md-12">
{{$options := `
title: "Prove del partecipante"
model: "Response"
icon: "fa fa-hourglass-start"
`}}
{{$noElements := "Al partecipante non è associata alcuna risposta."}}
{{template "relation_list" dict "options" ($options|yaml) "data" .Data.Responses "noElements" $noElements}}
</div>
</div>
2019-11-14 15:04:11 +01:00
</div>
{{ end }}