Sha256: 38abddb69c2789d8461f29ec1c19f5bd8216879a84af60c27237929f4f77fa90

Contents?: true

Size: 1007 Bytes

Versions: 31

Compression:

Stored size: 1007 Bytes

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 %>"
>
  <%= 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

31 entries across 31 versions & 1 rubygems

Version Path
avo-3.1.3 app/components/avo/index/grid_item_component.html.erb
avo-3.1.2 app/components/avo/index/grid_item_component.html.erb
avo-3.1.1 app/components/avo/index/grid_item_component.html.erb
avo-3.1.0 app/components/avo/index/grid_item_component.html.erb
avo-3.0.8 app/components/avo/index/grid_item_component.html.erb
avo-3.0.7 app/components/avo/index/grid_item_component.html.erb
avo-3.0.6 app/components/avo/index/grid_item_component.html.erb
avo-3.0.5 app/components/avo/index/grid_item_component.html.erb
avo-3.0.4 app/components/avo/index/grid_item_component.html.erb
avo-3.0.3 app/components/avo/index/grid_item_component.html.erb
avo-3.0.2 app/components/avo/index/grid_item_component.html.erb