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_lessons}"/>
12 <ui:define name=
"content">
15 <p:dataTable value=
"#{lessonsBean.allLessons}" var=
"lesson" rendered=
"#{securityBean.inRoleAdministrator}">
16 <p:column filterBy=
"#{lesson.lessonType}"
17 filterOptions=
"#{lessonsBean.lessonTypeOptions}"
18 filterMatchMode=
"exact">
19 <f:facet name=
"header">
20 <h:outputText value=
"#{msgs.lesson_lessontype}"/>
22 <h:outputText value=
"#{lesson.lessonType}"/>
25 <f:facet name=
"header">
26 <h:outputText value=
"#{msgs.global_date}"/>
28 <h:outputText value=
"#{lesson.startTime}">
29 <f:convertDateTime pattern=
"dd.MM.yy"
34 <f:facet name=
"header">
35 <h:outputText value=
"#{msgs.global_time}"/>
37 <h:outputText value=
"#{lesson.startTime}">
38 <f:convertDateTime pattern=
"HH:mm"
41 <h:outputText value=
" - "/>
42 <h:outputText value=
"#{lesson.endTime}">
43 <f:convertDateTime pattern=
"HH:mm"
48 <f:facet name=
"header">
49 <h:outputText value=
"#{msgs.global_instructors}"/>
51 <h:outputText value=
"#{lesson.instructors[0].firstName} #{lesson.instructors[0].lastName}"/>
54 <f:facet name=
"header">
55 <h:outputText value=
"#{msgs.global_students}"/>
57 <h:outputText value=
"#{lesson.students[0].firstName} #{lesson.students[0].lastName}"/>
60 <f:facet name=
"header">
61 <h:outputText value=
"#{msgs.global_note}"/>
63 <h:outputText value=
"#{lesson.note}"/>
66 <f:facet name=
"header">
67 <h:outputText value=
"#{msgs.global_snb}"/>
69 <h:selectBooleanCheckbox value=
"#{lesson.snowboard}" disabled=
"true"/>
72 <f:facet name=
"header">
73 <h:outputText value=
"#{msgs.lesson_lessonpaid}"/>
75 <h:selectBooleanCheckbox value=
"#{lesson.paid}" disabled=
"true"/>
77 <p:column filterBy=
"#{lesson.executed}"
78 filterOptions=
"#{lessonsBean.executedLessonOptions}"
79 filterMatchMode=
"exact">
80 <f:facet name=
"header">
81 <h:outputText value=
"#{msgs.lesson_lessonexecuted}"/>
83 <h:selectBooleanCheckbox value=
"#{lesson.executed}" disabled=
"true"/>