Sha256: dd2eb181197f0d5d2d80689fc610c9ec1605b442c2307aac635097d849964d8b
Contents?: true
Size: 1007 Bytes
Versions: 24
Compression:
Stored size: 1007 Bytes
Contents
%table.table#users %thead %tr %th= t('model_attributes.user.fullname') %th= EgovUtils::User.human_attribute_name('provider') %th= EgovUtils::User.human_attribute_name('roles') %th= EgovUtils::User.human_attribute_name('groups') %th= t('label_actions') %tbody - users.each do |user| %tr %td= user.fullname %td= user.provider - if can?(:manage, user) %td.roles{data: {roles: user.roles, id: user.id}}= user.roles.join(', ') - else %td= user.roles.join(', ') %td - user.groups.each do |g| %span= g.name %td = button_to(t('label_delete'), user_path(user), method: :delete, class: 'btn btn-warning btn-sm') - unless user.active? = button_to(t('label_approve'), approve_user_path(user), class: 'btn btn-primary btn-sm') :javascript $(function(){ $('#users tbody').roles({ url: '#{roles_path(entity_class: 'EgovUtils::User')}' }); });
Version data entries
24 entries across 24 versions & 1 rubygems