File tree Expand file tree Collapse file tree 4 files changed +16
-16
lines changed
legacy_promotions/lib/components/admin/solidus_admin/promotion_categories
promotions/lib/components/admin/solidus_promotions/promotion_categories Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 11<%= turbo_frame_tag :resource_modal, target: "_top" do %>
22 <%= render component("ui/modal").new(title: t(".title")) do |modal| %>
3- <%= form_for @promotion_category, url: form_url, html: { id: form_id } do |f| %>
3+ <%= solidus_form_for @promotion_category, url: form_url, html: { id: form_id } do |f| %>
44 <div class ="flex flex-col gap-6 pb-4 ">
5- <%= render component ( "ui/forms/field" ) . text_field ( f , :name , class : "required" ) %>
6- <%= render component ( "ui/forms/field" ) . text_field ( f , :code , class : "required" ) %>
5+ <%= f . text_field ( :name , class : "required" ) %>
6+ <%= f . text_field ( :code , class : "required" ) %>
77 </ div >
88 <% modal . with_actions do %>
99 < form method ="dialog ">
1010 <%= render component ( "ui/button" ) . new ( scheme : :secondary , text : t ( '.cancel' ) ) %>
1111 </ form >
12- <%= render component ( "ui/button" ) . new ( form : form_id , type : : submit, text : t ( '.submit' ) ) %>
12+ <%= f . submit ( t ( '.submit' ) ) %>
1313 <% end %>
1414 <% end %>
1515 <% end %>
Original file line number Diff line number Diff line change 11<%= turbo_frame_tag :resource_modal, target: "_top" do %>
22 <%= render component("ui/modal").new(title: t(".title")) do |modal| %>
3- <%= form_for @promotion_category, url: form_url, html: { id: form_id } do |f| %>
3+ <%= solidus_form_for @promotion_category, url: form_url, html: { id: form_id } do |f| %>
44 <div class ="flex flex-col gap-6 pb-4 ">
5- <%= render component ( "ui/forms/field" ) . text_field ( f , :name , class : "required" ) %>
6- <%= render component ( "ui/forms/field" ) . text_field ( f , :code , class : "required" ) %>
5+ <%= f . text_field ( :name , class : "required" ) %>
6+ <%= f . text_field ( :code , class : "required" ) %>
77 </ div >
88 <% modal . with_actions do %>
99 < form method ="dialog ">
1010 <%= render component ( "ui/button" ) . new ( scheme : :secondary , text : t ( '.cancel' ) ) %>
1111 </ form >
12- <%= render component ( "ui/button" ) . new ( form : form_id , type : : submit, text : t ( '.submit' ) ) %>
12+ <%= f . submit ( t ( '.submit' ) ) %>
1313 <% end %>
1414 <% end %>
1515 <% end %>
Original file line number Diff line number Diff line change 11<%= turbo_frame_tag :resource_modal, target: "_top" do %>
22 <%= render component("ui/modal").new(title: t(".title")) do |modal| %>
3- <%= form_for @promotion_category, url: form_url, html: { id: form_id } do |f| %>
3+ <%= solidus_form_for @promotion_category, url: form_url, html: { id: form_id } do |f| %>
44 <div class ="flex flex-col gap-6 pb-4 ">
5- <%= render component ( "ui/forms/field" ) . text_field ( f , :name , class : "required" ) %>
6- <%= render component ( "ui/forms/field" ) . text_field ( f , :code , class : "required" ) %>
5+ <%= f . text_field ( :name , class : "required" ) %>
6+ <%= f . text_field ( :code , class : "required" ) %>
77 </ div >
88 <% modal . with_actions do %>
99 < form method ="dialog ">
1010 <%= render component ( "ui/button" ) . new ( scheme : :secondary , text : t ( '.cancel' ) ) %>
1111 </ form >
12- <%= render component ( "ui/button" ) . new ( form : form_id , type : : submit, text : t ( '.submit' ) ) %>
12+ <%= f . submit ( t ( '.submit' ) ) %>
1313 <% end %>
1414 <% end %>
1515 <% end %>
Original file line number Diff line number Diff line change 11<%= turbo_frame_tag :resource_modal, target: "_top" do %>
22 <%= render component("ui/modal").new(title: t(".title")) do |modal| %>
3- <%= form_for @promotion_category, url: form_url, html: { id: form_id } do |f| %>
3+ <%= solidus_form_for @promotion_category, url: form_url, html: { id: form_id } do |f| %>
44 <div class ="flex flex-col gap-6 pb-4 ">
5- <%= render component ( "ui/forms/field" ) . text_field ( f , :name , class : "required" ) %>
6- <%= render component ( "ui/forms/field" ) . text_field ( f , :code , class : "required" ) %>
5+ <%= f . text_field ( :name , class : "required" ) %>
6+ <%= f . text_field ( :code , class : "required" ) %>
77 </ div >
88 <% modal . with_actions do %>
99 < form method ="dialog ">
1010 <%= render component ( "ui/button" ) . new ( scheme : :secondary , text : t ( '.cancel' ) ) %>
1111 </ form >
12- <%= render component ( "ui/button" ) . new ( form : form_id , type : : submit, text : t ( '.submit' ) ) %>
12+ <%= f . submit ( t ( '.submit' ) ) %>
1313 <% end %>
1414 <% end %>
1515 <% end %>
You can’t perform that action at this time.
0 commit comments