createwizard.xhtml 2.95 KB
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:users="http://java.sun.com/jsf/composite/cditools/user" xmlns:tools="http://java.sun.com/jsf/composite/cditools" xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core">
<h:body>
	<ui:composition template="#{sessionHandler.template}">
		<f:metadata>
			<!--  <f:event type="preRenderView" listener="#{userOverviewView.initView()}" />  -->
		</f:metadata>

		<ui:define name="content">
			<h1>Create tournament</h1>
			<h:form>			
				<p:wizard widgetVar="wiz" flowListener="#{tournamentCreateView.onFlowProcess}">

					<p:tab id="selectGame" title="Select a game">

						<p:panel header="Select a game">

							<h:messages errorClass="error" />
							
							Select a game
							<p:selectOneMenu>
								<f:selectItem itemLabel="" />
								<f:selectItem itemLabel="spurdo spärde" />
								<f:selectItem itemLabel="cockmaster" />
							</p:selectOneMenu>

							<h2>Create new game</h2>

							<h:panelGrid columns="2">
								<h:outputText value="Name" />
								<h:outputText value="Description" />

								<p:inputText />
								<p:inputText />

								<h:outputText value="Upload image" />
								<h:outputText value="" />

								<p:fileUpload mode="simple" />
							</h:panelGrid>
						</p:panel>
					</p:tab>

					<p:tab id="selectRuleset" title="Select a ruleset">
						<p:panel header="Select a ruleset">
							<h:messages errorClass="error" />
							Select a ruleset 
							<p:selectOneMenu>
								<f:selectItem itemLabel="" />
								<f:selectItem itemLabel="Pro-rules" />
								<f:selectItem itemLabel="N00b-rules" />
							</p:selectOneMenu>
							<br />

							<h2>Create new ruleset</h2>
							<h:outputText value="Rule Name" />
							<br />
							<p:inputText />

							<br />
							<h:outputText value="Description" />
							<br />
							<p:inputTextarea />
						</p:panel>
					</p:tab>

					<p:tab id="selectRegTimes" title="Set registration times">
						<p:panel header="Select registration times">
							<h:messages errorClass="error" />
							<h2>Registration</h2>
							<h:panelGrid columns="2">
								<h:outputText value="Opens" />
								<h:outputText value="Closees" />

								<p:calendar stepHour="1" stepMinute="10" pattern="dd.MM.yyyy hh:mm" />
								<p:calendar stepHour="1" stepMinute="10" pattern="dd.MM.yyyy hh:mm" />
							</h:panelGrid>
							<h2>Event Start time</h2>
							<h:panelGrid>
								<h:outputText value="Start time" />
								<p:calendar stepHour="1" stepMinute="10" pattern="dd.MM.yyyy hh:mm" />
							</h:panelGrid>
						</p:panel>
						<div style="float: right;">
							<p:commandButton icon="apply" value="Create event" />
						</div>

					</p:tab>					
				</p:wizard>
			</h:form>

		</ui:define>
	</ui:composition>
</h:body>
</html>