oef/templates/answers_show.html.tpl
2019-11-13 15:54:17 +01:00

29 lines
808 B
Smarty

{{ define "content" }}
<div class="container">
{{template "breadcrumb" toSlice "Risposte" (all "Answer") (.Data|string|trim) "current"}}
{{template "show_header" dict "title" (.Data|string|trim) "updatePath" (.Data.ID|update "Answer") "deletePath" (.Data.ID|delete "Answer")}}
<h2 class="karmen-relation-header">Testo della risposta</h2>
<p>
{{.Data.Text}}
</p>
<div class="row">
<div class="col-md-12">
{{$options := `
title: "Domanda relativa alla risposta"
model: "Question"
icon: "fa fa-question-circle"
`}}
{{$noElements := "nessuna domanda relativa a questa risposta"}}
{{template "relation_list" dict "options" ($options|yaml) "data" .Data.Question "noElements" $noElements}}
</div>
</div>
</div>
{{ end }}