svn commit: r1855088 - in /ofbiz/ofbiz-plugins/trunk/ecommerce/template: catalog/ConfigProductDetail.ftl catalog/ProductSummary.ftl forum/ForumPaging.ftl forum/MessageDisplay.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1855088 - in /ofbiz/ofbiz-plugins/trunk/ecommerce/template: catalog/ConfigProductDetail.ftl catalog/ProductSummary.ftl forum/ForumPaging.ftl forum/MessageDisplay.ftl

Deepak Dixit-5
Author: deepak
Date: Sat Mar  9 06:37:00 2019
New Revision: 1855088

URL: http://svn.apache.org/viewvc?rev=1855088&view=rev
Log:
Improved: UI improvement at Configurable Product detail page
(OFBIZ-10578)
Thanks  Nitish Mishra and Parakh Maheshwari for your contribution

Modified:
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ConfigProductDetail.ftl
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ProductSummary.ftl
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/forum/ForumPaging.ftl
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/forum/MessageDisplay.ftl

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ConfigProductDetail.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ConfigProductDetail.ftl?rev=1855088&r1=1855087&r2=1855088&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ConfigProductDetail.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ConfigProductDetail.ftl Sat Mar  9 06:37:00 2019
@@ -363,8 +363,8 @@ ${virtualJavaScript!}
             <#assign hiddenStyle = "hidden">
           </#if>
           <div id="add_amount" class="${hiddenStyle}">
-            <span style="white-space: nowrap;"><b>Amount:</b></span>&nbsp;
-            <input type="text" size="5" name="add_amount" value=""/>
+            <label>Amount</label>
+            <input type="text" size="5" class="form-control mb-2" name="add_amount" value=""/>
           </div>
           <#if !configwrapper.isCompleted()>
             <div>[${uiLabelMap.EcommerceProductNotConfigured}]&nbsp;

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ProductSummary.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ProductSummary.ftl?rev=1855088&r1=1855087&r2=1855088&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ProductSummary.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ProductSummary.ftl Sat Mar  9 06:37:00 2019
@@ -74,13 +74,13 @@
 
               <div class="col-md-4 products-card">
                 <div class="card text-center">
-                  <a href="${productUrl}">
+                  <a href="${productUrl}" class="mt-2">
                     <img class="card-img-top" src="<@ofbizContentUrl>${contentPathPrefix!}${smallImageUrl}</@ofbizContentUrl>" alt="Small Image">
                   </a>
                   <div class="card-body">
                     <h4 class="card-title"><a href="${productUrl}" class="btn btn-link">${productContentWrapper.get("PRODUCT_NAME", "html")!}</a></h4>
                     <div class="cart-text">
-                      <div>${productContentWrapper.get("DESCRIPTION", "html")!}<#if daysToShip??>&nbsp;-&nbsp;${uiLabelMap.ProductUsuallyShipsIn} <b>${daysToShip}</b> ${uiLabelMap.CommonDays}!</#if></div>
+                      ${productContentWrapper.get("DESCRIPTION", "html")!}<#if daysToShip??>&nbsp;-&nbsp;${uiLabelMap.ProductUsuallyShipsIn} <b>${daysToShip}</b> ${uiLabelMap.CommonDays}!</#if>
 
                       <#-- Display category-specific product comments -->
                         <#if prodCatMem?? && prodCatMem.comments?has_content>
@@ -119,7 +119,7 @@
                               ${uiLabelMap.ProductListPrice}: <span class="basePrice"><@ofbizCurrency amount=price.listPrice isoCode=price.currencyUsed/></span>
                             </p>
   </#if>
-  <b>
+    <strong>
     <#if price.isSale?? && price.isSale>
       <p class="badge badge-info">${uiLabelMap.OrderOnSale}!</p>
       <#assign priceStyle = "salePrice">
