Sha256: c93cec584c470e9ef7326a2893632b2ef1c665a4af1683f160ceb931dbf4a54f

Contents?: true

Size: 768 Bytes

Versions: 38

Compression:

Stored size: 768 Bytes

Contents

<% if item.is_tool? %>
  <% if item&.partial.present? %>
    <%= render item.partial, tool: item, form: @form %>
  <% end %>
<% elsif item.is_panel? %>
  <%= render Avo::PanelComponent.new(name: item.name, description: item.description, index: index) do |c| %>
    <% c.body do %>
      <div class="divide-y">
        <% item.items.each_with_index do |field, index| %>
          <%= render field.hydrate(resource: @resource, model: @resource.model, user: resource.user, view: view).component_for_view(view).new(field: field, resource: @resource, index: index, form: form) %>
        <% end %>
      </div>
    <% end %>
  <% end %>
<% elsif item.is_tab_group? %>
  <%= render tab_group_component %>
<% elsif item.is_field? %>
  <%= render field_component %>
<% end %>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
avo-2.17.1.pre.4.issue.1342 app/components/avo/item_switcher_component.html.erb
avo-2.17.1.pre.3 app/components/avo/item_switcher_component.html.erb
avo-2.17.1.pre.2.customauthorizationclients app/components/avo/item_switcher_component.html.erb
avo-2.17.1.pre.1.zeitwerk.eager.load.dir app/components/avo/item_switcher_component.html.erb
avo-2.17.0 app/components/avo/item_switcher_component.html.erb
avo-2.16.1.pre.1.nativefields app/components/avo/item_switcher_component.html.erb
avo-2.16.0 app/components/avo/item_switcher_component.html.erb
avo-2.15.3 app/components/avo/item_switcher_component.html.erb
avo-2.15.3.pre.1.data.attrs.to.sidebar.items app/components/avo/item_switcher_component.html.erb
avo-2.15.2 app/components/avo/item_switcher_component.html.erb
avo-2.15.2.pre.1 app/components/avo/item_switcher_component.html.erb
avo-2.15.1 app/components/avo/item_switcher_component.html.erb
avo-2.15.0 app/components/avo/item_switcher_component.html.erb
avo-2.14.3.pre.7.polytranslations1 app/components/avo/item_switcher_component.html.erb
avo-2.14.3.pre.6.nosprockets app/components/avo/item_switcher_component.html.erb
avo-2.14.3.pre.5.nosprockets app/components/avo/item_switcher_component.html.erb
avo-2.14.3.pre.4.tosqlfix app/components/avo/item_switcher_component.html.erb
avo-2.14.3.pre.3.jsbundling app/components/avo/item_switcher_component.html.erb
avo-2.14.3.pre.2.tailwindcss app/components/avo/item_switcher_component.html.erb
avo-2.14.3.pre.1.branding app/components/avo/item_switcher_component.html.erb