diff --git a/app/views/spree/admin/products/new.html.haml b/app/views/spree/admin/products/new.html.haml index c5ec3e3cdf..f807a7348e 100644 --- a/app/views/spree/admin/products/new.html.haml +++ b/app/views/spree/admin/products/new.html.haml @@ -62,7 +62,8 @@ "question-mark-with-tooltip-placement" => "top", "question-mark-with-tooltip-animation" => true, key: "'js.admin.unit_price_tooltip'"} - = f.text_field :price, {"class" => 'fullwidth', "disabled" => true, "ng-model" => "unit_price"} + %input{ "type" => "text", "id" => "product_unit_price", "name" => "product[unit_price]", + "class" => 'fullwidth', "disabled" => true, "ng-model" => "unit_price"} %div{style: "color: black"} = t(".unit_price_legend") .sixteen.columns.alpha diff --git a/app/views/spree/admin/variants/_form.html.haml b/app/views/spree/admin/variants/_form.html.haml index 54017cc9f4..0b2598363c 100644 --- a/app/views/spree/admin/variants/_form.html.haml +++ b/app/views/spree/admin/variants/_form.html.haml @@ -46,7 +46,8 @@ "question-mark-with-tooltip-placement" => "top", "question-mark-with-tooltip-animation" => true, key: "'js.admin.unit_price_tooltip'"} - = f.text_field :price, {"class" => 'fullwidth', "disabled" => true, "ng-model" => "unit_price"} + %input{ "type" => "text", "id" => "variant_unit_price", "name" => "variant[unit_price]", + "class" => 'fullwidth', "disabled" => true, "ng-model" => "unit_price"} %div{style: "color: black"} = t("spree.admin.products.new.unit_price_legend") %div{ 'set-on-demand' => '' }