浏览代码

Improve students_show template

Andrea Fazzi 4 年之前
父节点
当前提交
88136ae575
共有 1 个文件被更改,包括 16 次插入1 次删除
  1. 16 1
      templates/students_show.html.tpl

+ 16 - 1
templates/students_show.html.tpl

@@ -26,7 +26,22 @@
     
     </div>
   </div>
-  
+
+  <div class="row">
+    <div class="col-md-12">
+
+      {{$options := `
+      title: "Operatori associati allo studente"
+      model: "Operator"
+      icon: "fa fa-user"
+      `}}
+      
+      {{$noElements := "Nessun operatore associato allo studente."}}
+      {{template "relation_list" dict "options" ($options|yaml) "data" .Data.Operators "noElements" $noElements}}
+      
+    </div>
+  </div>
+
 </div>    
 
 {{ end }}