Sha256: 8040a708675c319a4620601aadd64bec5b741676438f1252a465323e8ce5e3b5
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
<% if @resources.present? %> <turbo-frame id="<%= @resource.model_key %>_list" target="_top" class="relative w-full"> <div class="w-full grid grid-cols-1 xs:grid-cols-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-6 gap-6 mt-8" <%= drag_reorder_attributes %> data-component-name="<%= self.class.to_s.underscore %>" data-selected-resources-name="<%= @resource.model_key %>" data-selected-resources="[]"> <% @resources.each_with_index do |resource, index| %> <% cache_if Avo.configuration.cache_resources_on_index_view, resource.cache_hash(@parent_record) do %> <%= render(Avo::Index::GridItemComponent.new(resource: resource, reflection: @reflection, parent_record: @parent_record, parent_resource: @parent_resource, actions: actions)) %> <% end %> <% end %> </div> </turbo-frame> <% else %> <div class="bg-white rounded shadow-panel" data-component-name="<%= self.class.to_s.underscore %>"> <%= helpers.empty_state by_association: params[:related_name].present?, view_type: :grid %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
avo-3.5.1 | app/components/avo/index/resource_grid_component.html.erb |
avo-3.5.0 | app/components/avo/index/resource_grid_component.html.erb |