You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2007/04/22 19:26:35 UTC

svn commit: r531234 - in /ofbiz/trunk/applications: ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml

Author: jleroux
Date: Sun Apr 22 10:26:34 2007
New Revision: 531234

URL: http://svn.apache.org/viewvc?view=rev&rev=531234
Log:
A patch from Nicolas Malin "Update translation dropdown Y/N with CommonY and CommonN" (https://issues.apache.org/jira/browse/OFBIZ-909).

Modified:
    ofbiz/trunk/applications/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl
    ofbiz/trunk/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml

Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl?view=diff&rev=531234&r1=531233&r2=531234
==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl Sun Apr 22 10:26:34 2007
@@ -54,6 +54,7 @@
           </form>
         <#else>
           <div class="tabletext">${uiLabelMap.EcommerceNoShoppingListsCreate}.</div>
+          <a href="<@o...@ofbizUrl>" class="submenutextright">${uiLabelMap.CommonCreateNew}</a>          
         </#if>
     </div>
 </div>
@@ -101,10 +102,10 @@
                 <td><div class="tableheadtext">${uiLabelMap.EcommercePublic}?</div></td>
                 <td>
                   <select name="isPublic" class="selectBox">
-                    <option>${shoppingList.isPublic}</option>
+                    <option value="${shoppingList.isPublic}"><#if shoppingList.isPublic == "Y">${uiLabelMap.CommonY}<#else>${uiLabelMap.CommonN}</#if></option>
                     <option value="${shoppingList.isPublic}">--</option>
-                    <option>${uiLabelMap.CommonY}</option>
-                    <option>N</option>
+                    <option value="Y">${uiLabelMap.CommonY}</option>
+                    <option value="N">${uiLabelMap.CommonN}</option>
                   </select>
                 </td>
               </tr>
@@ -112,10 +113,10 @@
                 <td><div class="tableheadtext">${uiLabelMap.EcommerceActive}?</div></td>
                 <td>
                   <select name="isActive" class="selectBox">
-                    <option>${shoppingList.isActive}</option>
+                    <option value="${shoppingList.isActive}"><#if shoppingList.isActive == "Y">${uiLabelMap.CommonY}<#else>${uiLabelMap.CommonN}</#if></option>
                     <option value="${shoppingList.isActive}">--</option>
-                    <option>${uiLabelMap.CommonY}</option>
-                    <option>N</option>
+                    <option value="Y">${uiLabelMap.CommonY}</option>
+                    <option value="N">${uiLabelMap.CommonN}</option>
                   </select>
                 </td>
               </tr>

Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml?view=diff&rev=531234&r1=531233&r2=531234
==============================================================================
--- ofbiz/trunk/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml (original)
+++ ofbiz/trunk/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml Sun Apr 22 10:26:34 2007
@@ -47,7 +47,8 @@
         </if-empty>
                 
         <if-empty field-name="listName" map-name="newEntity">
-            <set value="New Shopping List" field="newEntity.listName"/>
+            <property-to-field field-name="newEntity.listName" 
+                resource="EcommerceUiLabels" property="EcommerceNewShoppingList" default="New Shopping List"/>
         </if-empty>
         
         <if-empty field-name="isPublic" map-name="newEntity">