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.bandEdit}" /></h2>
15:
16: <h:form>
17: <h:inputHidden id="id" value="#{bandBack.band.bandID}" />
18: <h:panelGrid columns="2">
19:
20: <h:outputText value="#{msg.name}" />
21: <h:panelGroup>
22: <h:inputText id="name" value="#{bandBack.band.name}" required="true" requiredMessage="#{error.fillName}" />
23: </h:panelGroup>
24: <h:outputText value="#{msg.website}" />
25: <h:inputText value="#{bandBack.band.website}" />
26:
27: <h:outputText value="#{msg.country}" />
28: <h:inputText value="#{bandBack.band.country}" />
29:
30: <h:panelGroup>
31: <h:outputText value="#{msg.dateFoundation}" />
32: <p class="hint"><h:outputText value="#{msg.dateExample}"/></p>
33: </h:panelGroup>
34: <h:inputText id="dateFoundation" value="#{bandBack.band.dateFoundation}">
35: <f:convertDateTime pattern="dd.MM.yyyy" />
36: </h:inputText>
37:
38: <h:outputText value="#{msg.preferredGenre}" />
39: <h:selectOneMenu id="preferredGenre" value="#{bandBack.band.preferredGenre}" converter="genreConverter">
40: <f:selectItems value="#{genreBack.genreListSelectItemModel}" />
41: </h:selectOneMenu>
42:
43: <h:outputText value="#{msg.musicians}" />
44: <h:selectManyMenu id="musicians" value="#{bandBack.band.musicians}" converter="musicianConverter" styleClass="dropdown">
45: <f:selectItems value="#{musicianBack.musicianListSelectItemModel}" />
46: </h:selectManyMenu>
47:
48: <h:panelGroup />
49: <h:panelGroup>
50: <h:commandButton value="#{title.bandEdit}" action="#{bandBack.saveChanges}" />
51: <h:commandButton value="#{msg.cancel}" action="list" immediate="true" />
52: </h:panelGroup>
53: </h:panelGrid>
54: <h:messages styleClass="error" />
55: </h:form>
56:
57: <jsp:include page="/common/footer.jsp" />
58: </f:view>