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.4.0 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.3.1.pre.6 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.3.1.pre.5 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.3.1.pre.4 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.3.1.pre.3 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.3.1.pre.2 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.3.1.pre.1 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.3.0 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.2.2 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.2.1 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.2.0 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.1.2.pre2 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.1.2.pre1 app/components/avo/index/ordering/buttons_component.html.erb
avo-1.25.1 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.1.1 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.1.0 app/components/avo/index/ordering/buttons_component.html.erb
avo-2.0.0 app/components/avo/index/ordering/buttons_component.html.erb
avo-1.25.0 app/components/avo/index/ordering/buttons_component.html.erb
avo-1.24.2 app/components/avo/index/ordering/buttons_component.html.erb