Author: mor
Date: Tue Jun 30 11:48:20 2009 New Revision: 789687 URL: http://svn.apache.org/viewvc?rev=789687&view=rev Log: No functional change. Tabs to spaces and used correct syntax for comments in FTL Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/customer/newcustomer.ftl Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/customer/newcustomer.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/customer/newcustomer.ftl?rev=789687&r1=789686&r2=789687&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/customer/newcustomer.ftl (original) +++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/customer/newcustomer.ftl Tue Jun 30 11:48:20 2009 @@ -58,16 +58,16 @@ </script> </#if> -<!------------------------------------------------------------------------------ +<#------------------------------------------------------------------------------ NOTE: all page headings should start with an h2 tag, not an H1 tag, as there should generally always only be one h1 tag on the page and that will generally always be reserved for the logo at the top of the page. -------------------------------------------------------------------------------> <h2>${uiLabelMap.PartyRequestNewAccount} - <span> - ${uiLabelMap.PartyAlreadyHaveAccount}, <a href='<@ofbizUrl>checkLogin/main</@ofbizUrl>'>${uiLabelMap.CommonLoginHere}</a> - </span> + <span> + ${uiLabelMap.PartyAlreadyHaveAccount}, <a href='<@ofbizUrl>checkLogin/main</@ofbizUrl>'>${uiLabelMap.CommonLoginHere}</a> + </span> </h2> <#macro fieldErrors fieldName> @@ -94,323 +94,304 @@ <form method="post" action="<@ofbizUrl>createcustomer${previousParams}</@ofbizUrl>" name="newuserform"> <input type="hidden" name="emailProductStoreId" value="${productStoreId}"/> - <!---------------------------------------------------------------------- + <#---------------------------------------------------------------------- If you need to include a brief explanation of the form, or certain elements in the form (such as explaining asterisks denote REQUIRED), then you should use a <p></p> tag with a class name of "desc" -----------------------------------------------------------------------> - + <p class="desc">${uiLabelMap.CommonFieldsMarkedAreRequired}</p> - - <!---------------------------------------------------------------------- + + <#---------------------------------------------------------------------- There are two types of fieldsets, regular (full width) fielsets, and column (half width) fieldsets. If you want to group two sets of inputs side by side in two columns, give each fieldset a class name of "col" -----------------------------------------------------------------------> - + <fieldset class="col"> - <legend>${uiLabelMap.PartyFullName}</legend> - - <!---------------------------------------------------------------------- - Each input row should be enclosed in a <div></div> with a class name - of "form-row". This will ensure than each input field clears the one - above it. Alternately, if you want several inputs to float next to - each other, you can enclose them in a table as illustrated below for - the phone numbers, or you can enclose each label/input pair in a span - - Example: - <div class="form-row"> - <span> - <input type="text" name="expMonth" value=""/> - <label for="expMonth">Exp. Month</label> - </span> - <span> - <input type="text" name="expYear" value=""/> - <label for="expYear">Exp. Year</label> - </span> - </div> - -----------------------------------------------------------------------> - <div class="form-row"> - <label for="USER_TITLE">${uiLabelMap.CommonTitle}</label> - <@fieldErrors fieldName="USER_TITLE"/> - <select name="USER_TITLE"> - <#if requestParameters.USER_TITLE?has_content > - <option>${requestParameters.USER_TITLE}</option> - <option value="${requestParameters.USER_TITLE}"> -- </option> - <#else> - <option value="">${uiLabelMap.CommonSelectOne}</option> - </#if> - <option>${uiLabelMap.CommonTitleMr}</option> - <option>${uiLabelMap.CommonTitleMrs}</option> - <option>${uiLabelMap.CommonTitleMs}</option> - <option>${uiLabelMap.CommonTitleDr}</option> - </select> - </div> - - <div class="form-row"> - <label for="USER_FIRST_NAME">${uiLabelMap.PartyFirstName}*</label> - <@fieldErrors fieldName="USER_FIRST_NAME"/> - <input type="text" name="USER_FIRST_NAME" value="${requestParameters.USER_FIRST_NAME?if_exists}"> - </div> - - <div class="form-row"> - <label for="USER_MIDDLE_NAME">${uiLabelMap.PartyMiddleInitial}</label> - <@fieldErrors fieldName="USER_MIDDLE_NAME"/> - <input type="text" name="USER_MIDDLE_NAME" value="${requestParameters.USER_MIDDLE_NAME?if_exists}"> - </div> - - <div class="form-row"> - <label for="USER_LAST_NAME">${uiLabelMap.PartyLastName}*</label> - <@fieldErrors fieldName="USER_LAST_NAME"/> - <input type="text" name="USER_LAST_NAME" value="${requestParameters.USER_LAST_NAME?if_exists}"> - </div> - - <div class="form-row"> - <label for="USER_SUFFIX">${uiLabelMap.PartySuffix}</label> - <@fieldErrors fieldName="USER_SUFFIX"/> - <input type="text" class='inputBox' name="USER_SUFFIX" value="${requestParameters.USER_SUFFIX?if_exists}"> + + <#---------------------------------------------------------------------- + Each input row should be enclosed in a <div></div> with a class name + of "form-row". This will ensure than each input field clears the one + above it. Alternately, if you want several inputs to float next to + each other, you can enclose them in a table as illustrated below for + the phone numbers, or you can enclose each label/input pair in a span + + Example: + <div class="form-row"> + <span> + <input type="text" name="expMonth" value=""/> + <label for="expMonth">Exp. Month</label> + </span> + <span> + <input type="text" name="expYear" value=""/> + <label for="expYear">Exp. Year</label> + </span> + </div> + -----------------------------------------------------------------------> + <div class="form-row"> + <label for="USER_TITLE">${uiLabelMap.CommonTitle}</label> + <@fieldErrors fieldName="USER_TITLE"/> + <select name="USER_TITLE"> + <#if requestParameters.USER_TITLE?has_content > + <option>${requestParameters.USER_TITLE}</option> + <option value="${requestParameters.USER_TITLE}"> -- </option> + <#else> + <option value="">${uiLabelMap.CommonSelectOne}</option> + </#if> + <option>${uiLabelMap.CommonTitleMr}</option> + <option>${uiLabelMap.CommonTitleMrs}</option> + <option>${uiLabelMap.CommonTitleMs}</option> + <option>${uiLabelMap.CommonTitleDr}</option> + </select> + </div> + + <div class="form-row"> + <label for="USER_FIRST_NAME">${uiLabelMap.PartyFirstName}*</label> + <@fieldErrors fieldName="USER_FIRST_NAME"/> + <input type="text" name="USER_FIRST_NAME" value="${requestParameters.USER_FIRST_NAME?if_exists}"> </div> - + + <div class="form-row"> + <label for="USER_MIDDLE_NAME">${uiLabelMap.PartyMiddleInitial}</label> + <@fieldErrors fieldName="USER_MIDDLE_NAME"/> + <input type="text" name="USER_MIDDLE_NAME" value="${requestParameters.USER_MIDDLE_NAME?if_exists}"> + </div> + + <div class="form-row"> + <label for="USER_LAST_NAME">${uiLabelMap.PartyLastName}*</label> + <@fieldErrors fieldName="USER_LAST_NAME"/> + <input type="text" name="USER_LAST_NAME" value="${requestParameters.USER_LAST_NAME?if_exists}"> + </div> + + <div class="form-row"> + <label for="USER_SUFFIX">${uiLabelMap.PartySuffix}</label> + <@fieldErrors fieldName="USER_SUFFIX"/> + <input type="text" class='inputBox' name="USER_SUFFIX" value="${requestParameters.USER_SUFFIX?if_exists}"> + </div> + </fieldset> - + <fieldset class="col"> - <legend>${uiLabelMap.PartyShippingAddress}</legend> - <div class="form-row"> - <label for="CUSTOMER_ADDRESS1">${uiLabelMap.PartyAddressLine1}*</label> - <@fieldErrors fieldName="CUSTOMER_ADDRESS1"/> - <input type="text" name="CUSTOMER_ADDRESS1" value="${requestParameters.CUSTOMER_ADDRESS1?if_exists}"> + <label for="CUSTOMER_ADDRESS1">${uiLabelMap.PartyAddressLine1}*</label> + <@fieldErrors fieldName="CUSTOMER_ADDRESS1"/> + <input type="text" name="CUSTOMER_ADDRESS1" value="${requestParameters.CUSTOMER_ADDRESS1?if_exists}"> </div> - + <div class="form-row"> - <label for="CUSTOMER_ADDRESS2">${uiLabelMap.PartyAddressLine2}</label> - <@fieldErrors fieldName="CUSTOMER_ADDRESS2"/> - <input type="text" name="CUSTOMER_ADDRESS2" value="${requestParameters.CUSTOMER_ADDRESS2?if_exists}"> + <label for="CUSTOMER_ADDRESS2">${uiLabelMap.PartyAddressLine2}</label> + <@fieldErrors fieldName="CUSTOMER_ADDRESS2"/> + <input type="text" name="CUSTOMER_ADDRESS2" value="${requestParameters.CUSTOMER_ADDRESS2?if_exists}"> </div> - + <div class="form-row"> - <label for="CUSTOMER_CITY">${uiLabelMap.PartyCity}*</label> - <@fieldErrors fieldName="CUSTOMER_CITY"/> - <input type="text" name="CUSTOMER_CITY" value="${requestParameters.CUSTOMER_CITY?if_exists}"> + <label for="CUSTOMER_CITY">${uiLabelMap.PartyCity}*</label> + <@fieldErrors fieldName="CUSTOMER_CITY"/> + <input type="text" name="CUSTOMER_CITY" value="${requestParameters.CUSTOMER_CITY?if_exists}"> </div> - + <div class="form-row"> - <label for="CUSTOMER_POSTAL_CODE">${uiLabelMap.PartyZipCode}*</label> - <@fieldErrors fieldName="CUSTOMER_POSTAL_CODE"/> - <input type="text" name="CUSTOMER_POSTAL_CODE" value="${requestParameters.CUSTOMER_POSTAL_CODE?if_exists}"> + <label for="CUSTOMER_POSTAL_CODE">${uiLabelMap.PartyZipCode}*</label> + <@fieldErrors fieldName="CUSTOMER_POSTAL_CODE"/> + <input type="text" name="CUSTOMER_POSTAL_CODE" value="${requestParameters.CUSTOMER_POSTAL_CODE?if_exists}"> </div> <div class="form-row"> - <label for="CUSTOMER_COUNTRY">${uiLabelMap.PartyCountry}*</label> - <@fieldErrors fieldName="CUSTOMER_COUNTRY"/> - <select name="CUSTOMER_COUNTRY" onClick="hideShowUsaStates();" id="customerCountry"> - <#if requestParameters.CUSTOMER_COUNTRY?exists> - <option value='${requestParameters.CUSTOMER_COUNTRY}'>${selectedCountryName?default(requestParameters.CUSTOMER_COUNTRY)}</option> - </#if> - ${screens.render("component://common/widget/CommonScreens.xml#countries")} - </select> + <label for="CUSTOMER_COUNTRY">${uiLabelMap.PartyCountry}*</label> + <@fieldErrors fieldName="CUSTOMER_COUNTRY"/> + <select name="CUSTOMER_COUNTRY" onClick="hideShowUsaStates();" id="customerCountry"> + <#if requestParameters.CUSTOMER_COUNTRY?exists> + <option value='${requestParameters.CUSTOMER_COUNTRY}'>${selectedCountryName?default(requestParameters.CUSTOMER_COUNTRY)}</option> + </#if> + ${screens.render("component://common/widget/CommonScreens.xml#countries")} + </select> </div> - + <div class="form-row"> - <label for="CUSTOMER_STATE">${uiLabelMap.PartyState}*</label> - <@fieldErrors fieldName="CUSTOMER_STATE"/> - <select name="CUSTOMER_STATE"> - <#if requestParameters.CUSTOMER_STATE?exists> - <option value='${requestParameters.CUSTOMER_STATE}'>${selectedStateName?default(requestParameters.CUSTOMER_STATE)}</option> - </#if> - <option value="">${uiLabelMap.PartyNoState}</option> - ${screens.render("component://common/widget/CommonScreens.xml#states")} - </select> + <label for="CUSTOMER_STATE">${uiLabelMap.PartyState}*</label> + <@fieldErrors fieldName="CUSTOMER_STATE"/> + <select name="CUSTOMER_STATE"> + <#if requestParameters.CUSTOMER_STATE?exists> + <option value='${requestParameters.CUSTOMER_STATE}'>${selectedStateName?default(requestParameters.CUSTOMER_STATE)}</option> + </#if> + <option value="">${uiLabelMap.PartyNoState}</option> + ${screens.render("component://common/widget/CommonScreens.xml#states")} + </select> </div> - + <div class="form-row"> - <label for="CUSTOMER_ADDRESS_ALLOW_SOL">${uiLabelMap.PartyAllowAddressSolicitation}</label> - <select name="CUSTOMER_ADDRESS_ALLOW_SOL"> - <#if (((requestParameters.CUSTOMER_ADDRESS_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if> - <#if (((requestParameters.CUSTOMER_ADDRESS_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if> - <option>--</option> - <option value="Y">${uiLabelMap.CommonY}</option> - <option value="N">${uiLabelMap.CommonN}</option> - </select> + <label for="CUSTOMER_ADDRESS_ALLOW_SOL">${uiLabelMap.PartyAllowAddressSolicitation}</label> + <select name="CUSTOMER_ADDRESS_ALLOW_SOL"> + <#if (((requestParameters.CUSTOMER_ADDRESS_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if> + <#if (((requestParameters.CUSTOMER_ADDRESS_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if> + <option>--</option> + <option value="Y">${uiLabelMap.CommonY}</option> + <option value="N">${uiLabelMap.CommonN}</option> + </select> </div> - + </fieldset> - + <fieldset> - <legend>${uiLabelMap.PartyPhoneNumbers}</legend> - - <table summary="Tabular form for entering multiple telecom numbers for different purposes. Each row allows user to enter telecom number for a purpose"> - <thead> - <tr> - <th></th> - <th scope="col">${uiLabelMap.PartyCountry}</th> - <th scope="col">${uiLabelMap.PartyAreaCode}</th> - <th scope="col">${uiLabelMap.PartyContactNumber}</th> - <th scope="col">${uiLabelMap.PartyExtension}</th> - <th scope="col">${uiLabelMap.PartyAllowSolicitation}</th> - </tr> - </thead> - <tbody> - <tr> - <th scope="row">${uiLabelMap.PartyHomePhone}</th> - <td><input type="text" name="CUSTOMER_HOME_COUNTRY" size=5 value="${requestParameters.CUSTOMER_HOME_COUNTRY?if_exists}"></td> - <td><input type="text" name="CUSTOMER_HOME_AREA" size=5 value="${requestParameters.CUSTOMER_HOME_AREA?if_exists}"></td> - <td><input type="text" name="CUSTOMER_HOME_CONTACT" value="${requestParameters.CUSTOMER_HOME_CONTACT?if_exists}"></td> - <td><input type="text" name="CUSTOMER_HOME_EXT" size=6 value="${requestParameters.CUSTOMER_HOME_EXT?if_exists}"></td> - <td> - <select name="CUSTOMER_HOME_ALLOW_SOL"> - <#if (((requestParameters.CUSTOMER_HOME_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if> - <#if (((requestParameters.CUSTOMER_HOME_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if> - <option></option> - <option value="Y">${uiLabelMap.CommonY}</option> - <option value="N">${uiLabelMap.CommonN}</option> - </select> - </td> - </tr> - <tr> - <th scope="row">${uiLabelMap.PartyBusinessPhone}</th> - <td><input type="text" name="CUSTOMER_WORK_COUNTRY" size=5 value="${requestParameters.CUSTOMER_WORK_COUNTRY?if_exists}"></td> - <td><input type="text" name="CUSTOMER_WORK_AREA" size=5 value="${requestParameters.CUSTOMER_WORK_AREA?if_exists}"></td> - <td><input type="text" name="CUSTOMER_WORK_CONTACT" value="${requestParameters.CUSTOMER_WORK_CONTACT?if_exists}"></td> - <td><input type="text" name="CUSTOMER_WORK_EXT" size=6 value="${requestParameters.CUSTOMER_WORK_EXT?if_exists}"></td> - <td> - <select name="CUSTOMER_WORK_ALLOW_SOL"> - <#if (((requestParameters.CUSTOMER_WORK_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if> - <#if (((requestParameters.CUSTOMER_WORK_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if> - <option></option> - <option value="Y">${uiLabelMap.CommonY}</option> - <option value="N">${uiLabelMap.CommonN}</option> - </select> - </td> - </tr> - <tr> - <th scope="row">${uiLabelMap.PartyFaxNumber}</th> - <td><input type="text" name="CUSTOMER_FAX_COUNTRY" size=5 value="${requestParameters.CUSTOMER_FAX_COUNTRY?if_exists}"></td> - <td><input type="text" name="CUSTOMER_FAX_AREA" size=5 value="${requestParameters.CUSTOMER_FAX_AREA?if_exists}"></td> - <td><input type="text" name="CUSTOMER_FAX_CONTACT" value="${requestParameters.CUSTOMER_FAX_CONTACT?if_exists}"></td> - <td></td> - <td> - <select name="CUSTOMER_FAX_ALLOW_SOL"> - <#if (((requestParameters.CUSTOMER_FAX_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if> - <#if (((requestParameters.CUSTOMER_FAX_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if> - <option></option> - <option value="Y">${uiLabelMap.CommonY}</option> - <option value="N">${uiLabelMap.CommonN}</option> - </select> - </td> - </tr> - <tr> - <th scope="row">${uiLabelMap.PartyMobilePhone}</th> - <td><input type="text" name="CUSTOMER_MOBILE_COUNTRY" size=5 value="${requestParameters.CUSTOMER_MOBILE_COUNTRY?if_exists}"></td> - <td><input type="text" name="CUSTOMER_MOBILE_AREA" size=5 value="${requestParameters.CUSTOMER_MOBILE_AREA?if_exists}"></td> - <td><input type="text" name="CUSTOMER_MOBILE_CONTACT" value="${requestParameters.CUSTOMER_MOBILE_CONTACT?if_exists}"></td> - <td></td> - <td> - <select name="CUSTOMER_MOBILE_ALLOW_SOL"> - <#if (((requestParameters.CUSTOMER_MOBILE_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if> - <#if (((requestParameters.CUSTOMER_MOBILE_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if> - <option></option> - <option value="Y">${uiLabelMap.CommonY}</option> - <option value="N">${uiLabelMap.CommonN}</option> - </select> - </td> - </tr> - </tbody> - </table> - + <table summary="Tabular form for entering multiple telecom numbers for different purposes. Each row allows user to enter telecom number for a purpose"> + <thead> + <tr> + <th></th> + <th scope="col">${uiLabelMap.PartyCountry}</th> + <th scope="col">${uiLabelMap.PartyAreaCode}</th> + <th scope="col">${uiLabelMap.PartyContactNumber}</th> + <th scope="col">${uiLabelMap.PartyExtension}</th> + <th scope="col">${uiLabelMap.PartyAllowSolicitation}</th> + </tr> + </thead> + <tbody> + <tr> + <th scope="row">${uiLabelMap.PartyHomePhone}</th> + <td><input type="text" name="CUSTOMER_HOME_COUNTRY" size=5 value="${requestParameters.CUSTOMER_HOME_COUNTRY?if_exists}"></td> + <td><input type="text" name="CUSTOMER_HOME_AREA" size=5 value="${requestParameters.CUSTOMER_HOME_AREA?if_exists}"></td> + <td><input type="text" name="CUSTOMER_HOME_CONTACT" value="${requestParameters.CUSTOMER_HOME_CONTACT?if_exists}"></td> + <td><input type="text" name="CUSTOMER_HOME_EXT" size=6 value="${requestParameters.CUSTOMER_HOME_EXT?if_exists}"></td> + <td> + <select name="CUSTOMER_HOME_ALLOW_SOL"> + <#if (((requestParameters.CUSTOMER_HOME_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if> + <#if (((requestParameters.CUSTOMER_HOME_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if> + <option></option> + <option value="Y">${uiLabelMap.CommonY}</option> + <option value="N">${uiLabelMap.CommonN}</option> + </select> + </td> + </tr> + <tr> + <th scope="row">${uiLabelMap.PartyBusinessPhone}</th> + <td><input type="text" name="CUSTOMER_WORK_COUNTRY" size=5 value="${requestParameters.CUSTOMER_WORK_COUNTRY?if_exists}"></td> + <td><input type="text" name="CUSTOMER_WORK_AREA" size=5 value="${requestParameters.CUSTOMER_WORK_AREA?if_exists}"></td> + <td><input type="text" name="CUSTOMER_WORK_CONTACT" value="${requestParameters.CUSTOMER_WORK_CONTACT?if_exists}"></td> + <td><input type="text" name="CUSTOMER_WORK_EXT" size=6 value="${requestParameters.CUSTOMER_WORK_EXT?if_exists}"></td> + <td> + <select name="CUSTOMER_WORK_ALLOW_SOL"> + <#if (((requestParameters.CUSTOMER_WORK_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if> + <#if (((requestParameters.CUSTOMER_WORK_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if> + <option></option> + <option value="Y">${uiLabelMap.CommonY}</option> + <option value="N">${uiLabelMap.CommonN}</option> + </select> + </td> + </tr> + <tr> + <th scope="row">${uiLabelMap.PartyFaxNumber}</th> + <td><input type="text" name="CUSTOMER_FAX_COUNTRY" size=5 value="${requestParameters.CUSTOMER_FAX_COUNTRY?if_exists}"></td> + <td><input type="text" name="CUSTOMER_FAX_AREA" size=5 value="${requestParameters.CUSTOMER_FAX_AREA?if_exists}"></td> + <td><input type="text" name="CUSTOMER_FAX_CONTACT" value="${requestParameters.CUSTOMER_FAX_CONTACT?if_exists}"></td> + <td></td> + <td> + <select name="CUSTOMER_FAX_ALLOW_SOL"> + <#if (((requestParameters.CUSTOMER_FAX_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if> + <#if (((requestParameters.CUSTOMER_FAX_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if> + <option></option> + <option value="Y">${uiLabelMap.CommonY}</option> + <option value="N">${uiLabelMap.CommonN}</option> + </select> + </td> + </tr> + <tr> + <th scope="row">${uiLabelMap.PartyMobilePhone}</th> + <td><input type="text" name="CUSTOMER_MOBILE_COUNTRY" size=5 value="${requestParameters.CUSTOMER_MOBILE_COUNTRY?if_exists}"></td> + <td><input type="text" name="CUSTOMER_MOBILE_AREA" size=5 value="${requestParameters.CUSTOMER_MOBILE_AREA?if_exists}"></td> + <td><input type="text" name="CUSTOMER_MOBILE_CONTACT" value="${requestParameters.CUSTOMER_MOBILE_CONTACT?if_exists}"></td> + <td></td> + <td> + <select name="CUSTOMER_MOBILE_ALLOW_SOL"> + <#if (((requestParameters.CUSTOMER_MOBILE_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if> + <#if (((requestParameters.CUSTOMER_MOBILE_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if> + <option></option> + <option value="Y">${uiLabelMap.CommonY}</option> + <option value="N">${uiLabelMap.CommonN}</option> + </select> + </td> + </tr> + </tbody> + </table> </fieldset> - + <fieldset class="col"> - <legend>${uiLabelMap.PartyEmailAddress}</legend> - <div class="form-row"> - <label for= "CUSTOMER_EMAIL">${uiLabelMap.PartyEmailAddress}*</label> - <@fieldErrors fieldName="CUSTOMER_EMAIL"/> - <input type="text" name="CUSTOMER_EMAIL" value="${requestParameters.CUSTOMER_EMAIL?if_exists}" onchange="changeEmail()" onkeyup="changeEmail()"> - </div> - <div class="form-row"> - <label for="CUSTOMER_EMAIL_ALLOW_SOL">${uiLabelMap.PartyAllowSolicitation}</label> - <select name="CUSTOMER_EMAIL_ALLOW_SOL"> - <#if (((requestParameters.CUSTOMER_EMAIL_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if> - <#if (((requestParameters.CUSTOMER_EMAIL_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if> - <option></option> - <option value="Y">${uiLabelMap.CommonY}</option> - <option value="N">${uiLabelMap.CommonN}</option> - </select> - </div> + <legend>${uiLabelMap.PartyEmailAddress}</legend> + <div class="form-row"> + <label for= "CUSTOMER_EMAIL">${uiLabelMap.PartyEmailAddress}*</label> + <@fieldErrors fieldName="CUSTOMER_EMAIL"/> + <input type="text" name="CUSTOMER_EMAIL" value="${requestParameters.CUSTOMER_EMAIL?if_exists}" onchange="changeEmail()" onkeyup="changeEmail()"> + </div> + <div class="form-row"> + <label for="CUSTOMER_EMAIL_ALLOW_SOL">${uiLabelMap.PartyAllowSolicitation}</label> + <select name="CUSTOMER_EMAIL_ALLOW_SOL"> + <#if (((requestParameters.CUSTOMER_EMAIL_ALLOW_SOL)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if> + <#if (((requestParameters.CUSTOMER_EMAIL_ALLOW_SOL)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if> + <option></option> + <option value="Y">${uiLabelMap.CommonY}</option> + <option value="N">${uiLabelMap.CommonN}</option> + </select> + </div> </fieldset> <fieldset class="col"> - - <legend><#if getUsername>${uiLabelMap.CommonUsername}</#if></legend> - - <#if getUsername> - <@fieldErrors fieldName="USERNAME"/> - - <div class="form-row inline"> - <label for="UNUSEEMAIL"> - <input type="checkbox" class="checkbox" name="UNUSEEMAIL" value="on" onClick="setEmailUsername();" onFocus="setLastFocused(this);"/> ${uiLabelMap.EcommerceUseEmailAddress} - </label> - </div> - - <div class="form-row"> - <label for="USERNAME">${uiLabelMap.CommonUsername}*</label> - <input type="text" name="USERNAME" value="${requestParameters.USERNAME?if_exists}" onFocus="clickUsername();" onchange="changeEmail();"/> - </div> - - </#if> - - </fieldset> - - <fieldset class="col"> - - <legend>${uiLabelMap.CommonPassword}</legend> - - <#if createAllowPassword> - - <div class="form-row"> - <label for="PASSWORD">${uiLabelMap.CommonPassword}*</label> - <@fieldErrors fieldName="PASSWORD"/> - <input type="password" name="PASSWORD" onFocus="setLastFocused(this);"/> - </div> - - <div class="form-row"> - <label for="CONFIRM_PASSWORD">${uiLabelMap.PartyRepeatPassword}*</label> - <@fieldErrors fieldName="CONFIRM_PASSWORD"/> - <input type="password" class='inputBox' name="CONFIRM_PASSWORD" value="" maxlength="50"/> - </div> - - <div class="form-row"> - <label for="PASSWORD_HINT">${uiLabelMap.PartyPasswordHint}</label> - <@fieldErrors fieldName="PASSWORD_HINT"/> - <input type="text" class='inputBox' name="PASSWORD_HINT" value="${requestParameters.PASSWORD_HINT?if_exists}" maxlength="100"/> - </div> - - <#else/> - - <div class="form-row"> - <label>${uiLabelMap.PartyReceivePasswordByEmail}.</div> - </div> - - </#if> - + <legend><#if getUsername>${uiLabelMap.CommonUsername}</#if></legend> + <#if getUsername> + <@fieldErrors fieldName="USERNAME"/> + <div class="form-row inline"> + <label for="UNUSEEMAIL"> + <input type="checkbox" class="checkbox" name="UNUSEEMAIL" value="on" onClick="setEmailUsername();" onFocus="setLastFocused(this);"/> ${uiLabelMap.EcommerceUseEmailAddress} + </label> + </div> + + <div class="form-row"> + <label for="USERNAME">${uiLabelMap.CommonUsername}*</label> + <input type="text" name="USERNAME" value="${requestParameters.USERNAME?if_exists}" onFocus="clickUsername();" onchange="changeEmail();"/> + </div> + </#if> + </fieldset> + + <fieldset class="col"> + <legend>${uiLabelMap.CommonPassword}</legend> + <#if createAllowPassword> + <div class="form-row"> + <label for="PASSWORD">${uiLabelMap.CommonPassword}*</label> + <@fieldErrors fieldName="PASSWORD"/> + <input type="password" name="PASSWORD" onFocus="setLastFocused(this);"/> + </div> + + <div class="form-row"> + <label for="CONFIRM_PASSWORD">${uiLabelMap.PartyRepeatPassword}*</label> + <@fieldErrors fieldName="CONFIRM_PASSWORD"/> + <input type="password" class='inputBox' name="CONFIRM_PASSWORD" value="" maxlength="50"/> + </div> + + <div class="form-row"> + <label for="PASSWORD_HINT">${uiLabelMap.PartyPasswordHint}</label> + <@fieldErrors fieldName="PASSWORD_HINT"/> + <input type="text" class='inputBox' name="PASSWORD_HINT" value="${requestParameters.PASSWORD_HINT?if_exists}" maxlength="100"/> + </div> + <#else/> + <div class="form-row"> + <label>${uiLabelMap.PartyReceivePasswordByEmail}.</div> + </div> + </#if> </fieldset> - </form> -<!------------------------------------------------------------------------------ +<#------------------------------------------------------------------------------ To create a consistent look and feel for all buttons, input[type=submit], and a tags acting assubmit buttons, all button actions should have a class name of "button". No other class names should be used to style button actions. -------------------------------------------------------------------------------> <div class="buttons"> - <a href="javascript:document.newuserform.submit()" class="button">${uiLabelMap.CommonSave}</a> - <a href="<@ofbizUrl>checkLogin/main</@ofbizUrl>" class="button reset">${uiLabelMap.CommonBack}</a> + <a href="javascript:document.newuserform.submit()" class="button">${uiLabelMap.CommonSave}</a> + <a href="<@ofbizUrl>checkLogin/main</@ofbizUrl>" class="button reset">${uiLabelMap.CommonBack}</a> </div> <script language="JavaScript" type="text/javascript"> - hideShowUsaStates(); + hideShowUsaStates(); </script> \ No newline at end of file |
Free forum by Nabble | Edit this page |