1: <%--
2: Document : index
3: Created on : Jan 2, 2010, 5:37:03 PM
4: Author : Ondrej Macoszek <macosond@fel.cvut.cz>
5: --%>
6: <%@page contentType="text/html" pageEncoding="UTF-8"%>
7:
8: <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
9: <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
10:
11: <f:view locale="#{localeBack.currentLocale}">
12: <jsp:include page="header.jsp" />
13:
14: <h2><h:outputText value="#{title.eventAdd}" /></h2>
15:
16: <h:form>
17: <h:panelGrid columns="2">
18: <h:outputText value="#{msg.title}" />
19: <h:panelGroup>
20: <h:inputText id="name" value="#{eventBack.event.name}" required="true" requiredMessage="#{error.fillName}" />
21: </h:panelGroup>
22:
23: <h:panelGroup>
24: <h:outputText value="#{msg.dateStart}" />
25: <p class="hint"><h:outputText value="#{msg.dateTimeExample}"/></p>
26: </h:panelGroup>
27: <h:inputText id="dateStart" value="#{eventBack.event.dateStart}" required="true" requiredMessage="#{error.fillDateStart}">
28: <f:convertDateTime pattern="dd.MM.yyyy HH:mm" />
29: </h:inputText>
30:
31: <h:panelGroup>
32: <h:outputText value="#{msg.dateEnd}" />
33: <p class="hint"><h:outputText value="#{msg.dateTimeExample}"/></p>
34: </h:panelGroup>
35: <h:inputText id="dateEnd" value="#{eventBack.event.dateEnd}" required="true" requiredMessage="#{error.fillDateEnd}">
36: <f:convertDateTime pattern="dd.MM.yyyy HH:mm" />
37: </h:inputText>
38:
39: <h:outputText value="#{msg.place}" />
40: <h:panelGroup>
41: <h:inputText id="place" value="#{eventBack.event.place}" />
42: </h:panelGroup>
43:
44: <h:outputText value="#{msg.band}" />
45: <h:selectOneMenu id="band" value="#{eventBack.event.band}" converter="bandConverter">
46: <f:selectItems value="#{bandBack.bandListSelectItemModel}" />
47: </h:selectOneMenu>
48:
49: <h:panelGroup />
50: <h:panelGroup>
51: <h:commandButton value="#{title.eventAdd}" action="#{eventBack.add}" />
52: <h:commandButton value="#{msg.cancel}" action="list" immediate="true" />
53: </h:panelGroup>
54: </h:panelGrid>
55: <h:messages styleClass="error" />
56: </h:form>
57:
58: <jsp:include page="/common/footer.jsp" />
59: </f:view>