<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:f="http://xmlns.jcp.org/jsf/core"
- >
+ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+ xmlns:h="http://xmlns.jcp.org/jsf/html"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ >
<div class="message_box">
<div class="message_header">
</div>
<ui:fragment rendered="#{not empty message}">
- <div class="okay para">
- <h:outputText value="#{message}" />
- </div>
+ <ui:fragment rendered="#{not empty styleClass}">
+ <div class="para">
+ <h:outputText styleClass="#{styleClass}" value="#{message}" />
+ </div>
+ </ui:fragment>
+
+ <ui:fragment rendered="#{empty styleClass}">
+ <div class="para">
+ <h:outputText styleClass="okay" value="#{message}" />
+ </div>
+ </ui:fragment>
</ui:fragment>
<ui:fragment rendered="#{empty message}">
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+ xmlns:h="http://xmlns.jcp.org/jsf/html"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ >
+
+ <div class="message_box_mini">
+ <div class="message_header">
+ <h:outputText value="#{msg.MESSAGE_BOX_TITLE}" />
+ </div>
+
+ <ui:fragment rendered="#{not empty message}">
+ <ui:fragment rendered="#{not empty styleClass}">
+ <div class="para">
+ <h:outputText styleClass="#{styleClass}" value="#{message}" />
+ </div>
+ </ui:fragment>
+
+ <ui:fragment rendered="#{empty styleClass}">
+ <div class="para">
+ <h:outputText styleClass="okay" value="#{message}" />
+ </div>
+ </ui:fragment>
+ </ui:fragment>
+
+ <ui:fragment rendered="#{empty message}">
+ <div class="errors para">
+ <h:outputText value="#{msg.MESSAGE_BOX_PARAMETER_MESSAGE_EMPTY}" />
+ </div>
+ </ui:fragment>
+ </div>
+</ui:composition>
>
<div class="table_row">
- <div class="table_left">
+ <div class="table_left_medium">
<h:outputLabel for="emailAddress" value="#{msg.GUEST_REGISTRATION_ENTER_EMAIL}" />
</div>
- <div class="table_right">
- <h:inputText styleClass="input" id="emailAddress" size="20" maxlength="255" value="#{contactController.emailAddress}" required="true" requiredMessage="#{msg.EMAIL_ADDRESS_NOT_ENTERED}">
+ <div class="table_right_medium">
+ <h:inputText styleClass="input" id="emailAddress" size="30" maxlength="255" value="#{contactController.emailAddress}" required="true" requiredMessage="#{msg.EMAIL_ADDRESS_NOT_ENTERED}">
<f:validator validatorId="EmailAddressValidator" />
</h:inputText>
</div>
<div class="clear"></div>
+
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="emailAddress" errorClass="errors" warnClass="warnings" fatalClass="errors" />
+ </h:panelGroup>
</div>
<div class="table_row">
- <div class="table_left">
+ <div class="table_left_medium">
<h:outputLabel for="emailAddressRepeat" value="#{msg.GUEST_REGISTRATION_ENTER_EMAIL_REPEAT}" />
</div>
- <div class="table_right">
- <h:inputText styleClass="input" id="emailAddressRepeat" size="20" maxlength="255" value="#{contactController.emailAddressRepeat}" required="true" requiredMessage="#{msg.EMAIL_ADDRESS_REPEAT_NOT_ENTERED}" />
+ <div class="table_right_medium">
+ <h:inputText styleClass="input" id="emailAddressRepeat" size="30" maxlength="255" value="#{contactController.emailAddressRepeat}" required="true" requiredMessage="#{msg.EMAIL_ADDRESS_REPEAT_NOT_ENTERED}" />
</div>
<div class="clear"></div>
- </div>
-
- <div class="error_container">
- <h:message for="emailAddress" errorClass="errors" warnClass="warnings" fatalClass="errors" />
- </div>
- <div class="error_container">
- <h:message for="emailAddressRepeat" errorClass="errors" warnClass="warnings" fatalClass="errors" />
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="emailAddressRepeat" errorClass="errors" warnClass="warnings" fatalClass="errors" />
+ </h:panelGroup>
</div>
</ui:composition>
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<div class="para">
- <fieldset id="terms_privacy">
+ <fieldset class="fieldset" id="terms_privacy">
<legend title="#{msg.PRIVACY_TERMS_LEGEND_TITLE}">
<h:outputText value="#{msg.PRIVACY_TERMS_LEGEND}" />
</legend>
<div class="table_row">
- <div class="table_left25">
- <h:selectBooleanCheckbox styleClass="input" id="privacy" required="true" requiredMessage="#{msg.PRIVACY_POLICY_NOT_ACCEPTED_MESSAGE}">
+ <div class="table_left25_medium">
+ <h:selectBooleanCheckbox styleClass="checkbox" id="privacy" required="true" requiredMessage="#{msg.PRIVACY_POLICY_NOT_ACCEPTED_MESSAGE}">
<f:validator for="privacy" validatorId="PrivacyTermsCheckboxValidator" />
</h:selectBooleanCheckbox>
</div>
- <div class="table_right75">
+ <div class="table_left75_medium">
+ <!-- @TODO Find something better //-->
<h:outputText value="#{msg.GUEST_AGREE_READ_PRIVACY_STATEMENT_1}" />
<h:outputText value=" " />
<h:link outcome="privacy" target="_blank" value="#{msg.LINK_GUEST_PRIVACY_STATEMENTS}" />
</div>
<div class="clear"></div>
- </div>
- <div class="error_container">
- <h:message for="privacy" errorClass="errors" warnClass="warnings" fatalClass="errors" />
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="privacy" errorClass="errors" warnClass="warnings" fatalClass="errors" />
+ </h:panelGroup>
</div>
<div class="table_row">
- <div class="table_left25">
- <h:selectBooleanCheckbox styleClass="input" id="terms" required="true" requiredMessage="#{msg.TERMS_NOT_ACCEPTED_MESSAGE}">
+ <div class="table_left25_medium">
+ <h:selectBooleanCheckbox styleClass="checkbox" id="terms" required="true" requiredMessage="#{msg.TERMS_NOT_ACCEPTED_MESSAGE}">
<f:validator for="terms" validatorId="PrivacyTermsCheckboxValidator" />
</h:selectBooleanCheckbox>
</div>
- <div class="table_right75">
+ <div class="table_left75_medium">
+ <!-- @TODO Find something better //-->
<h:outputText value="#{msg.GUEST_AGREE_READ_TERMS_CONDITIONS_1}" />
<h:outputText value=" " />
<h:link outcome="terms" target="_blank" value="#{msg.LINK_GUEST_TERMS_CONDITIONS}" />
</div>
<div class="clear"></div>
- </div>
- <div class="error_container">
- <h:message for="terms" errorClass="errors" warnClass="warnings" fatalClass="errors" />
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="terms" errorClass="errors" warnClass="warnings" fatalClass="errors" />
+ </h:panelGroup>
</div>
</fieldset>
</div>
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
-
<div id="user_login_content">
- <h:form id="form_user_login">
- <div class="table">
+ <h:form id="form_user_login" rendered="#{featureController.isFeatureEnabled('user_name_required')}">
+ <h:panelGroup styleClass="table" layout="block">
<div class="table_header">
- #{msg.GUEST_ENTER_USER_LOGIN_DATA_TITLE}
+ <h:outputText value="#{msg.GUEST_ENTER_USER_LOGIN_DATA_TITLE}" />
</div>
- <fieldset id="login_data">
+ <fieldset class="fieldset" id="login_data">
<legend title="#{msg.GUEST_ENTER_USER_LOGIN_DATA_LEGEND_TITLE}">
<h:outputText value="#{msg.GUEST_ENTER_USER_LOGIN_DATA_LEGEND}" />
</legend>
<div class="table_right">
<h:inputText styleClass="input" id="userName" value="#{userController.userName}" size="10" maxlength="20" required="true" requiredMessage="#{msg.LOGIN_NO_USER_NAME_MESSAGE}" />
</div>
- </div>
- <div class="clear"></div>
+ <div class="clear"></div>
- <div class="error_container">
- <h:message for="userName" errorClass="errors" fatalClass="errors" warnClass="errors" />
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="userName" errorClass="errors" fatalClass="errors" warnClass="errors" />
+ </h:panelGroup>
</div>
<div class="table_row">
<div class="table_right">
<h:inputSecret styleClass="input" id="userPassword" value="#{userController.userPassword}" size="10" maxlength="255" required="true" requiredMessage="#{msg.LOGIN_NO_PASSWORD_MESSAGE}" />
</div>
- </div>
- <div class="clear"></div>
+ <div class="clear"></div>
- <div class="error_container">
- <h:message for="userPassword" errorClass="errors" fatalClass="errors" warnClass="errors" />
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="userPassword" errorClass="errors" fatalClass="errors" warnClass="errors" />
+ </h:panelGroup>
</div>
</fieldset>
<div class="table_footer">
- <h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
+ <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
<h:commandButton styleClass="submit" type="submit" action="#{userLoginController.doUserLogin()}" value="#{msg.BUTTON_USER_LOGIN}" />
</div>
- </div>
+ </h:panelGroup>
</h:form>
+
+ <h:panelGroup styleClass="error_container" layout="block" rendered="#{not featureController.isFeatureEnabled('user_name_required')}">
+ <h:outputText styleClass="errors" value="#{msg.ERROR_GUEST_USER_NAME_REQUIRED_DISABLED}" />
+ </h:panelGroup>
</div>
</ui:composition>
<h:form id="register_page2_form">
<div class="table">
<div class="table_header">
- #{msg.GUEST_REGISTRATION_PAGE2_TITLE}
+ <h:outputText value="#{msg.GUEST_REGISTRATION_PAGE2_TITLE}" />
</div>
<ui:include src="/WEB-INF/templates/contact/form_contact_data.tpl" />
</div>
<div class="para notice">
- <ul>
- <li>#{msg.GUEST_REGISTRATION_USER_NAME_NOTICE}</li>
- <li>#{msg.GUEST_REGISTRATION_USER_NUMBER_NOTICE}</li>
- </ul>
+ <h:outputText value="#{msg.GUEST_REGISTRATION_USER_NAME_NOTICE}" />
</div>
</fieldset>
</div>
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
-
- <h:form id="form_register_page1">
- <div class="table">
+ <h:form id="form_register_page1" rendered="#{featureController.isFeatureEnabled('user_registration')}">
+ <h:panelGroup styleClass="table_medium" layout="block">
<div class="table_header">
<h:outputText value="#{msg.GUEST_REGISTRATION_PAGE1_TITLE}" />
</div>
<div class="para">
- <fieldset id="login_data">
+ <fieldset class="fieldset" id="login_data">
<legend title="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND_TITLE}">
<h:outputText value="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND}" />
</legend>
<ui:fragment rendered="#{featureController.isFeatureEnabled('user_name_required')}">
<div class="table_row">
- <div class="table_left">
+ <div class="table_left_medium">
<h:outputLabel for="userName" value="#{msg.GUEST_REGISTRATION_ENTER_USER_NAME}" />
</div>
- <div class="table_right">
+ <div class="table_right_medium">
<h:inputText styleClass="input" id="userName" size="20" maxlength="255" value="#{userController.userName}" required="true" />
</div>
<div class="para"></div>
<div class="table_row">
- <div class="table_left">
+ <div class="table_left_medium">
<h:outputLabel for="userPassword" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD}" />
</div>
- <div class="table_right">
- <h:inputSecret styleClass="input" id="userPassword" size="10" maxlength="255" value="#{userController.userPassword}" required="true" />
+ <div class="table_right_medium">
+ <h:inputSecret styleClass="input" id="userPassword" size="10" maxlength="255" value="#{userController.userPassword}" />
</div>
<div class="clear"></div>
</div>
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="userPassword" errorClass="errors" fatalClass="errors" warnClass="errors" />
+ </h:panelGroup>
+
<div class="table_row">
- <div class="table_left">
+ <div class="table_left_medium">
<h:outputLabel for="userPasswordRepeat" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD_REPEAT}" />
</div>
- <div class="table_right">
- <h:inputSecret styleClass="input" id="userPasswordRepeat" size="10" maxlength="255" value="#{userController.userPasswordRepeat}" required="true" />
+ <div class="table_right_medium">
+ <h:inputSecret styleClass="input" id="userPasswordRepeat" size="10" maxlength="255" value="#{userController.userPasswordRepeat}" />
</div>
<div class="clear"></div>
</div>
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="userPasswordRepeat" errorClass="errors" fatalClass="errors" warnClass="errors" />
+ </h:panelGroup>
+
<div class="para notice">
<h:outputText value="#{msg.GUEST_REGISTRATION_USER_NAME_NOTICE}" />
</div>
<ui:include src="/WEB-INF/templates/guest/guest_privacy_terms.tpl" />
<div class="table_footer">
- <h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
+ <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
<h:commandButton styleClass="submit" type="submit" id="continueRegisterPage1" value="#{msg.BUTTON_CONTINUE_REGISTER_PAGE2}" action="#{registerController.doRegisterMultiPage1()}" />
</div>
- </div>
+ </h:panelGroup>
</h:form>
</ui:composition>
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:form id="form_register_page2">
- <div class="table">
+ <h:form id="form_register_page2" rendered="#{featureController.isFeatureEnabled('user_registration')}">
+ <h:panelGroup styleClass="table_medium" layout="block">
<div class="table_header">
<h:outputText value="#{msg.GUEST_REGISTRATION_PAGE2_TITLE}" />
</div>
<ui:include src="/WEB-INF/templates/contact/form_contact_data.tpl" />
<div class="table_footer">
- <h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
- <h:commandButton styleClass="submit" type="submit" id="finish_registration" value="#{msg.BUTTON_FINISH_REGISTRATION}" action="#{registerController.doFinishRegistration()}" />
+ <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
+ <h:commandButton styleClass="submit" type="submit" value="#{msg.BUTTON_FINISH_REGISTRATION}" action="#{registerController.doFinishRegistration()}" />
</div>
- </div>
+ </h:panelGroup>
</h:form>
</ui:composition>
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <h:form id="form_register_single">
- <div class="table">
+ <h:form id="form_register_single" rendered="#{featureController.isFeatureEnabled('user_registration')}">
+ <h:panelGroup styleClass="table_medium" layout="block">
<div class="table_header">
<h:outputText value="#{msg.GUEST_REGISTRATION_TITLE}" />
</div>
<ui:include src="/WEB-INF/templates/contact/form_contact_data.tpl" />
<div class="para">
- <fieldset id="login_data">
+ <fieldset class="fieldset" id="login_data">
<legend title="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND_TITLE}">
<h:outputText value="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND}" />
</legend>
</div>
<div class="clear"></div>
+
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="userName" errorClass="errors" fatalClass="errors" warnClass="errors" />
+ </h:panelGroup>
</div>
</ui:fragment>
<div class="clear"></div>
</div>
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="userPassword" errorClass="errors" fatalClass="errors" warnClass="errors" />
+ </h:panelGroup>
+
<div class="table_row">
<div class="table_left">
<h:outputLabel for="userPasswordRepeat" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD_REPEAT}" />
<div class="clear"></div>
</div>
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="userPasswordRepeat" errorClass="errors" fatalClass="errors" warnClass="errors" />
+ </h:panelGroup>
+
<div class="para notice">
<h:outputText value="#{msg.GUEST_REGISTRATION_USER_NAME_NOTICE}" />
</div>
<ui:include src="/WEB-INF/templates/guest/guest_privacy_terms.tpl" />
<div class="table_footer">
- <h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
+ <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
<h:commandButton styleClass="submit" type="submit" id="finish_registration_single" value="#{msg.BUTTON_FINISH_REGISTRATION}" action="#{registerController.doFinishRegistration()}" />
</div>
- </div>
+ </h:panelGroup>
</h:form>
</ui:composition>