Browse Source

Add select student in activity add/update view

Andrea Fazzi 5 năm trước cách đây
mục cha
commit
b37b6a1b4c
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      templates/activities_add_update.html.tpl

+ 3 - 0
templates/activities_add_update.html.tpl

@@ -34,6 +34,9 @@
     {{$options := ` { name: "supply_teacher_id", id: "supply_teacher_id", label: "Docente supplente", title: "Seleziona il docente"}`}}
     {{template "select" dict "options" ($options|yaml) "data" (.Data|field "AllTeachers") "selected" (.Data|field "SelectedSupplyTeacher") "update" $update "form" $form}}
 
+    {{$options := ` { name: "student_id", id: "student_id", label: "Studente", title: "Seleziona lo studente"}`}}
+    {{template "select" dict "options" ($options|yaml) "data" (.Data|field "AllStudents") "selected" (.Data|field "SelectedStudent") "update" $update "form" $form}}
+
     {{$options := ` { name: "Hours",id: "hours",label: "Numero di ore",type: "number",required: "true"} `}}
     {{template "input" dict "options" ($options|yaml) "value" (.Data|field "Hours") "update" $update}}