Skip to content

Commit

Permalink
Merge pull request #81 from tvdeyen/fix-dom-ids-of-ingredient-editors
Browse files Browse the repository at this point in the history
Fix DOM ids of ingredient editors
  • Loading branch information
tvdeyen authored Aug 11, 2021
2 parents 3bfebb3 + 4628727 commit be35ec4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<%= ingredient_label(spree_product_editor, :product_id) %>
<%= f.text_field :product_id,
value: spree_product_editor.product&.id,
id: spree_product_editor.form_field_id(:product_id),
class: 'alchemy_selectbox full_width' %>
<% end %>
<% end %>
Expand Down
1 change: 1 addition & 0 deletions app/views/alchemy/ingredients/_spree_taxon_editor.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<%= ingredient_label(spree_taxon_editor, :taxon_id) %>
<%= f.text_field :taxon_id,
value: spree_taxon_editor.taxon&.id,
id: spree_taxon_editor.form_field_id(:taxon_id),
class: 'alchemy_selectbox full_width' %>
<% end %>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<%= ingredient_label(spree_variant_editor, :variant_id) %>
<%= f.text_field :variant_id,
value: spree_variant_editor.variant&.id,
id: spree_variant_editor.form_field_id(:variant_id),
class: 'alchemy_selectbox full_width' %>
<% end %>
<% end %>
Expand Down

0 comments on commit be35ec4

Please sign in to comment.