From c4bd085393dfce88f187d040d0c8a1f247130a8b Mon Sep 17 00:00:00 2001 From: Matt-Yorkley Date: Sun, 27 Nov 2016 14:25:12 +0000 Subject: [PATCH] Added Angular and textAngular to edit product page --- .../products/_form/add_description_wysiwyg.html.haml.deface | 3 ++- app/overrides/spree/admin/products/edit/add_angular.deface | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 app/overrides/spree/admin/products/edit/add_angular.deface diff --git a/app/overrides/spree/admin/products/_form/add_description_wysiwyg.html.haml.deface b/app/overrides/spree/admin/products/_form/add_description_wysiwyg.html.haml.deface index 6b0d5dd7f3..40811cfdd8 100644 --- a/app/overrides/spree/admin/products/_form/add_description_wysiwyg.html.haml.deface +++ b/app/overrides/spree/admin/products/_form/add_description_wysiwyg.html.haml.deface @@ -1,2 +1,3 @@ / replace "[data-hook=admin_product_form_left] code[erb-loud]:contains('f.text_area :description')" -%text-angular{'id' => 'product_description', 'ng-model' => 'product.description', 'name' => 'product[description]', 'class' => 'text-angular', 'ta-toolbar' => "[['bold','italics','underline','clear']]"} \ No newline at end of file +%text-angular{'id' => 'product_description', 'ng-model' => 'product.description', 'name' => 'product[description]', 'class' => 'text-angular', 'ta-toolbar' => "[['bold','italics','underline','clear']]"} + != @product[:description].to_s.html_safe \ No newline at end of file diff --git a/app/overrides/spree/admin/products/edit/add_angular.deface b/app/overrides/spree/admin/products/edit/add_angular.deface new file mode 100644 index 0000000000..926c47c0ec --- /dev/null +++ b/app/overrides/spree/admin/products/edit/add_angular.deface @@ -0,0 +1,2 @@ +add_to_attributes 'fieldset.no-border-top' +attributes 'ng-app' => 'admin.products' \ No newline at end of file