|
@@ -0,0 +1,61 @@
|
|
|
+{{ define "content" }}
|
|
|
+
|
|
|
+<div class="container">
|
|
|
+
|
|
|
+ <ol class="breadcrumb">
|
|
|
+ <li><a href="/groups?{{query "tpl_layout" "base" "tpl_content" "groups"}}">groups</a></li>
|
|
|
+ <li class="active"><a href="#">{{.Data.Name}}</a></li>
|
|
|
+ </ol>
|
|
|
+
|
|
|
+ <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="/groups/add/?{{query "tpl_layout" "base" "tpl_content" "groups_add_update"}}" class="btn btn-success">
|
|
|
+ <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
|
|
|
+ Crea
|
|
|
+ </a>
|
|
|
+
|
|
|
+ <a href="/groups/{{.Data.ID}}/update?{{query "tpl_layout" "base" "tpl_content" "groups_add_update" "update" "true"}}" class="btn btn-primary">
|
|
|
+ <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
|
|
|
+ Modifica
|
|
|
+ </a>
|
|
|
+ <button href="/groups/{{.Data.ID}}/delete"
|
|
|
+ data-url="/groups/{{.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 }}
|