Explorar el Código

Improve students_show template

Andrea Fazzi hace 4 años
padre
commit
88136ae575
Se han modificado 1 ficheros con 16 adiciones y 1 borrados
  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 }}