Forráskód Böngészése

Improve students_show template

Andrea Fazzi 4 éve
szülő
commit
88136ae575
1 módosított fájl, 16 hozzáadás és 1 törlés
  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 }}