2019-11-13 13:57:41 +01:00
|
|
|
{{ define "content" }}
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
2019-11-13 15:54:17 +01:00
|
|
|
{{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")}}
|
2019-11-13 13:57:41 +01:00
|
|
|
|
2019-11-13 15:54:17 +01:00
|
|
|
<h2 class="karmen-relation-header">Testo della risposta</h2>
|
|
|
|
<p>
|
|
|
|
{{.Data.Text}}
|
|
|
|
</p>
|
2019-11-13 13:57:41 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2019-11-13 15:54:17 +01:00
|
|
|
|
|
|
|
{{$options := `
|
|
|
|
title: "Domanda relativa alla risposta"
|
|
|
|
model: "Question"
|
|
|
|
icon: "fa fa-question-circle"
|
|
|
|
`}}
|
2019-11-13 13:57:41 +01:00
|
|
|
|
2019-11-13 15:54:17 +01:00
|
|
|
{{$noElements := "nessuna domanda relativa a questa risposta"}}
|
|
|
|
{{template "relation_list" dict "options" ($options|yaml) "data" .Data.Question "noElements" $noElements}}
|
2019-11-13 13:57:41 +01:00
|
|
|
|
2019-11-13 15:54:17 +01:00
|
|
|
</div>
|
2019-11-13 13:57:41 +01:00
|
|
|
</div>
|
2019-11-13 15:54:17 +01:00
|
|
|
|
2019-11-13 13:57:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ end }}
|