createwizard.xhtml 3.6 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="#{tournamentCreateView.initView()}" />
		</f:metadata>

		<ui:define name="content">
			<h1>#{i18n['actionlog.tournaments.admin.create_tournament']}</h1>
			<h:form>			
				<p:wizard widgetVar="wiz" flowListener="#{tournamentCreateView.onFlowProcess}">

					<p:tab id="selectGame" title="#{i18n['actionlog.tournaments.admin.select_a_game']}">

						<p:panel>

							<h:messages errorClass="error" />
							
							<h2>#{i18n['actionlog.tournaments.admin.select_a_game']}</h2>
							<p:selectOneMenu>
								<f:selectItem itemLabel="" />
								<f:selectItem itemLabel="spurdo spärde" />
								<f:selectItem itemLabel="cockmaster" />
							</p:selectOneMenu>

							<h2>#{i18n['actionlog.tournaments.admin.create_a_game']}</h2>

							<h:panelGrid columns="2">
								<h:outputText value="#{i18n['actionlog.tournaments.admin.game_name']}" />
								<h:outputText value="#{i18n['actionlog.tournaments.admin.game_description']}" />

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

								<h:outputText value="#{i18n['actionlog.tournaments.admin.upload_game_image']}" />
								<h:outputText value="" />

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

					<p:tab id="selectRuleset" title="#{i18n['actionlog.tournaments.admin.rules']}">
						<p:panel>
							<h:messages errorClass="error" />
							<h2>#{i18n['actionlog.tournaments.admin.select_a_ruleset']}</h2>
							<p:selectOneMenu>
								<f:selectItem itemLabel="" />
								<f:selectItem itemLabel="Pro-rules" />
								<f:selectItem itemLabel="N00b-rules" />
							</p:selectOneMenu>
							<br />

							<h2>#{i18n['actionlog.tournaments.admin.create_new_ruleset']}</h2>
							<h:outputText value="#{i18n['actionlog.tournaments.ruleset_name']}" />
							<br />
							<p:inputText />

							<br />
							<h:outputText value="#{i18n['actionlog.tournaments.ruleset_description']}" />
							<br />
							<p:inputTextarea />
						</p:panel>
					</p:tab>

					<p:tab id="selectRegTimes" title="#{i18n['actionlog.tournaments.admin.set_time_constraints']}">
						<p:panel>
							<h:messages errorClass="error" />
							<h2>#{i18n['actionlog.tournaments.admin.registration_time_constraints']}</h2>
							<h:panelGrid columns="2">
								<h:outputText value="#{i18n['actionlog.tournaments.registration_opens']}" />
								<h:outputText value="#{i18n['actionlog.tournaments.registration_closes']}" />

								<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>#{i18n['actionlog.tournaments.admin.begin_time_constraints']}</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="#{i18n['actionlog.tournaments.admin.create_tournament']}" />
						</div>
					</p:tab>					
				</p:wizard>
			</h:form>

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