From 7981feefa165ae2cefc4a25907251273476a4006 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley Date: Mon, 28 Nov 2016 14:38:13 +0000 Subject: [PATCH] Updated form to include help tip for clarity --- app/assets/javascripts/admin/products/products.js.coffee | 2 +- app/overrides/spree/admin/variants/_form/add_angular.deface | 2 ++ .../admin/variants/_form/on_demand_tooltip.html.haml.deface | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 app/overrides/spree/admin/variants/_form/add_angular.deface create mode 100644 app/overrides/spree/admin/variants/_form/on_demand_tooltip.html.haml.deface diff --git a/app/assets/javascripts/admin/products/products.js.coffee b/app/assets/javascripts/admin/products/products.js.coffee index e922d40a34..1952c8dded 100644 --- a/app/assets/javascripts/admin/products/products.js.coffee +++ b/app/assets/javascripts/admin/products/products.js.coffee @@ -1 +1 @@ -angular.module("admin.products", []) \ No newline at end of file +angular.module("admin.products", ["admin.utils"]) \ No newline at end of file diff --git a/app/overrides/spree/admin/variants/_form/add_angular.deface b/app/overrides/spree/admin/variants/_form/add_angular.deface new file mode 100644 index 0000000000..507e821e9c --- /dev/null +++ b/app/overrides/spree/admin/variants/_form/add_angular.deface @@ -0,0 +1,2 @@ +add_to_attributes '[data-hook="admin_variant_form_fields"]' +attributes 'ng-app' => 'admin.products' \ No newline at end of file diff --git a/app/overrides/spree/admin/variants/_form/on_demand_tooltip.html.haml.deface b/app/overrides/spree/admin/variants/_form/on_demand_tooltip.html.haml.deface new file mode 100644 index 0000000000..3827bdaac5 --- /dev/null +++ b/app/overrides/spree/admin/variants/_form/on_demand_tooltip.html.haml.deface @@ -0,0 +1,3 @@ +/ insert_bottom "[data-hook='on_demand']" +%div{'ofn-with-tip' => "Items made to order do not have a set stock level, such as loaves of bread made fresh to order."} + %a What's this? \ No newline at end of file