@@ -130,7 +130,7 @@
     <#if (price.price?default(0) > 0 && "N" == product.requireAmount?default("N"))>
       <p>${uiLabelMap.OrderYourPrice}: <#if "Y" = product.isVirtual!> ${uiLabelMap.CommonFrom} </#if><span class="${priceStyle}"><@ofbizCurrency amount=price.price isoCode=price.currencyUsed/></span></p>
     </#if>
-  </b>
+    </strong>
   <#if price.listPrice?? && price.price?? && price.price?double < price.listPrice?double>
   <#assign priceSaved = price.listPrice?double - price.price?double>
     <#assign percentSaved = (priceSaved?double / price.listPrice?double) * 100>

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/forum/ForumPaging.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/forum/ForumPaging.ftl?rev=1855088&r1=1855087&r2=1855088&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/forum/ForumPaging.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/forum/ForumPaging.ftl Sat Mar  9 06:37:00 2019
@@ -24,10 +24,10 @@ under the License.
 <#if forumMessages?has_content && forumMessages?size gt 0>
   <#assign listSize = forumMessages?size/>
   <#if highIndex gt listSize><#assign highIndex = listSize></#if>
-<div class="product-prevnext">
+<div class="row">
   <#assign r = listSize / viewSize />
   <#assign viewIndexMax = Static["java.lang.Math"].ceil(r)>
-  <select name="pageSelect" class="selectBox" onchange="window.location=this[this.selectedIndex].value;">
+  <select name="pageSelect" class="form-control col-md-6 mb-2" onchange="window.location=this[this.selectedIndex].value;">
     <option value="#">${uiLabelMap.CommonPage} ${viewIndex?int+1} ${uiLabelMap.CommonOf} ${viewIndexMax}</option>
       <#list 1..viewIndexMax as curViewNum>
         <option
@@ -36,7 +36,8 @@ under the License.
         </option>
       </#list>
   </select>
-  <b>
+  </div>
+  <strong class="d-block mb-2">
     <#if (viewIndex?int >0)>
       <a href="<@ofbizUrl>showforum?forumId=${parameters.forumId}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndex?int-1}</@ofbizUrl>"
           class="buttontext">
@@ -44,13 +45,12 @@ under the License.
       </a> |
     </#if>
     <#if (listSize?int > 0)>
-      <span>${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}</span>
+      ${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}
     </#if>
     <#if highIndex?int < listSize?int>
       | <a
         href="<@ofbizUrl>showforum?forumId=${parameters.forumId}&amp;VIEW_SIZE=${viewSize}&amp;VIEW_INDEX=${viewIndex?int+1}</@ofbizUrl>"
         class="buttontext">${uiLabelMap.CommonNext}</a>
     </#if>
-  </b>
-</div>
+  </strong>
 </#if>

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/forum/MessageDisplay.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/forum/MessageDisplay.ftl?rev=1855088&r1=1855087&r2=1855088&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/forum/MessageDisplay.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/forum/MessageDisplay.ftl Sat Mar  9 06:37:00 2019
@@ -26,15 +26,15 @@ under the License.
 <#else>
   <#assign contentId = forumMessage.contentId>
 </#if>
-<div class="tableheadtext">
+<p>
   ${uiLabelMap.CommonTitle} : ${forumMessage.contentName!} ${uiLabelMap.CommonBy}:${forumMessage.createdByUserLogin!}
   ${uiLabelMap.CommonAt}: ${(forumMessage.createdDate.toString().substring(0,16))!}
   <a href="ViewForumMessage?forumId=${parameters.forumId}&amp;responseContentId=${forumMessage.contentId}&amp;threadContentId=${threadContentId!}"
       class="buttontext">${uiLabelMap.CommonView}</a>
-</div>
-<div class="tableheadtext">
+</p>
+<p>
   ${forumMessage.description!}
-</div>
+</p>
 
 <#--
   <#assign result = dispatcher.runSync("getPublicForumMessage", Static["org.apache.ofbiz.base.util.UtilMisc"]