From f25e4fab288875db6986eb6550cb84b18ba197fa Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 8 Jun 2019 15:50:16 -0500 Subject: [PATCH] Tweak structure of "view product" page to support Buefy, context menu --- tailbone/templates/products/view.mako | 111 ++++++++++++++++---------- 1 file changed, 68 insertions(+), 43 deletions(-) diff --git a/tailbone/templates/products/view.mako b/tailbone/templates/products/view.mako index 6836c974..96f61b2c 100644 --- a/tailbone/templates/products/view.mako +++ b/tailbone/templates/products/view.mako @@ -276,63 +276,88 @@ <%def name="extra_right_panels()"> -<%def name="render_form()"> +<%def name="render_form_complete()"> % if use_buefy: -
+ ${self.render_form()} + +
+
- % else: -
-
-

Product

-
-
-
- ${self.render_main_fields(form)} -
-
- % if image_url: - ${h.image(image_url, "Product Image", id='product-image', width=150, height=150)} - % endif + % else: + ## legacy / not buefy + +
+ +
+ +
+

Product

+
+
+
+ ${self.render_main_fields(form)} +
+
+ % if image_url: + ${h.image(image_url, "Product Image", id='product-image', width=150, height=150)} + % endif +
+ +
+
+ ${self.left_column()} +
+
+ ${self.right_column()} +
+
+
-
-
- ${self.left_column()} -
-
- ${self.right_column()} -
-
+
    + ${self.context_menu_items()} +
% endif