Sha256: 58ea53fc91a3e1c221ecc19a043338de4a96b61fd214a1b9f5dfba6683bf4867

Contents?: true

Size: 1.34 KB

Versions: 3

Compression:

Stored size: 1.34 KB

Contents

<%= turbo_frame_tag :edit_refund_reason_modal do %>
  <%= render component("ui/modal").new(title: t(".title")) do |modal| %>
    <%= form_for @refund_reason, url: solidus_admin.refund_reason_path(@refund_reason), html: { id: form_id } do |f| %>
      <div class="flex flex-col gap-6 pb-4">
        <%= render component("ui/forms/field").text_field(f, :name, class: "required") %>
        <%= render component("ui/forms/field").text_field(f, :code, class: "required") %>
        <label class="flex gap-2 items-center">
          <%= hidden_field_tag "#{f.object_name}[active]", "0" %>
          <%= render component("ui/forms/checkbox").new(
            name: "#{f.object_name}[active]",
            value: "1",
            checked: f.object.active
          ) %>
          <span class="font-semibold text-xs ml-2"><%= Spree::RefundReason.human_attribute_name :active %></span>
          <%= render component("ui/toggletip").new(text: t(".hints.active")) %>
        </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("refund_reasons/index").new(page: @page) %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/refund_reasons/edit/component.html.erb
solidus_admin-0.3.1 app/components/solidus_admin/refund_reasons/edit/component.html.erb
solidus_admin-0.3.0 app/components/solidus_admin/refund_reasons/edit/component.html.erb