From ed9c2c446a15150e5888ac2dd86af83d8a66cbe3 Mon Sep 17 00:00:00 2001 From: cbmarcum Date: Sat, 9 Nov 2019 10:06:21 -0500 Subject: [PATCH] Refs #81 - changed noImage to noImageLarge and added noImageSmall. only needed for this branch. --- .../mybusiness/ProductController.groovy | 6 +- grails-app/views/product/index.gsp | 131 +++++++++--------- 2 files changed, 72 insertions(+), 65 deletions(-) diff --git a/grails-app/controllers/net/codebuilders/mybusiness/ProductController.groovy b/grails-app/controllers/net/codebuilders/mybusiness/ProductController.groovy index 3dcba73..ca4ffb1 100644 --- a/grails-app/controllers/net/codebuilders/mybusiness/ProductController.groovy +++ b/grails-app/controllers/net/codebuilders/mybusiness/ProductController.groovy @@ -306,11 +306,13 @@ class ProductController { def notices = noticeService.getCurrentNoticesByPage("Product") // used for no-image if a product is missing one. - def noImage = Photo.findByName("no-image")?.photo?.getCloudFile("large") + def noImageLarge = Photo.findByName("no-image")?.photo?.getCloudFile("large") + def noImageSmall = Photo.findByName("no-image")?.photo?.getCloudFile("small") // render(view:'index', model: [message: 'Hello world', result: result, fieldsList: indexedProperties.keySet()]) - respond productList, model: [productCategory: productCategory, productCount: productCount, noticeList: notices, noImage: noImage] + respond productList, model: [productCategory: productCategory, productCount: productCount, + noticeList: notices, noImageLarge: noImageLarge, noImageSmall: noImageSmall] } diff --git a/grails-app/views/product/index.gsp b/grails-app/views/product/index.gsp index df9893f..ef7af3a 100644 --- a/grails-app/views/product/index.gsp +++ b/grails-app/views/product/index.gsp @@ -1,71 +1,76 @@ - - - - - - - - - + + + + + + + + + - <g:message code="default.list.label" args="[entityName]"/> + <g:message code="default.list.label" args="[entityName]"/> - + - + -
+
- - - - + + + + -
-
-

  ${entityCategory} -

-
+
+
+

  ${entityCategory} +

+
-
- -
+
+ +
-
<%-- /.row --%> +
<%-- /.row --%> - + - + -
Hover over image to zoom
+
Hover over image to zoom
-
- +
+
- - - - - - - + + + + + + + + + + + - + + - - - -
+
- SKU: + SKU: ${product.number}
-
- + + ${product.number}
-
- ${product?.name}
+
+ ${product?.name}
${product?.shortDescription}
List Price:
+ currencyCode="USD"/>
Product details and variations
@@ -75,30 +80,30 @@ Product details
-
-
+ + + + +
- -
- -
-
+ +
+ +
+
-
+ - + }); + \ No newline at end of file