Sha256: 00bed83d8022b765e4187c789e59bc60104f4ec0bb5efd345b3d3cd598297037
Contents?: true
Size: 781 Bytes
Versions: 8
Compression:
Stored size: 781 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(title: item.name, description: item.description, index: index, view: view) 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
8 entries across 8 versions & 1 rubygems