Sha256: 2ed7aefd8fb010cfe854015a960a844a1fdb73b43cf31ee18a9a8f150332dc96

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

<div
  class="relative bg-white rounded shadow-modal flex flex-col group"
  data-component-name="<%= self.class.to_s.underscore %>"
  <%== item_selector_init @resource %>
  data-resource-name="<%= @resource.class.to_s %>"
  data-record-id="<%= @resource.record.id %>"
  <%= drag_reorder_item_attributes %>
>
  <%= content_tag :div,
    class: "relative w-full pb-3/4 rounded-t overflow-hidden #{html(:cover, :classes)}",
    style: html(:cover, :style) do %>
    <%= item_selector_input(floating: true, size: :lg) if @resource.record_selector%>
    <%= render_cover %>
  <% end %>
  <div class="grid grid-cols-1 place-content-between p-4 h-full">
    <div class="mb-4 h-full flex flex-col space-between">
      <%= render_title %>
      <%= render_body %>
    </div>
    <div class="w-full place-self-end">
      <%= render(Avo::Index::ResourceControlsComponent.new(resource: @resource, reflection: @reflection, parent_record: @parent_record, parent_resource: @parent_resource, view_type: :grid, actions: actions)) %>
    </div>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
avo-3.5.1 app/components/avo/index/grid_item_component.html.erb
avo-3.5.0 app/components/avo/index/grid_item_component.html.erb