From: Roland Häder Date: Thu, 24 Aug 2017 20:56:39 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=14b3f7df4f916f35c64bb384fc8242e4c4d83b1a;p=addressbook-war.git Please cherry-pick: - got rid of CSS class 'clear' in favour of pseudo class ::after which does the same thing with much lesser HTML code - very nice thing! Signed-off-by: Roland Häder --- diff --git a/web/WEB-INF/resources/tags/table_rows/user_personal_title_table_row.tpl b/web/WEB-INF/resources/tags/table_rows/user_personal_title_table_row.tpl index 4a462acb..3609e807 100644 --- a/web/WEB-INF/resources/tags/table_rows/user_personal_title_table_row.tpl +++ b/web/WEB-INF/resources/tags/table_rows/user_personal_title_table_row.tpl @@ -20,8 +20,6 @@ - -
diff --git a/web/WEB-INF/resources/tags/table_rows/user_profile_mode_table_row.tpl b/web/WEB-INF/resources/tags/table_rows/user_profile_mode_table_row.tpl index 132e28db..c94a6087 100644 --- a/web/WEB-INF/resources/tags/table_rows/user_profile_mode_table_row.tpl +++ b/web/WEB-INF/resources/tags/table_rows/user_profile_mode_table_row.tpl @@ -21,8 +21,6 @@ - -
diff --git a/web/WEB-INF/templates/admin/admin_footer.tpl b/web/WEB-INF/templates/admin/admin_footer.tpl index e8c6756d..b569c98d 100644 --- a/web/WEB-INF/templates/admin/admin_footer.tpl +++ b/web/WEB-INF/templates/admin/admin_footer.tpl @@ -9,6 +9,4 @@
  • - -
    diff --git a/web/WEB-INF/templates/admin/business_basic_data/admin_form_business_basic_data.tpl b/web/WEB-INF/templates/admin/business_basic_data/admin_form_business_basic_data.tpl index 178c70cb..b7948ff7 100644 --- a/web/WEB-INF/templates/admin/business_basic_data/admin_form_business_basic_data.tpl +++ b/web/WEB-INF/templates/admin/business_basic_data/admin_form_business_basic_data.tpl @@ -19,8 +19,6 @@
    - -
    @@ -38,8 +36,6 @@ - -
    @@ -54,8 +50,6 @@
    - -
    @@ -70,8 +64,6 @@
    - -
    @@ -86,8 +78,6 @@
    - -
    @@ -106,8 +96,6 @@ - -
    @@ -126,8 +114,6 @@ - -
    @@ -154,8 +140,6 @@ - -
    @@ -178,8 +162,6 @@ - -
    @@ -190,8 +172,6 @@
    - -
    diff --git a/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl b/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl index da4a550e..f9c13e4d 100644 --- a/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl +++ b/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl @@ -25,8 +25,6 @@
    - -
    @@ -41,8 +39,6 @@
    - -
    @@ -57,8 +53,6 @@
    - -
    @@ -73,8 +67,6 @@
    - -
    @@ -91,8 +83,6 @@ - -
    @@ -107,8 +97,6 @@
    - -
    @@ -125,8 +113,6 @@ - -
    @@ -141,8 +127,6 @@
    - -
    @@ -161,8 +145,6 @@ - -
    @@ -189,8 +171,6 @@ - -
    @@ -213,8 +193,6 @@ - -
    @@ -230,8 +208,6 @@ - -
    @@ -248,8 +224,6 @@ - -
    @@ -264,8 +238,6 @@
    - -
    diff --git a/web/WEB-INF/templates/admin/country/admin_form_country_data.tpl b/web/WEB-INF/templates/admin/country/admin_form_country_data.tpl index cbed24ae..da440128 100644 --- a/web/WEB-INF/templates/admin/country/admin_form_country_data.tpl +++ b/web/WEB-INF/templates/admin/country/admin_form_country_data.tpl @@ -25,8 +25,6 @@ - -
    @@ -45,8 +43,6 @@ - -
    @@ -63,8 +59,6 @@ - -
    @@ -82,8 +76,6 @@ - -
    @@ -100,8 +92,6 @@ - -
    @@ -120,8 +110,6 @@ - -
    diff --git a/web/WEB-INF/templates/admin/fax/admin_form_add_contact_fax.tpl b/web/WEB-INF/templates/admin/fax/admin_form_add_contact_fax.tpl index f40395f3..f7c8841e 100644 --- a/web/WEB-INF/templates/admin/fax/admin_form_add_contact_fax.tpl +++ b/web/WEB-INF/templates/admin/fax/admin_form_add_contact_fax.tpl @@ -30,8 +30,6 @@ - -
    @@ -48,8 +46,6 @@
    - -
    diff --git a/web/WEB-INF/templates/admin/fax/admin_form_fax_data.tpl b/web/WEB-INF/templates/admin/fax/admin_form_fax_data.tpl index ab6654f4..2355ffaf 100644 --- a/web/WEB-INF/templates/admin/fax/admin_form_fax_data.tpl +++ b/web/WEB-INF/templates/admin/fax/admin_form_fax_data.tpl @@ -22,8 +22,6 @@
    - -
    @@ -36,8 +34,6 @@ - -
    diff --git a/web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl b/web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl index 1c131bdb..6b866a07 100644 --- a/web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl +++ b/web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl @@ -30,8 +30,6 @@ - -
    @@ -48,8 +46,6 @@
    - -
    diff --git a/web/WEB-INF/templates/admin/landline/admin_form_landline_data.tpl b/web/WEB-INF/templates/admin/landline/admin_form_landline_data.tpl index c6047b4e..cdf89951 100644 --- a/web/WEB-INF/templates/admin/landline/admin_form_landline_data.tpl +++ b/web/WEB-INF/templates/admin/landline/admin_form_landline_data.tpl @@ -22,8 +22,6 @@
    - -
    @@ -36,8 +34,6 @@ - -
    diff --git a/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl b/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl index 625f4ff7..0b5f36a2 100644 --- a/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl +++ b/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl @@ -22,8 +22,6 @@
    - -
    @@ -38,12 +36,10 @@ + -
    - - - - + + @@ -56,12 +52,10 @@ + -
    - - - - + + diff --git a/web/WEB-INF/templates/admin/mobile_provider/admin_form_mobile_provider.tpl b/web/WEB-INF/templates/admin/mobile_provider/admin_form_mobile_provider.tpl index 46a68868..00d1cf0e 100644 --- a/web/WEB-INF/templates/admin/mobile_provider/admin_form_mobile_provider.tpl +++ b/web/WEB-INF/templates/admin/mobile_provider/admin_form_mobile_provider.tpl @@ -25,12 +25,10 @@ + -
    - - - - + + @@ -43,8 +41,6 @@ - -
    @@ -55,8 +51,6 @@
    - -
    @@ -70,8 +64,6 @@ - -
    diff --git a/web/WEB-INF/templates/admin/user/admin_form_user_data.tpl b/web/WEB-INF/templates/admin/user/admin_form_user_data.tpl index 4d533c4c..a2c3dab3 100644 --- a/web/WEB-INF/templates/admin/user/admin_form_user_data.tpl +++ b/web/WEB-INF/templates/admin/user/admin_form_user_data.tpl @@ -22,12 +22,8 @@
    - -
    -
    -
    @@ -36,8 +32,6 @@
    - -
    @@ -48,8 +42,6 @@
    - -
    @@ -60,11 +52,9 @@
    - -
    -
    +
    • @@ -73,7 +63,7 @@
    -
    + diff --git a/web/WEB-INF/templates/base.tpl b/web/WEB-INF/templates/base.tpl index e2e8f20a..9ba4f401 100644 --- a/web/WEB-INF/templates/base.tpl +++ b/web/WEB-INF/templates/base.tpl @@ -15,7 +15,7 @@ - + <h:outputText value="Addressbook" /> @@ -63,8 +63,6 @@ </ui:insert> </div> </h:panelGroup> - - <div class="clear"></div> </h:panelGroup> <h:panelGroup id="page_footer" layout="block"> diff --git a/web/WEB-INF/templates/contact/form_contact_data.tpl b/web/WEB-INF/templates/contact/form_contact_data.tpl index 78580ad6..a42ec3d0 100644 --- a/web/WEB-INF/templates/contact/form_contact_data.tpl +++ b/web/WEB-INF/templates/contact/form_contact_data.tpl @@ -29,12 +29,10 @@ <f:validator validatorId="NameValidator" /> </h:inputText> </div> + </h:panelGroup> - <div class="clear"></div> - - <h:panelGroup styleClass="error_container" layout="block"> - <h:message for="firstName" errorClass="errors" fatalClass="errors" warnClass="errors" /> - </h:panelGroup> + <h:panelGroup styleClass="error_container" layout="block"> + <h:message for="firstName" errorClass="errors" fatalClass="errors" warnClass="errors" /> </h:panelGroup> <h:panelGroup styleClass="table_row" layout="block"> @@ -47,12 +45,10 @@ <f:validator for="familyName" validatorId="NameValidator" /> </h:inputText> </div> + </h:panelGroup> - <div class="clear"></div> - - <h:panelGroup styleClass="error_container" layout="block"> - <h:message for="familyName" errorClass="errors" fatalClass="errors" warnClass="errors" /> - </h:panelGroup> + <h:panelGroup styleClass="error_container" layout="block"> + <h:message for="familyName" errorClass="errors" fatalClass="errors" warnClass="errors" /> </h:panelGroup> <h:panelGroup styleClass="table_row" layout="block"> @@ -65,12 +61,10 @@ <f:validator validatorId="NameValidator" /> </h:inputText> </div> + </h:panelGroup> - <div class="clear"></div> - - <h:panelGroup styleClass="error_container" layout="block"> - <h:message for="street" errorClass="errors" fatalClass="errors" warnClass="errors" /> - </h:panelGroup> + <h:panelGroup styleClass="error_container" layout="block"> + <h:message for="street" errorClass="errors" fatalClass="errors" warnClass="errors" /> </h:panelGroup> <h:panelGroup styleClass="table_row" layout="block"> @@ -83,12 +77,10 @@ <f:validateLongRange for="houseNumber" minimum="1" maximum="500" /> </h:inputText> </div> + </h:panelGroup> - <div class="clear"></div> - - <h:panelGroup styleClass="error_container" layout="block"> - <h:message for="houseNumber" errorClass="errors" fatalClass="errors" warnClass="errors" /> - </h:panelGroup> + <h:panelGroup styleClass="error_container" layout="block"> + <h:message for="houseNumber" errorClass="errors" fatalClass="errors" warnClass="errors" /> </h:panelGroup> <h:panelGroup styleClass="table_row" layout="block"> @@ -99,12 +91,10 @@ <div class="table_right_medium"> <h:inputText styleClass="input" id="houseNumberExtension" size="2" maxlength="2" value="#{contactController.houseNumberExtension}" /> </div> + </h:panelGroup> - <div class="clear"></div> - - <h:panelGroup styleClass="error_container" layout="block"> - <h:message for="houseNumberExtension" errorClass="errors" fatalClass="errors" warnClass="errors" /> - </h:panelGroup> + <h:panelGroup styleClass="error_container" layout="block"> + <h:message for="houseNumberExtension" errorClass="errors" fatalClass="errors" warnClass="errors" /> </h:panelGroup> <h:panelGroup styleClass="table_row" layout="block"> @@ -117,12 +107,10 @@ <f:validateLongRange minimum="1" maximum="99999" /> </h:inputText> </div> + </h:panelGroup> - <div class="clear"></div> - - <h:panelGroup styleClass="error_container" layout="block"> - <h:message for="zipCode" errorClass="errors" fatalClass="errors" warnClass="errors" /> - </h:panelGroup> + <h:panelGroup styleClass="error_container" layout="block"> + <h:message for="zipCode" errorClass="errors" fatalClass="errors" warnClass="errors" /> </h:panelGroup> <h:panelGroup styleClass="table_row" layout="block"> @@ -135,13 +123,11 @@ <f:validator validatorId="NameValidator" /> </h:inputText> </div> - - <div class="clear"></div> + </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> <h:message for="city" errorClass="errors" fatalClass="errors" warnClass="errors" /> </h:panelGroup> - </h:panelGroup> <h:panelGroup styleClass="table_row" layout="block"> <div class="table_left_medium"> @@ -153,13 +139,11 @@ <f:convertDateTime pattern="#{msg.BIRTHDAY_PATTERN}" /> </h:inputText> </div> - - <div class="clear"></div> + </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> <h:message for="birthday" errorClass="errors" fatalClass="errors" warnClass="errors" /> </h:panelGroup> - </h:panelGroup> <h:panelGroup styleClass="table_row" layout="block"> <div class="table_left_medium"> @@ -173,13 +157,11 @@ <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryCode} (#{msg[country.countryI18nKey]})" /> </h:selectOneMenu> </div> - - <div class="clear"></div> + </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> <h:message for="country" errorClass="errors" fatalClass="errors" warnClass="errors" /> </h:panelGroup> - </h:panelGroup> <h:panelGroup styleClass="table_row" layout="block"> <div class="table_left_medium"> @@ -201,8 +183,6 @@ <f:validator validatorId="PhoneNumberValidator" /> </h:inputText> </div> - - <div class="clear"></div> </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> @@ -233,8 +213,6 @@ <f:validator for="faxNumber" validatorId="PhoneNumberValidator" /> </h:inputText> </div> - - <div class="clear"></div> </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> diff --git a/web/WEB-INF/templates/guest/guest_email_address_repeat_fields.tpl b/web/WEB-INF/templates/guest/guest_email_address_repeat_fields.tpl index 0f512b25..d930846f 100644 --- a/web/WEB-INF/templates/guest/guest_email_address_repeat_fields.tpl +++ b/web/WEB-INF/templates/guest/guest_email_address_repeat_fields.tpl @@ -16,8 +16,6 @@ <f:validator validatorId="EmailAddressValidator" /> </h:inputText> </div> - - <div class="clear"></div> </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> @@ -32,8 +30,6 @@ <div class="table_right_medium"> <h:inputText styleClass="input" id="emailAddressRepeat" size="20" maxlength="255" value="#{contactController.emailAddressRepeat}" required="true" requiredMessage="#{msg.EMAIL_ADDRESS_REPEAT_NOT_ENTERED}" /> </div> - - <div class="clear"></div> </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> diff --git a/web/WEB-INF/templates/guest/guest_footer.tpl b/web/WEB-INF/templates/guest/guest_footer.tpl index 77b56d5c..13f1a363 100644 --- a/web/WEB-INF/templates/guest/guest_footer.tpl +++ b/web/WEB-INF/templates/guest/guest_footer.tpl @@ -38,6 +38,4 @@ <li class="footer_copyright">Copyright (c) 2016, 2017 Roland Häder</li> </ul> </div> - - <div class="clear"></div> </ui:composition> diff --git a/web/WEB-INF/templates/guest/guest_privacy_terms.tpl b/web/WEB-INF/templates/guest/guest_privacy_terms.tpl index 0e81ece2..bb86d274 100644 --- a/web/WEB-INF/templates/guest/guest_privacy_terms.tpl +++ b/web/WEB-INF/templates/guest/guest_privacy_terms.tpl @@ -25,12 +25,10 @@ <h:link outcome="privacy" target="_blank" value="#{msg.LINK_GUEST_PRIVACY_STATEMENTS}" /> <h:outputText value="#{msg.GUEST_AGREE_READ_PRIVACY_STATEMENT_2}" /> </div> + </h:panelGroup> - <div class="clear"></div> - - <h:panelGroup styleClass="error_container" layout="block"> - <h:message for="privacy" errorClass="errors" warnClass="warnings" fatalClass="errors" /> - </h:panelGroup> + <h:panelGroup styleClass="error_container" layout="block"> + <h:message for="privacy" errorClass="errors" warnClass="warnings" fatalClass="errors" /> </h:panelGroup> <h:panelGroup styleClass="table_row" layout="block"> @@ -47,12 +45,10 @@ <h:link outcome="terms" target="_blank" value="#{msg.LINK_GUEST_TERMS_CONDITIONS}" /> <h:outputText value="#{msg.GUEST_AGREE_READ_TERMS_CONDITIONS_2}" /> </div> + </h:panelGroup> - <div class="clear"></div> - - <h:panelGroup styleClass="error_container" layout="block"> - <h:message for="terms" errorClass="errors" warnClass="warnings" fatalClass="errors" /> - </h:panelGroup> + <h:panelGroup styleClass="error_container" layout="block"> + <h:message for="terms" errorClass="errors" warnClass="warnings" fatalClass="errors" /> </h:panelGroup> </fieldset> </h:panelGroup> diff --git a/web/WEB-INF/templates/guest/user/guest_login_form.tpl b/web/WEB-INF/templates/guest/user/guest_login_form.tpl index 74f86eeb..10aee0b6 100644 --- a/web/WEB-INF/templates/guest/user/guest_login_form.tpl +++ b/web/WEB-INF/templates/guest/user/guest_login_form.tpl @@ -4,8 +4,9 @@ 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" rendered="#{featureController.isFeatureEnabled('user_login_require_user_name')}"> + + <h:panelGroup id="user_login_content" layout="block" rendered="#{featureController.isFeatureEnabled('user_login_require_user_name')}"> + <h:form id="form_user_login"> <h:panelGroup styleClass="table" layout="block"> <div class="table_header"> <h:outputText value="#{msg.GUEST_ENTER_USER_LOGIN_DATA_TITLE}" /> @@ -24,12 +25,10 @@ <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> + </h:panelGroup> - <div class="clear"></div> - - <h:panelGroup styleClass="error_container" layout="block"> - <h:message for="userName" errorClass="errors" fatalClass="errors" warnClass="errors" /> - </h:panelGroup> + <h:panelGroup styleClass="error_container" layout="block"> + <h:message for="userName" errorClass="errors" fatalClass="errors" warnClass="errors" /> </h:panelGroup> <h:panelGroup styleClass="table_row" layout="block"> @@ -40,12 +39,10 @@ <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> + </h:panelGroup> - <div class="clear"></div> - - <h:panelGroup styleClass="error_container" layout="block"> - <h:message for="userPassword" errorClass="errors" fatalClass="errors" warnClass="errors" /> - </h:panelGroup> + <h:panelGroup styleClass="error_container" layout="block"> + <h:message for="userPassword" errorClass="errors" fatalClass="errors" warnClass="errors" /> </h:panelGroup> </fieldset> @@ -59,5 +56,5 @@ <h:panelGroup styleClass="error_container" layout="block" rendered="#{not featureController.isFeatureEnabled('user_login_require_user_name')}"> <h:outputText styleClass="errors" value="#{msg.ERROR_GUEST_USER_NAME_REQUIRED_DISABLED}" /> </h:panelGroup> - </div> + </h:panelGroup> </ui:composition> diff --git a/web/WEB-INF/templates/guest/user/register/guest_form_register_page1.tpl b/web/WEB-INF/templates/guest/user/register/guest_form_register_page1.tpl index e7f92540..36eea09e 100644 --- a/web/WEB-INF/templates/guest/user/register/guest_form_register_page1.tpl +++ b/web/WEB-INF/templates/guest/user/register/guest_form_register_page1.tpl @@ -26,8 +26,6 @@ <div class="table_right_medium"> <h:inputText styleClass="input" id="userName" size="20" maxlength="255" value="#{userController.userName}" required="true" requiredMessage="#{msg.GUEST_REGISTRATION_USER_NAME_NOT_ENTERED}" /> </div> - - <div class="clear"></div> </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> @@ -48,8 +46,6 @@ <div class="table_right_medium"> <h:inputSecret styleClass="input" id="userPassword" size="10" maxlength="255" value="#{userController.userPassword}" required="#{not featureController.isFeatureEnabled('allow_user_registration_empty_password')}" requiredMessage="#{msg.GUEST_REGISTRATION_PASSWORD_NOT_ENTERED}" /> </div> - - <div class="clear"></div> </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> @@ -64,8 +60,6 @@ <div class="table_right_medium"> <h:inputSecret styleClass="input" id="userPasswordRepeat" size="10" maxlength="255" value="#{userController.userPasswordRepeat}" required="#{not featureController.isFeatureEnabled('allow_user_registration_empty_password')}" requiredMessage="#{msg.GUEST_REGISTRATION_PASSWORD_REPEAT_NOT_ENTERED}" /> </div> - - <div class="clear"></div> </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> diff --git a/web/WEB-INF/templates/guest/user/register/guest_form_register_single.tpl b/web/WEB-INF/templates/guest/user/register/guest_form_register_single.tpl index 98f822df..a3c7829d 100644 --- a/web/WEB-INF/templates/guest/user/register/guest_form_register_single.tpl +++ b/web/WEB-INF/templates/guest/user/register/guest_form_register_single.tpl @@ -28,12 +28,10 @@ <div class="table_right"> <h:inputText styleClass="input" id="userName" size="20" maxlength="255" value="#{userController.userName}" required="true" requiredMessage="#{msg.GUEST_REGISTRATION_USER_NAME_NOT_ENTERED}" /> </div> + </h:panelGroup> - <div class="clear"></div> - - <h:panelGroup styleClass="error_container" layout="block"> - <h:message for="userName" errorClass="errors" fatalClass="errors" warnClass="errors" /> - </h:panelGroup> + <h:panelGroup styleClass="error_container" layout="block"> + <h:message for="userName" errorClass="errors" fatalClass="errors" warnClass="errors" /> </h:panelGroup> </ui:fragment> @@ -50,8 +48,6 @@ <div class="table_right"> <h:inputSecret styleClass="input" id="userPassword" size="10" maxlength="255" value="#{userController.userPassword}" /> </div> - - <div class="clear"></div> </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> @@ -66,8 +62,6 @@ <div class="table_right"> <h:inputSecret styleClass="input" id="userPasswordRepeat" size="10" maxlength="255" value="#{userController.userPasswordRepeat}" /> </div> - - <div class="clear"></div> </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> @@ -77,9 +71,11 @@ <div class="para notice"> <ul> <li><h:outputText value="#{msg.GUEST_REGISTRATION_USER_NAME_NOTICE}" /></li> + <ui:fragment rendered="#{featureController.isFeatureEnabled('allow_user_registration_empty_password')}"> <li><h:outputText value="#{msg.GUEST_REGISTRATION_USER_PASSWORDS_EMPTY_ALLOWED}" /></li> </ui:fragment> + <ui:fragment rendered="#{not featureController.isFeatureEnabled('allow_user_registration_empty_password')}"> <li><h:outputText value="#{msg.GUEST_REGISTRATION_USER_PASSWORDS_EMPTY_NOT_ALLOWED}" /></li> </ui:fragment> diff --git a/web/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl b/web/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl index 7c3976d9..090520cf 100644 --- a/web/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl +++ b/web/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl @@ -16,8 +16,6 @@ <f:validator validatorId="EmailAddressValidator" /> </h:inputText> </div> - - <div class="clear"></div> </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> @@ -32,8 +30,6 @@ <div class="table_right"> <h:inputText class="input" id="emailAddressRepeat" size="20" maxlength="255" value="#{userEmailChangeController.emailAddressRepeat}" required="true" requiredMessage="#{msg.EMAIL_ADDRESS_REPEAT_NOT_ENTERED}" /> </div> - - <div class="clear"></div> </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> diff --git a/web/WEB-INF/templates/login/user/user_enter_current_password.tpl b/web/WEB-INF/templates/login/user/user_enter_current_password.tpl index 97a4e7c9..c94c5fb8 100644 --- a/web/WEB-INF/templates/login/user/user_enter_current_password.tpl +++ b/web/WEB-INF/templates/login/user/user_enter_current_password.tpl @@ -21,12 +21,10 @@ <!-- <f:validator for="currentPassword" validatorId="FinancialsUserPasswordValidator" /> //--> </h:inputSecret> </div> + </h:panelGroup> - <div class="clear"></div> - - <h:panelGroup styleClass="error_container" layout="block"> - <h:message for="currentPassword" errorClass="errors" fatalClass="errors" warnClass="errors" /> - </h:panelGroup> + <h:panelGroup styleClass="error_container" layout="block"> + <h:message for="currentPassword" errorClass="errors" fatalClass="errors" warnClass="errors" /> </h:panelGroup> </fieldset> </h:panelGroup> diff --git a/web/WEB-INF/templates/login/user/user_footer.tpl b/web/WEB-INF/templates/login/user/user_footer.tpl index d31305de..5682983c 100644 --- a/web/WEB-INF/templates/login/user/user_footer.tpl +++ b/web/WEB-INF/templates/login/user/user_footer.tpl @@ -32,6 +32,4 @@ <li class="footer_copyright">Copyright (c) 2016, 2017 Roland Häder</li> </ul> </div> - - <div class="clear"></div> </ui:composition> diff --git a/web/admin/user/admin_user_delete.xhtml b/web/admin/user/admin_user_delete.xhtml index 51f5b414..c6afca17 100644 --- a/web/admin/user/admin_user_delete.xhtml +++ b/web/admin/user/admin_user_delete.xhtml @@ -47,8 +47,6 @@ <div class="table_right75_medium"> <h:inputTextarea id="userDeleteReason" styleClass="input" value="#{adminUserController.userDeleteReason}" rows="8" cols="45" /> </div> - - <div class="clear"></div> </h:panelGroup> <div class="table_footer"> diff --git a/web/admin/user/admin_user_list.xhtml b/web/admin/user/admin_user_list.xhtml index 027c8fd6..30cc21b3 100644 --- a/web/admin/user/admin_user_list.xhtml +++ b/web/admin/user/admin_user_list.xhtml @@ -113,8 +113,6 @@ <f:selectItems value="#{contactController.selectableContacts()}" var="contact" itemValue="#{contact}" itemLabel="#{contact.contactId}: #{msg[contact.contactPersonalTitle.messageKey]} #{contact.contactFirstName} #{contact.contactFamilyName}" /> </h:selectOneMenu> </div> - - <div class="clear"></div> </h:panelGroup> </fieldset> </h:panelGroup> diff --git a/web/guest/user/user_lost_password.xhtml b/web/guest/user/user_lost_password.xhtml index 0896b864..47d3c460 100644 --- a/web/guest/user/user_lost_password.xhtml +++ b/web/guest/user/user_lost_password.xhtml @@ -36,8 +36,6 @@ <div class="table_right"> <h:inputText styleClass="input" id="id" size="10" maxlength="20" value="#{passwordRecoveryController.userId}" /> </div> - - <div class="clear"></div> </h:panelGroup> <div class="table_header"> @@ -52,8 +50,6 @@ <div class="table_right"> <h:inputText styleClass="input" id="email" size="20" maxlength="255" value="#{passwordRecoveryController.emailAddress}" /> </div> - - <div class="clear"></div> </h:panelGroup> </fieldset> diff --git a/web/resources/css/cssLayout.css b/web/resources/css/cssLayout.css deleted file mode 100644 index c20b7886..00000000 --- a/web/resources/css/cssLayout.css +++ /dev/null @@ -1,365 +0,0 @@ -/** -div, table { - border: 1px solid #ff0000; -} -/**/ - -#page_title { - border-bottom: 1px solid #AFAFAF; -} - -#top { - position: relative; - background-color: #036fab; - color: #ffffff; - padding: 5px; - margin: 0px 0px 10px 0px; -} - -#page_footer { - position: relative; - background-color: #c2dfef; - padding: 5px; - margin: 10px 0px 0px 0px; -} - -#left { - float: left; - background-color: #ece3a5; - padding: 5px; - width: 170px; -} - -#right { - float: right; - background-color: #ece3a5; - padding: 5px; - width: 150px; -} - -.center_content { - position: relative; - background-color: #dddddd; - padding: 5px; -} - -.left_content { - padding-right: 5px; - padding-bottom: 5px; - margin-left: 190px; -} - -.table_footer { - margin: 2px; -} - -#top a:link, #top a:visited { - color: #ffffff; - font-weight : bold; - text-decoration: none; -} - -#top a:link:hover, #top a:visited:hover { - color: #000000; - font-weight : bold; - text-decoration : underline; -} - -table, .table, .table_medium { - margin: 0px; - padding: 0px; -} - -.table { - width: 500px; -} - -.table_footer { - margin: 2px; -} - -.table_medium { - width: 650px; -} - -.table_full { - width: 100%; -} - -.table_row { - width: 100%; - min-height: 20px; - margin: 2px; -} - -.table_left { - width: 250px; - min-height: 20px; - float: left; -} - -.table_right { - width: 200px; - min-height: 20px; - float: right; -} - -.table_left25 { - width: 20px; - min-height: 20px; - float: left; -} - -.table_right75 { - width: 430px; - min-height: 20px; - float: right; -} - -.table_left_medium { - width: 300px; - min-height: 20px; - float: left; -} - -.table_right_medium { - width: 300px; - min-height: 20px; - float: right; -} - -.table_left25_medium { - width: 150px; - min-height: 20px; - float: left; -} - -.table_right75_medium { - width: 490px; - min-height: 20px; - float: right; -} - -.para { - padding: 5px 5px 5px 5px; -} - -.clear { - clear: both; -} - -ul.footer_nav, ul.mini_nav { - display: block; - text-align: center; - list-style: none; - margin: 0px; - padding: 0px; -} - -ul.footer_nav li.footer_link, ul.mini_nav li.mini_link { - display: block; - float: left; -} - -ul.footer_nav li.footer_link { - width: 100px; -} - -ul.mini_nav li.mini_link { - padding: 1px; -} - -ul.footer_nav li.footer_copyright { - float: right; - width: 300px; - margin-right: 10px; -} - -.menu ul { - list-style: none; - padding-left: 5px; -} - -.menu_header { - font-weight: bold; -} - -.table_header, .table_label, .message_header { - text-align: center; - font-weight: bold; -} - -.table_data_label, .table_data_field { - display: block; - border: 1px solid #aaaaaa; - border-top-right-radius: 8px; - border-bottom-left-radius: 8px; -} - -.table_data_label { - font-weight: bold; - background-image: linear-gradient(#eeeeee, #bbbbbb); - height: 16px; - padding-left: 4px; -} - -.table_data_field { - background-color: #f5f5f5; - vertical-align: top; - padding-top: 1px; - padding-bottom: 1px; - padding-left: 2px; - padding-right: 1px; - margin-top: 2px; - min-height: 15px; -} - -#content_header { - border-color: #888888; - background-image: linear-gradient(#eeeeee, #aaaaaa); - font-weight: bold; - font-size: 18px; - margin-bottom: 20px; - padding-left: 5px; -} - -.table_header_column { - width: 100px; -} - -.table_header_column25 { - width: 25%; -} - -.table_data_column { - width: 100px; -} - -.item_price, .item_total_price { - text-align: right; -} - -.errors { - color: red; -} - -.errors:hover { - cursor: not-allowed; -} - -.fatals { - color: red; - font-weight: bold; -} - -.infos { - color: cornflowerblue; -} - -.warnings { - color: gold; -} - -.message_box, .message_box_mini { - border: 1px solid #888888; - border-top-right-radius: 8px; - border-bottom-left-radius: 8px; - background-color: #f0f0fa; -} - -.message_box { - width: 400px; -} - -.message_box_mini { - width: 160px; -} - -.message_header { - border-bottom: 1px solid #888888; - background-image: linear-gradient(#eeeeee, #aaaaaa); -} - -.okay { - color: #00aa00; -} - -.user_status_confirmed, .customer_status_confirmed { - color: #00aa00; -} - -.user_status_unconfirmed, .customer_status_unconfirmed { - color: #00aaaa; -} - -.user_status_locked, .customer_status_locked { - color: #aa0000; -} - -.unlink_link { - color: #aaaa00; -} - -.delete_link { - color: #aa0000; -} - -.right_space { - margin-right: 2px; -} - -#content_header, .input, .select, .submit, .reset, .delete_button, .unlink_button, .fieldset { - border: 1px solid #888888; - border-top-right-radius: 8px; - border-bottom-left-radius: 8px; -} - -.checkbox { - border: 1px solid #888888; -} - -input, textarea, select, option { - background-color: #fbfbfb; -} - -.submit, .reset, .delete_button, .unlink_button { - cursor: pointer; -} - -input:hover, textarea:hover, select:hover, option:hover { - border-color: #666666; - background-color: #eeeeee; -} - -.delete_button:hover { - border-color: #dd0000; - background-color: #aa0000; - color: #eeeeee; -} - -.unlink_button:hover { - border-color: #dddd00; - background-color: #cccc00; - color: #eeeeee; -} - -.delete_button { - border-color: #ee0000; - background-color: #880000; - color: #ffffff; -} - -.unlink_button { - border-color: #eeee00; - background-color: #aaaa00; - color: #ffffff; -} - -.fieldset { - padding: 5px; -} - -.input { - padding-left: 4px; - padding-right: 4px; -} diff --git a/web/resources/css/layout.css b/web/resources/css/layout.css new file mode 100644 index 00000000..5e557987 --- /dev/null +++ b/web/resources/css/layout.css @@ -0,0 +1,373 @@ +/** +div, table { + border: 1px solid #ff0000; +} +/**/ + +#page_title { + border-bottom: 1px solid #AFAFAF; +} + +#top { + position: relative; + background-color: #036fab; + color: #ffffff; + padding: 5px; + margin: 0px 0px 10px 0px; +} + +#page_footer { + position: relative; + background-color: #c2dfef; + padding: 5px; + margin: 10px 0px 0px 0px; +} + +#left { + float: left; + background-color: #ece3a5; + padding: 5px; + width: 170px; +} + +#right { + float: right; + background-color: #ece3a5; + padding: 5px; + width: 150px; +} + +.center_content { + position: relative; + background-color: #dddddd; + padding: 5px; +} + +.left_content { + padding-right: 5px; + padding-bottom: 5px; + margin-left: 190px; +} + +#menu_content::after { + clear: both; +} + +.table_footer { + margin: 2px; +} + +#top a:link, #top a:visited { + color: #ffffff; + font-weight : bold; + text-decoration: none; +} + +#top a:link:hover, #top a:visited:hover { + color: #000000; + font-weight : bold; + text-decoration : underline; +} + +table, .table, .table_medium { + margin: 0px; + padding: 0px; +} + +.table { + width: 500px; +} + +.table_footer { + margin: 2px; +} + +.table_medium { + width: 650px; +} + +.table_full { + width: 100%; +} + +.table_row { + width: 100%; + min-height: 20px; + margin: 2px; +} + +.table_row::after { + clear: both; +} + +.table_left { + width: 250px; + min-height: 20px; + float: left; +} + +.table_right { + width: 200px; + min-height: 20px; + float: right; +} + +.table_left25 { + width: 20px; + min-height: 20px; + float: left; +} + +.table_right75 { + width: 430px; + min-height: 20px; + float: right; +} + +.table_left_medium { + width: 300px; + min-height: 20px; + float: left; +} + +.table_right_medium { + width: 300px; + min-height: 20px; + float: right; +} + +.table_left25_medium { + width: 150px; + min-height: 20px; + float: left; +} + +.table_right75_medium { + width: 490px; + min-height: 20px; + float: right; +} + +.para { + padding: 5px; +} + +ul.footer_nav, ul.mini_nav { + display: block; + text-align: center; + list-style: none; + margin: 0px; + padding: 0px; +} + +ul.footer_nav li.footer_link, ul.mini_nav li.mini_link { + display: block; + float: left; +} + +ul.footer_nav li.footer_link { + width: 100px; +} + +ul.mini_nav li.mini_link { + padding: 1px; +} + +ul.footer_nav li.footer_copyright { + float: right; + width: 300px; + margin-right: 10px; +} + +.menu ul { + list-style: none; + padding-left: 5px; +} + +.menu_header { + font-weight: bold; +} + +.table_header, .table_label, .message_header { + text-align: center; + font-weight: bold; +} + +.table_data_label, .table_data_field { + display: block; + border: 1px solid #aaaaaa; + border-top-right-radius: 8px; + border-bottom-left-radius: 8px; +} + +.table_data_label { + font-weight: bold; + background-image: linear-gradient(#eeeeee, #bbbbbb); + height: 16px; + padding-left: 4px; +} + +.table_data_field { + background-color: #f5f5f5; + vertical-align: top; + padding-top: 1px; + padding-bottom: 1px; + padding-left: 2px; + padding-right: 1px; + margin-top: 2px; + min-height: 15px; +} + +#content_header { + border-color: #888888; + background-image: linear-gradient(#eeeeee, #aaaaaa); + font-weight: bold; + font-size: 18px; + margin-bottom: 20px; + padding-left: 5px; +} + +.table_header_column { + width: 100px; +} + +.table_header_column25 { + width: 25%; +} + +.table_data_column { + width: 100px; +} + +.item_price, .item_total_price { + text-align: right; +} + +.errors { + color: red; +} + +.errors:hover { + cursor: not-allowed; +} + +.fatals { + color: red; + font-weight: bold; +} + +.infos { + color: cornflowerblue; +} + +.warnings { + color: gold; +} + +.message_box, .message_box_mini { + border: 1px solid #888888; + border-top-right-radius: 8px; + border-bottom-left-radius: 8px; + background-color: #f0f0fa; +} + +.message_box { + width: 400px; +} + +.message_box_mini { + width: 160px; +} + +.message_header { + border-bottom: 1px solid #888888; + background-image: linear-gradient(#eeeeee, #aaaaaa); +} + +.okay { + color: #00aa00; +} + +.user_status_confirmed, .customer_status_confirmed { + color: #00aa00; +} + +.user_status_unconfirmed, .customer_status_unconfirmed { + color: #00aaaa; +} + +.user_status_locked, .customer_status_locked { + color: #aa0000; +} + +.unlink_link { + color: #aaaa00; +} + +.delete_link { + color: #aa0000; +} + +.right_space { + margin-right: 2px; +} + +#content_header, .input, .select, .submit, .reset, .delete_button, .unlink_button, .fieldset { + border: 1px solid #888888; + border-top-right-radius: 8px; + border-bottom-left-radius: 8px; +} + +.checkbox { + border: 1px solid #888888; +} + +input, textarea, select, option { + background-color: #fbfbfb; +} + +.submit, .reset, .delete_button, .unlink_button { + cursor: pointer; +} + +input:hover, textarea:hover, select:hover, option:hover { + border-color: #666666; + background-color: #eeeeee; +} + +.delete_button:hover { + border-color: #dd0000; + background-color: #aa0000; + color: #eeeeee; +} + +.unlink_button:hover { + border-color: #dddd00; + background-color: #cccc00; + color: #eeeeee; +} + +.delete_button { + border-color: #ee0000; + background-color: #880000; + color: #ffffff; +} + +.unlink_button { + border-color: #eeee00; + background-color: #aaaa00; + color: #ffffff; +} + +.fieldset { + padding: 5px; +} + +.input { + padding-left: 4px; + padding-right: 4px; +} + +.footer::after { + clear: both; +} diff --git a/web/user/login_user_change_email_address.xhtml b/web/user/login_user_change_email_address.xhtml index 03674f1c..fedd9d48 100644 --- a/web/user/login_user_change_email_address.xhtml +++ b/web/user/login_user_change_email_address.xhtml @@ -36,8 +36,6 @@ <div class="table_right"> <h:outputText value="#{contactController.emailAddress}" /> </div> - - <div class="clear"></div> </h:panelGroup> <ui:include src="/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl" /> diff --git a/web/user/login_user_change_password.xhtml b/web/user/login_user_change_password.xhtml index 98003d1f..9d641961 100644 --- a/web/user/login_user_change_password.xhtml +++ b/web/user/login_user_change_password.xhtml @@ -37,8 +37,6 @@ <div class="table_right"> <h:inputSecret styleClass="input" id="userPassword" size="10" maxlength="255" value="#{userPasswordController.userPassword}" required="true" requiredMessage="#{msg.USER_NEW_PASSWORD_REQUIRED}" /> </div> - - <div class="clear"></div> </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> @@ -53,8 +51,6 @@ <div class="table_right"> <h:inputSecret styleClass="input" id="userPasswordRepeat" size="10" maxlength="255" value="#{userPasswordController.userPasswordRepeat}" required="true" requiredMessage="#{msg.USER_NEW_PASSWORD_REPEAT_REQUIRED}" /> </div> - - <div class="clear"></div> </h:panelGroup> <h:panelGroup styleClass="error_container" layout="block"> @@ -62,6 +58,7 @@ </h:panelGroup> </fieldset> + <!-- @TODO Get rid of this ugly class=para abuse --> <div class="para"></div> <ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl" />