Permalink
Browse files

Fix test controllers/catalog_items#create

  • Loading branch information...
burisu committed Aug 17, 2018
1 parent 4e3001b commit b3c1606c22a6c2d775942e799ab985e2b8213f64
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/views/backend/catalog_items/_form.html.haml
@@ -1,10 +1,12 @@
- f.object.catalog_id = params[:catalog_id] if f.object.new_record?
- all_taxes_included = f.object.catalog.all_taxes_included
= field_set do
= f.association :catalog, as: :hidden
.control-group
%label.control-label= CatalogItem.human_attribute_name(:catalog)
.controls
%strong= f.object.catalog.name
= hidden_field_tag(:catalog_id, f.object.catalog)
= f.referenced_association :variant
= f.input(:amount, wrapper: :append) do
= f.input_field :amount, as: :string, input_html: { pattern: "[0-9]+([\.][0-9]+)?" }

0 comments on commit b3c1606

Please sign in to comment.