1 <?xml version='
1.0' encoding='UTF-
8'
?>
2 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml"
4 xmlns:
ui=
"http://java.sun.com/jsf/facelets"
5 xmlns:
h=
"http://java.sun.com/jsf/html"
6 xmlns:
f=
"http://java.sun.com/jsf/core"
7 xmlns:
p=
"http://primefaces.prime.com.tr/ui">
10 <ui:composition template=
"./WEB-INF/skiSchoolTemplate.xhtml">
11 <ui:param name=
"pageTitle" value=
"#{msgs.site_instructorlessons}"/>
12 <ui:define name=
"content">
15 <h:panelGrid columns=
"2">
16 <h:outputText value=
"#{msgs.global_from}"/>
17 <p:calendar value=
"#{selectBean.startDate}"
22 <h:outputText value=
"#{msgs.global_to}"/>
23 <p:calendar value=
"#{selectBean.endDate}"
29 <p:commandButton value=
"#{msgs.global_filter}" actionListener=
"#{selectBean.checkDates}" update=
"dates, lessons"/>
34 <p:dataTable value=
"#{selectBean.lessonsByInstructorAndInterval}" var=
"lesson">
35 <p:column filterBy=
"#{lesson.lessonType}"
36 filterOptions=
"#{lessonsBean.lessonTypeOptions}"
37 filterMatchMode=
"exact">
38 <f:facet name=
"header">
39 <h:outputText value=
"#{msgs.lesson_lessontype}"/>
41 <h:outputText value=
"#{lesson.lessonType}"/>
44 <f:facet name=
"header">
45 <h:outputText value=
"#{msgs.global_date}"/>
47 <h:outputText value=
"#{lesson.startTime}">
48 <f:convertDateTime pattern=
"dd.MM.yy"
53 <f:facet name=
"header">
54 <h:outputText value=
"#{msgs.global_time}"/>
56 <h:outputText value=
"#{lesson.startTime}">
57 <f:convertDateTime pattern=
"HH:mm"
60 <h:outputText value=
" - "/>
61 <h:outputText value=
"#{lesson.endTime}">
62 <f:convertDateTime pattern=
"HH:mm"
67 <f:facet name=
"header">
68 <h:outputText value=
"#{msgs.global_instructors}"/>
70 <h:outputText value=
"#{lesson.instructors[0].firstName} #{lesson.instructors[0].lastName}"/>
73 <f:facet name=
"header">
74 <h:outputText value=
"#{msgs.global_students}"/>
76 <h:outputText value=
"#{lesson.students[0].firstName} #{lesson.students[0].lastName}"/>
79 <f:facet name=
"header">
80 <h:outputText value=
"#{msgs.global_note}"/>
82 <h:outputText value=
"#{lesson.note}"/>
85 <f:facet name=
"header">
86 <h:outputText value=
"#{msgs.global_snb}"/>
88 <h:selectBooleanCheckbox value=
"#{lesson.snowboard}" disabled=
"true"/>
91 <f:facet name=
"header">
92 <h:outputText value=
"#{msgs.lesson_lessonpaid}"/>
94 <h:selectBooleanCheckbox value=
"#{lesson.paid}" disabled=
"true"/>
96 <p:column filterBy=
"#{lesson.executed}"
97 filterOptions=
"#{lessonsBean.executedLessonOptions}"
98 filterMatchMode=
"exact">
99 <f:facet name=
"header">
100 <h:outputText value=
"#{msgs.lesson_lessonexecuted}"/>
102 <h:selectBooleanCheckbox value=
"#{lesson.executed}" disabled=
"true"/>