Sha256: 674e213919f18f2866613738083b746fce8d19381f9aa40f1d071b531de9da0b

Contents?: true

Size: 1.61 KB

Versions: 24

Compression:

Stored size: 1.61 KB

Contents

- objects.each do |capsule|
  %tr{ id: "row-#{capsule.id}" }
    %td.item-check{ style: 'width: 10%' }
      - if can?(KepplerCapsules::Capsule).destroy_multiple?
        .checkbox
          %label{ for: "checkbox-#{capsule.id}" }
            %input{ type: 'checkbox', id: "checkbox-#{capsule.id}", 'checklist-model' => 'check', 'checklist-value' => "#{capsule.id}", '@click' => "listDelete(#{capsule.id})"}
            %span.cr
              %i.cr-icon.glyphicon.glyphicon-ok
    %td{ style: 'width: 80%' }
      = link_to edit_admin_capsules_capsule_path(capsule, search: @query), class: 'show-row' do
        %span
          = capsule.name
    %td{ style: 'width: 15px;padding-right:15px;' }
      %a.action-btn.pull-right{:id => "menu-#{capsule.id}", 'aria-expanded': 'false', 'aria-haspopup': 'true', 'data-toggle': 'dropdown' }
        %i.icon-options-vertical
      %ul.actions.dropdown-menu{ 'aria-labelledby': "menu-#{capsule.id}" }
        - if can?(KepplerCapsules::Capsule).update?
          %li
            = link_to edit_admin_capsules_capsule_path(capsule), class: 'new-menu', title: t('keppler.actions.edit') do
              %i.icon-pencil
              = t('keppler.actions.edit')
        - if can?(KepplerCapsules::Capsule).destroy?
          %li
            = link_to admin_capsules_capsule_path(capsule), class: 'new-menu', id:'delete_capsule', title: t('keppler.actions.delete'), method: :delete, data: { confirm: t('keppler.messages.data_confirm') } do
              %i.icon-trash
              = t('keppler.actions.delete')

    -# %td{ style: 'width: 5%;' }
    -#   %a.drop{ href: '#' }
    -#     %i.icon-cursor-move

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
keppler-2.1.22 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.21 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.20 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.19 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.18 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.17 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.16 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.15 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.14 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.13 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.12 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.11 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.10 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.9 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.8 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.7 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.6 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.5 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.4 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml
keppler-2.1.3 installer/core/rockets/keppler_capsules/app/views/keppler_capsules/admin/capsules/_listing.html.haml