<%= turbo_frame_tag :new_tax_category_modal do %> <%= render component("ui/modal").new(title: t(".title")) do |modal| %> <%= form_for @tax_category, url: solidus_admin.tax_categories_path(page: params[:page], q: params[:q]), html: { id: form_id } do |f| %>
<%= render component("ui/forms/field").text_field(f, :name) %> <%= render component("ui/forms/field").text_field(f, :tax_code) %> <%= render component("ui/forms/field").text_field(f, :description) %>
<% 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("tax_categories/index").new(page: @page) %>