Step back in refactoring, case sensitive ignored in autocomplite, adding lesson type...
[SkiSchool.git] / SkiSchool-war / web / WEB-INF / skiSchoolTemplate.xhtml
blob79202cb6f3894e094950d463840486561d0ab709
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:p="http://primefaces.prime.com.tr/ui"
7 xmlns:f="http://java.sun.com/jsf/core">
8 <f:view contentType="text/html">
9 <h:head>
10 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
11 <link href="./resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
12 <link href="./resources/css/redmond/skin.css" rel="stylesheet" type="text/css" />
13 <title>#{pageTitle}</title>
14 </h:head>
16 <h:body>
18 <div id="top">
19 <ui:insert name="top">
20 <a href="./index.xhtml">
21 <img src="./resources/images/logo.jpg" alt="SkiSchool IS"/>
22 </a>
23 <p:ajaxStatus styleClass="ajaxStatus">
24 <f:facet name="start">
25 <h:graphicImage alt="Loading..." value="./resources/css/redmond/images/ui-anim_basic_16x16.gif"/>
26 </f:facet>
27 <f:facet name="complete">
28 <h:outputText value=""/>
29 </f:facet>
30 </p:ajaxStatus>
31 </ui:insert>
32 </div>
33 <div>
34 <div id="left">
35 <ui:insert name="left">
36 <h:form id="menu">
37 <h:panelGrid columns="1">
38 <h:link value="#{msgs.menu_timetable}" outcome="timetable" rendered="#{securityBean.inRoleAdministrator}"/>
39 <h:commandLink action="#{availabilityBean.newAvailability}" value="#{msgs.global_availability}" rendered="#{securityBean.inRoleInstructor}">
40 <f:setPropertyActionListener value="#{securityBean.currentInstructor}"
41 target="#{availabilityBean.instructor}" />
42 </h:commandLink>
43 <h:commandLink action="instructorlessons" value="#{msgs.global_lessons}" rendered="#{securityBean.inRoleInstructor}">
44 <f:setPropertyActionListener value="#{securityBean.currentInstructor}"
45 target="#{selectBean.instructor}" />
46 </h:commandLink>
47 <h:link value="#{msgs.menu_kindergarten}" outcome="kindergarten" rendered="#{securityBean.inRoleAdministrator}"/>
48 <h:link value="#{msgs.menu_lessons}" outcome="lessons" rendered="#{securityBean.inRoleAdministrator}"/>
49 <h:link value="#{msgs.menu_users}" outcome="users" rendered="#{securityBean.inRoleAdministrator}"/>
50 <h:commandLink value="#{msgs.menu_createinstructor}" action="#{instructorsBean.newInstructor}" rendered="#{securityBean.inRoleAdministrator}"/>
51 <h:commandLink value="#{msgs.menu_createstudent}" action="#{studentsBean.newStudent}" rendered="#{securityBean.inRoleAdministrator}"/>
52 <h:link value="#{msgs.menu_lessonscount}" outcome="payments" rendered="#{securityBean.inRoleAdministrator}"/>
53 <h:commandLink value="Môj profil" action="#{instructorsBean.editInstructor(securityBean.currentInstructor)}" rendered="#{securityBean.inRoleInstructor}"/>
54 <h:commandLink value="#{msgs.menu_logout}" action="#{securityBean.logout}"/>
55 </h:panelGrid>
56 </h:form>
57 </ui:insert>
58 </div>
59 <div id="content">
60 <ui:insert name="content">Content</ui:insert>
61 </div>
62 </div>
63 <div id="bottom">
64 <ui:insert name="bottom">
65 &copy; JA-KA SKI 2011 v0.9 <h:outputText value="(#{securityBean.currentUsername})"/>
66 </ui:insert>
67 </div>
69 </h:body>
70 </f:view>
71 </html>