Sha256: 117103ff60ceeb40bef7280e9fde167ec36c9af9fc302411b238cfbce4ae2552

Contents?: true

Size: 1.26 KB

Versions: 19

Compression:

Stored size: 1.26 KB

Contents

.page-header
  - unless @super_user
    = link_to t('cms.fortress.users.new_link'), new_cms_fortress_user_path, :class => 'btn btn-primary btn-sm pull-right'
  - else
    = link_to t('cms.fortress.users.new_super_link'), super_new_cms_fortress_users_path, :class => 'btn btn-primary btn-sm pull-right'

  %h3
    - unless @super_user
      = t('cms.fortress.users.title')
    - else
      = t('cms.fortress.admin.super_user.title')

%table.table.table-hover.table-bordered
  %tr
    %th= t('cms.fortress.users.last_name')
    %th= t('cms.fortress.users.first_name')
    %th= t('cms.fortress.users.email')
    - unless @super_user
      %th= t('cms.fortress.users.role')
    %th

  - @cms_fortress_users.each do |cms_fortress_user|
    %tr
      %td= cms_fortress_user.last_name
      %td= cms_fortress_user.first_name
      %td= cms_fortress_user.email
      - unless @super_user
        - if cms_fortress_user.role
          %td= cms_fortress_user.role.name
      %td
        .btn-group.pull-right
          = link_to t('cms.fortress.edit'), edit_cms_fortress_user_path(cms_fortress_user), :class => 'btn btn-sm btn-default'
          = link_to t('cms.fortress.delete'), cms_fortress_user, method: :delete, data: { confirm: t('cms.fortress.are_you_sure') }, :class => 'btn btn-sm btn-danger'

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
cms-fortress-1.3.15 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.14 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.13 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.12 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.11 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.10 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.9 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.8 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.7 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.6 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.5 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.4 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.3 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.2 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.1 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.0 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.0.rc3 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.0.rc2 app/views/cms/fortress/users/index.html.haml
cms-fortress-1.3.0.rc1 app/views/cms/fortress/users/index.html.haml