Sha256: 45326150f357f0c1d80591e9dcb368bd45af20d66b866d362118606e7939e1c0

Contents?: true

Size: 1.95 KB

Versions: 59

Compression:

Stored size: 1.95 KB

Contents

<div class="flex items-center justify-center">
  <% if display_inline? %>
    <div class="flex max-w-xs rounded">
      <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :higher, svg: 'arrow-up' %>
      <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :lower, svg: 'arrow-down' %>
      <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :to_top, svg: 'download-solid-reversed' %>
      <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :to_bottom, svg: 'download-solid' %>
    </div>
  <% else %>
    <div class="popover inline-block"
      data-controller="popover"
      data-popover-translate-x="-100%"
      data-popover-translate-y="-32px"
      data-action="mouseover->popover#mouseOver mouseout->popover#mouseOut"
      >
      <%= button_tag nil,
        title: t('avo.order.reorder_record').capitalize,
        class: 'flex items-center',
        data: {
          'tippy': 'tooltip',
        } do
      %>
      <%= helpers.svg('switch-vertical', class: 'text-gray-400 h-6 hover:text-gray-600') %>
    <% end %>
    <div class="flex hidden absolute max-w-xs bg-white rounded p-2 z-40" data-popover-target="content">
      <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :higher, svg: 'arrow-up' %>
      <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :lower, svg: 'arrow-down' %>
      <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :to_top, svg: 'download-solid-reversed' %>
      <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :to_bottom, svg: 'download-solid' %>
    </div>
  <% end %>
</div>

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
avo-2.11.3.pre.3 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.11.3.pre.2 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.11.3.pre.1 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.11.2.pre.3 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.11.2.pre.2 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.11.2.pre.1 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.11.1.pre.3 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.11.1 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.11.1.pre.2 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.11.1.pre.1 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.11.0 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.10.3.pre.1 app/components/avo/index/ordering/buttons_component.html.erb
avo-1.25.2 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.10.2 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.9.2.pre1 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.10.0 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.9.1.pre7 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.9.1.pre6 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.9.1.pre5 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.9.1.pre4 app/components/avo/index/ordering/buttons_component.html.erb