64 lines
2 KiB
Smarty
64 lines
2 KiB
Smarty
|
{{ define "content" }}
|
||
|
|
||
|
<div class="container">
|
||
|
|
||
|
<nav aria-label="breadcrumb">
|
||
|
<ol class="breadcrumb">
|
||
|
<li class="breadcrumb-item"><a href="/Answers?{{query "tpl_layout" "base" "tpl_content" "Answers"}}">Answers</a></li>
|
||
|
<li class="breadcrumb-item active"><a href="#">{{.Data.Name}}</a></li>
|
||
|
</ol>
|
||
|
</nav>
|
||
|
|
||
|
<div class="karmen-info-header">
|
||
|
<div class="row">
|
||
|
<div class="col-md-8">
|
||
|
<h1>{{.Data.Name}}</h1>
|
||
|
</div>
|
||
|
<div class="col-md-4">
|
||
|
|
||
|
<div class="btn-group pull-right" role="group">
|
||
|
<a href="/Answers/add/?{{query "tpl_layout" "base" "tpl_content" "Answers_add_update"}}" class="btn btn-success">
|
||
|
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
|
||
|
Crea
|
||
|
</a>
|
||
|
|
||
|
<a href="/Answers/{{.Data.ID}}/update?{{query "tpl_layout" "base" "tpl_content" "Answers_add_update" "update" "true"}}" class="btn btn-primary">
|
||
|
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
|
||
|
Modifica
|
||
|
</a>
|
||
|
<button href="/Answers/{{.Data.ID}}/delete"
|
||
|
data-url="/Answers/{{.Data.ID}}/delete"
|
||
|
class="btn btn-danger karmen-ajax-delete">
|
||
|
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
|
||
|
Elimina
|
||
|
</button>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
|
||
|
<h2 class="karmen-relation-header">sub items</h2>
|
||
|
{{if .Data.Items}}
|
||
|
<div class="list-group" id="materie_list_group">
|
||
|
<a href="/subjects/{{.Data.Subject.ID}}?{{query "tpl_layout" "base" "tpl_content" "subjects_show"}}" class="list-group-item clearfix">
|
||
|
<span class="glyphicon glyphicon-book"></span>
|
||
|
{{.Data.Subject.Name}}
|
||
|
</a>
|
||
|
</div>
|
||
|
{{else}}
|
||
|
<p>All'attività non è associata alcuna materia
|
||
|
didattica. Clicca <a href="/activities/update?{{query "tpl_layout" "base" "tpl_content" "activities_add_update"}}">qui</a> per
|
||
|
modificare questa attività didattica.</p>
|
||
|
{{end}}
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
{{ end }}
|