ソースを参照

Show students in class view

Andrea Fazzi 4 年 前
コミット
2672b93e2a
1 ファイル変更16 行追加1 行削除
  1. 16 1
      templates/classes_show.html.tpl

+ 16 - 1
templates/classes_show.html.tpl

@@ -35,7 +35,22 @@
     
     </div>
   </div>
-  
+
+  <div class="row">
+    <div class="col-md-12">
+      
+      {{$options := `
+      title: "Studenti associati alla classe"
+      model: "Student"
+      icon: "fa fa-user"
+      `}}
+      
+      {{$noElements := "Nessuno studente associato alla classe.."}}
+      {{template "relation_list" dict "options" ($options|yaml) "data" .Data.Students "noElements" $noElements}}
+    
+    </div>
+  </div>
+
 </div>    
 
 {{ end }}