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