<%= turbo_frame_tag :new_adjustment_reason_modal do %> <%= render component("ui/modal").new(title: t(".title")) do |modal| %> <%= form_for @adjustment_reason, url: solidus_admin.adjustment_reasons_path, html: { id: form_id } do |f| %>
<%= render component("ui/forms/field").text_field(f, :name, class: "required") %> <%= render component("ui/forms/field").text_field(f, :code, class: "required") %>
<% modal.with_actions do %>
<%= render component("ui/button").new(scheme: :secondary, text: t('.cancel')) %>
<%= render component("ui/button").new(form: form_id, type: :submit, text: t('.submit')) %> <% end %> <% end %> <% end %> <% end %> <%= render component("adjustment_reasons/index").new(page: @page) %>