A patch from Tom Burns for "eCommerce Profile Improve Button Naming Consistency" https://issues.apache.org/jira/browse/OFBIZ-4822

In eCommerce the naming and display of back buttons is inconsistent across the Profile Editing screens.
Example:
Changes Password label should be "Go Back" but is "[Go Back]"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1327269 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2012-04-17 20:12:11 +00:00
parent b22661f73d
commit f13b286e70
6 changed files with 38 additions and 37 deletions
@@ -17,9 +17,10 @@ specific language governing permissions and limitations
under the License.
-->
<div class="screenlet">
<h2>${uiLabelMap.PartyChangePassword}</h2>
<a href="<@ofbizUrl>authview/${donePage}</@ofbizUrl>" class="button">[${uiLabelMap.CommonGoBack}]</a>
<a href="javascript:document.getElementById('changepasswordform').submit()" class="button">[${uiLabelMap.CommonSave}]</a>
<h2>${uiLabelMap.PartyChangePassword}</h2>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.getElementById('changepasswordform').submit()" class="button">${uiLabelMap.CommonSave}</a>
<p/>
<div class="screenlet-body">
<form id="changepasswordform" method="post" action="<@ofbizUrl>updatePassword/${donePage}</@ofbizUrl>">
<fieldset>
@@ -19,7 +19,7 @@ under the License.
<#if canNotView>
<h3>${uiLabelMap.AccountingCardInfoNotBelongToYou}.</h3>
<a href="<@ofbizUrl>authview/${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonBack}</a>
<a href="<@ofbizUrl>authview/${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
<#else>
<#if !creditCard?exists>
<h2>${uiLabelMap.AccountingAddNewCreditCard}</h2>
@@ -30,9 +30,10 @@ under the License.
<form method="post" action="<@ofbizUrl>updateCreditCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editcreditcardform">
<div>
<input type="hidden" name="paymentMethodId" value="${paymentMethodId}" />
</#if>
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonCancelDone}</a>
<a href="javascript:document.editcreditcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
</#if>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editcreditcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<p/>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")}
<tr>
@@ -134,9 +135,8 @@ under the License.
</tr>
</table>
</div>
</form>
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonCancelDone}</a>
<a href="javascript:document.editcreditcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
</form>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editcreditcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
</#if>
@@ -19,7 +19,7 @@ under the License.
<#if canNotView>
<p><h3>${uiLabelMap.AccountingEFTNotBelongToYou}.</h3></p>
&nbsp;<a href="<@ofbizUrl>authview/${donePage}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonBack}</a>
&nbsp;<a href="<@ofbizUrl>authview/${donePage}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonGoBack}</a>
<#else>
<#if !eftAccount?exists>
<h1>${uiLabelMap.AccountingAddNewEftAccount}</h1>
@@ -29,9 +29,9 @@ under the License.
<form method="post" action="<@ofbizUrl>updateEftAccount?DONE_PAGE=${donePage}</@ofbizUrl>" name="editeftaccountform" style="margin: 0;">
<input type="hidden" name="paymentMethodId" value="${paymentMethodId}" />
</#if>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonCancelDone}</a>
&nbsp;<a href="javascript:document.editeftaccountform.submit()" class="buttontext">${uiLabelMap.CommonSave}</a>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editeftaccountform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<p/>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.AccountingNameOnAccount}</div></td>
@@ -177,8 +177,7 @@ under the License.
</tr>
</table>
</form>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonCancelDone}</a>
&nbsp;<a href="javascript:document.editeftaccountform.submit()" class="buttontext">${uiLabelMap.CommonSave}</a>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editeftaccountform.submit()" class="button">${uiLabelMap.CommonSave}</a>
</#if>
@@ -19,7 +19,7 @@ under the License.
<#if canNotView>
<p><h3>${uiLabelMap.AccountingCardInfoNotBelongToYou}.</h3></p>
&nbsp;<a href="<@ofbizUrl>authview/${donePage}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonBack}]</a>
&nbsp;<a href="<@ofbizUrl>authview/${donePage}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonGoBack}]</a>
<#else>
<#if !giftCard?exists>
<h1>${uiLabelMap.AccountingAddNewGiftCard}</h1>
@@ -29,9 +29,9 @@ under the License.
<form method="post" action="<@ofbizUrl>updateGiftCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editgiftcardform" style="margin: 0;">
<input type="hidden" name="paymentMethodId" value="${paymentMethodId}" />
</#if>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonCancelDone}]</a>
&nbsp;<a href="javascript:document.editgiftcardform.submit()" class="buttontext">[${uiLabelMap.CommonSave}]</a>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editgiftcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<p/>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.AccountingCardNumber}</div></td>
@@ -107,8 +107,7 @@ under the License.
</td>
</tr>
</table>
</form>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonCancelDone}]</a>
&nbsp;<a href="javascript:document.editgiftcardform.submit()" class="buttontext">[${uiLabelMap.CommonSave}]</a>
</form>
&nbsp;<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editgiftcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
</#if>
@@ -18,15 +18,15 @@ under the License.
-->
<#if person?exists>
<h2>${uiLabelMap.PartyEditPersonalInformation}</h2>
<form method="post" action="<@ofbizUrl>updatePerson/${donePage}</@ofbizUrl>" name="editpersonform">
&nbsp;<form id="editpersonform1" method="post" action="<@ofbizUrl>updatePerson</@ofbizUrl>" name="editpersonform">
<#else>
<h2>${uiLabelMap.PartyAddNewPersonalInformation}</h2>
<form method="post" action="<@ofbizUrl>createPerson/${donePage}</@ofbizUrl>" name="editpersonform">
&nbsp;<form id="editpersonform2" method="post" action="<@ofbizUrl>createPerson/${donePage}</@ofbizUrl>" name="editpersonform">
</#if>
<div>
<a href='<@ofbizUrl>authview/${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
<a href="javascript:document.editpersonform.submit()" class="button">${uiLabelMap.CommonSave}</a>
&nbsp;<a href='<@ofbizUrl>authview/${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editpersonform.submit()" class="button">${uiLabelMap.CommonSave}</a>
<p/>
<input type="hidden" name="partyId" value="${person.partyId?if_exists}" />
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
@@ -174,6 +174,5 @@ under the License.
</table>
</div>
</form>
<a href='<@ofbizUrl>authview/${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
<a href="javascript:document.editpersonform.submit()" class="button">${uiLabelMap.CommonSave}</a>
&nbsp;<a href='<@ofbizUrl>authview/${donePage}</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a id="editpersonform3" href="javascript:document.editpersonform.submit()" class="button">${uiLabelMap.CommonSave}</a>
@@ -93,6 +93,9 @@ will generally always be reserved for the logo at the top of the page.
</#if>
</#macro>
&nbsp;<a href="<@ofbizUrl>checkLogin/main</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.getElementById('newuserform').submit()" class="button">${uiLabelMap.CommonSave}</a>
<form method="post" action="<@ofbizUrl>createcustomer${previousParams}</@ofbizUrl>" id="newuserform">
@@ -396,9 +399,9 @@ and a tags acting as submit 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.getElementById('newuserform').submit()">${uiLabelMap.CommonSave}</a>
<a href="<@ofbizUrl>checkLogin/main</@ofbizUrl>" class="reset">${uiLabelMap.CommonBack}</a>
<div class="buttons">
&nbsp;<a href="<@ofbizUrl>checkLogin/main</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.getElementById('newuserform').submit()" class="button">${uiLabelMap.CommonSave}</a>
</div>
<script type="text/javascript">