Sha256: 7bfa4e7c057241e04a97a642c2a970c651e664fd64cc8697e70500b15725e008

Contents?: true

Size: 1008 Bytes

Versions: 32

Compression:

Stored size: 1008 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

32 entries across 32 versions & 1 rubygems

Version Path
avo-3.0.1.beta23 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta20 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta21 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta17 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta22 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta18 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta19 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta24 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta15 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta16 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta14 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta12 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta13 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta10 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta11 app/components/avo/index/grid_item_component.html.erb
avo-3.0.0.pre19 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta8 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta9 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta6 app/components/avo/index/grid_item_component.html.erb
avo-3.0.1.beta7 app/components/avo/index/grid_item_component.html.erb