Sha256: cae24e28d10534b12e9075858c4e1020b38e3d0833ac5d2482e792855c914d1c
Contents?: true
Size: 1.36 KB
Versions: 3
Compression:
Stored size: 1.36 KB
Contents
<%= 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| %> <div class="flex flex-col gap-6 pb-4"> <%= 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) %> <label class="flex gap-2 items-center"> <%= render component("ui/forms/checkbox").new( name: "#{f.object_name}[is_default]", value: "1", checked: f.object.is_default ) %> <span class="font-semibold text-xs ml-2"><%= Spree::TaxCategory.human_attribute_name :is_default %></span> <%= render component("ui/toggletip").new(text: t(".hints.is_default")) %> </label> </div> <% modal.with_actions do %> <form method="dialog"> <%= render component("ui/button").new(scheme: :secondary, text: t('.cancel')) %> </form> <%= 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) %>
Version data entries
3 entries across 3 versions & 1 rubygems