Sha256: 9c78abaf39cd0e3e1d0d67be057efd5859ab00ac8510951f50f472054d154955

Contents?: true

Size: 1.97 KB

Versions: 25

Compression:

Stored size: 1.97 KB

Contents

- objects.each do |role|
  -# - unless role.name.eql?('keppler_admin')
  %tr{ id: "row-#{role.id}" }
    %td.item-check
      - if can?(Role).destroy_multiple?
        .checkbox
          %label{ for: "checkbox-#{role.id}" }
            %input{ type: 'checkbox', id: "checkbox-#{role.id}", 'checklist-model' => 'check', 'checklist-value' => role.id, '@click' => "listDelete(#{role.id})" }
            %span.cr
              %i.cr-icon.glyphicon.glyphicon-ok
      %td
        = link_to admin_role_path(role), title: t('keppler.actions.show') do
          %span
            = role.name
      %td{ style: 'width: 15px; padding-right: 15px;' }
        - unless role.id.eql?(1)
          = link_to admin_role_add_permissions_path(role.id), class: 'action-btn.pull-right' do
            %i.icon-settings
      %td{ style: 'width: 15px; padding-right: 15px;' }
        %a.action-btn.pull-right{ id: "menu-#{role.id}", 'aria-expanded' => 'false', 'aria-haspopup' => 'true', 'data-toggle' => 'dropdown' }
          %i.icon-options-vertical
        %ul.actions.dropdown-menu{ 'aria-labelledby' => "menu-#{role.id}" }
          - if can?(Role).show?
            %li
              = link_to admin_role_path(role), title: t('keppler.actions.show') do
                %i.icon-eye
                = t('keppler.actions.show')
          - if can?(Role).update?
            %li
              = link_to edit_admin_role_path(role), title: t('keppler.actions.edit') do
                %i.icon-pencil
                = t('keppler.actions.edit')
          - if can?(Role).clone?
            %li
              = link_to admin_role_clone_path(role), title: t('keppler.actions.clone') do
                %i.icon-docs
                = t('keppler.actions.clone')
          - if can?(Role).destroy?
            %li
              = link_to admin_role_path(role), title: t('keppler.actions.delete'), method: :delete, data: { confirm: t('keppler.messages.data_confirm') } do
                %i.icon-trash
                = t('keppler.actions.delete')

Version data entries

25 entries across 24 versions & 1 rubygems

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