participate_single.xhtml 1.36 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="#{tournamentParticipateView.initView()}" />
		</f:metadata>

		<ui:define name="content">
			<h1>#{i18n['tournaments.participate_title']} #{tournamentParticipateView.tournament.tournamentName}</h1>
			<p>#{i18n['tournaments.participate_description']}</p>
			<h2>#{i18n['tournaments.participate_rules']}</h2>
			<p><h:outputText value="#{tournamentParticipateView.tournament.rules.rules}" escape="false" /></p>
			
			<h:form>
				<p:commandButton value="#{i18n['tournaments.cancel_participation']}" action="#{tournamentParticipateView.cancelParticipation}" onerror="location.reload(true);"/>
				<p:commandButton value="#{i18n['tournaments.accept_rules_and_participate']}" action="#{tournamentParticipateView.saveParticipation}" onerror="location.reload(true);"/>
			</h:form>
		</ui:define>
	</ui:composition>
</h:body>
</html>