Sha256: 83d4a1208920199a2bc5251fae1f33cff193e029ef8d53feb271d98f20d9eec6

Contents?: true

Size: 1.79 KB

Versions: 25

Compression:

Stored size: 1.79 KB

Contents

<%# hover:z-[21] removed from tr class to solve flickering actions component on row controls and z-20 changed to z-21%>
<tr
  class="bg-white hover:bg-gray-50 hover:shadow-row z-21 border-b"
  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 %>"
>
  <% if @resource.record_selector %>
    <td class="w-10">
      <div class="flex justify-center h-full">
        <%= item_selector_input floating: false %>
      </div>
    </td>
  <% end %>
  <% if Avo.configuration.resource_controls_on_the_left? %>
    <td class="text-right whitespace-nowrap px-2" data-control="resource-controls">
      <div class="flex items-center justify-end flex-grow-0 h-full w-full">
        <%= render(Avo::Index::ResourceControlsComponent.new(resource: @resource, reflection: @reflection, parent_record: @parent_record, parent_resource: @parent_resource, view_type: :table, actions: @actions)) %>
      </div>
    </td>
  <% end %>
  <% @resource.get_fields(reflection: @reflection, only_root: true).each_with_index do |field, index| %>
    <%= render field.component_for_view(:index).new(field: field, resource: @resource, reflection: @reflection, index: index, parent_record: @parent_record, parent_resource: @parent_resource) %>
  <% end %>
  <% if Avo.configuration.resource_controls_on_the_right? %>
    <td class="text-right whitespace-nowrap px-2" data-control="resource-controls">
      <div class="flex items-center justify-end flex-grow-0 h-full w-full">
        <%= render(Avo::Index::ResourceControlsComponent.new(resource: @resource, reflection: @reflection, parent_record: @parent_record, parent_resource: @parent_resource, view_type: :table, actions: @actions)) %>
      </div>
    </td>
  <% end %>
</tr>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
avo-3.4.4 app/components/avo/index/table_row_component.html.erb
avo-3.4.3 app/components/avo/index/table_row_component.html.erb
avo-3.4.2 app/components/avo/index/table_row_component.html.erb
avo-3.4.1 app/components/avo/index/table_row_component.html.erb
avo-3.4.0 app/components/avo/index/table_row_component.html.erb
avo-3.3.6 app/components/avo/index/table_row_component.html.erb
avo-3.3.5 app/components/avo/index/table_row_component.html.erb
avo-3.3.4 app/components/avo/index/table_row_component.html.erb
avo-3.3.3 app/components/avo/index/table_row_component.html.erb
avo-3.3.2 app/components/avo/index/table_row_component.html.erb
avo-3.3.1 app/components/avo/index/table_row_component.html.erb
avo-3.3.0 app/components/avo/index/table_row_component.html.erb
avo-3.2.3 app/components/avo/index/table_row_component.html.erb
avo-3.2.2 app/components/avo/index/table_row_component.html.erb
avo-3.2.1 app/components/avo/index/table_row_component.html.erb
avo-3.2.0 app/components/avo/index/table_row_component.html.erb
avo-3.1.7 app/components/avo/index/table_row_component.html.erb
avo-3.1.6 app/components/avo/index/table_row_component.html.erb
avo-3.1.5 app/components/avo/index/table_row_component.html.erb
avo-3.1.4 app/components/avo/index/table_row_component.html.erb