You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by su...@apache.org on 2020/05/23 05:34:09 UTC
[ofbiz-plugins] branch trunk updated: Improved: Improvement of
Quick Add screen according to new bootstrap framework. (OFBIZ-11386) Thanks
Nitish Mishra for reporting and providing the patch.
This is an automated email from the ASF dual-hosted git repository.
surajk pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git
The following commit(s) were added to refs/heads/trunk by this push:
new ade15ec Improved: Improvement of Quick Add screen according to new bootstrap framework. (OFBIZ-11386) Thanks Nitish Mishra for reporting and providing the patch.
ade15ec is described below
commit ade15ec80a6b241ad2e92ba89ab6bf88f9fde8cf
Author: Suraj Khurana <su...@hotwax.co>
AuthorDate: Sat May 23 11:03:37 2020 +0530
Improved: Improvement of Quick Add screen according to new bootstrap framework.
(OFBIZ-11386)
Thanks Nitish Mishra for reporting and providing the patch.
---
ecommerce/template/order/QuickAdd.ftl | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git a/ecommerce/template/order/QuickAdd.ftl b/ecommerce/template/order/QuickAdd.ftl
index 3491d54..0b49a8e 100644
--- a/ecommerce/template/order/QuickAdd.ftl
+++ b/ecommerce/template/order/QuickAdd.ftl
@@ -16,11 +16,14 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
-
+<div class="card">
<#if productCategory?has_content>
-<h2>${productCategory.categoryName!}</h2>
-<form name="choosequickaddform" method="post" action="<@o...@ofbizUrl>" style='margin: 0;'>
- <select name='category_id'>
+<div class="card-header">
+ <strong>${productCategory.categoryName!}</strong>
+</div>
+<div class="card-body">
+<form name="choosequickaddform" method="post" action="<@o...@ofbizUrl>">
+ <select name='category_id' class="form-control">
<option value='${productCategory.productCategoryId}'>${productCategory.categoryName!}</option>
<option value='${productCategory.productCategoryId}'>--</option>
<#list quickAddCats as quickAddCatalogId>
@@ -30,15 +33,17 @@ under the License.
</#if>
</#list>
</select>
-<div><a href="javascript:document.choosequickaddform.submit()" class="buttontext">${uiLabelMap.ProductChooseQuickAddCategory}</a></div>
+<div class="pt-2 pb-1"><a href="javascript:document.choosequickaddform.submit()" class="buttontext">${uiLabelMap.ProductChooseQuickAddCategory}</a></div>
</form>
<#if productCategory.categoryImageUrl?? || productCategory.longDescription??>
<div>
<#if productCategory.categoryImageUrl??>
<img src="<@o...@ofbizContentUrl>" vspace="5" hspace="5" class="cssImgLarge" alt="" />
</#if>
+<div class="pt-2 pb-1">
${productCategory.longDescription!}
</div>
+</div>
</#if>
</#if>
@@ -47,7 +52,7 @@ ${productCategory.longDescription!}
<fieldset>
<input type='hidden' name='category_id' value='${categoryId}' />
<div class="quickaddall">
- <a href="javascript:document.bulkaddform.submit()" class="buttontext">${uiLabelMap.OrderAddAllToCart}</a>
+ <a href="javascript:document.bulkaddform.submit()" class="btn btn-outline-secondary ml-3">${uiLabelMap.OrderAddAllToCart}</a>
</div>
<div class="quickaddtable">
<#list productCategoryMembers as productCategoryMember>
@@ -58,12 +63,14 @@ ${productCategory.longDescription!}
</p>
</#list>
</div>
- <div class="quickaddall">
- <a href="javascript:document.bulkaddform.submit()" class="buttontext">${uiLabelMap.OrderAddAllToCart}</a>
+ <div class="ml-3">
+ <a href="javascript:document.bulkaddform.submit()" class="btn btn-outline-secondary">${uiLabelMap.OrderAddAllToCart}</a>
</div>
</fieldset>
</form>
<#else>
<label>${uiLabelMap.ProductNoProductsInThisCategory}.</label>
</#if>
+</div>
+</div>