Sha256: 50a4a62315e92c84b93b8587c7f6863512859c4309676d0cfdf2ed2d8d2a4701

Contents?: true

Size: 958 Bytes

Versions: 120

Compression:

Stored size: 958 Bytes

Contents

%h3= EgovUtils::User.model_name.human(count: :other)
%table#user_roles.table
  %thead
    %tr
      %th= EgovUtils::User.human_attribute_name('fullname')
      %th= EgovUtils::User.human_attribute_name('roles')
  %tbody
    - @users.each do |user|
      %tr
        %td= user.fullname
        %td.roles{data: {roles: user.roles, id: user.id}}= user.roles.join(', ')

%h3= EgovUtils::Group.model_name.human(count: :other)
%table#group_roles.table
  %thead
    %tr
      %th= EgovUtils::Group.human_attribute_name('name')
      %th= EgovUtils::Group.human_attribute_name('roles')
  %tbody
    - @groups.each do |group|
      %tr
        %td= group.name
        %td.roles{data: {roles: group.roles, id: group.id}}= group.roles.join(', ')

:javascript
  $(function(){
    $('#user_roles tbody').roles({ url: '#{roles_path(entity_class: 'EgovUtils::User')}' });
    $('#group_roles tbody').roles({ url: '#{roles_path(entity_class: 'EgovUtils::Group')}' });
  });

Version data entries

120 entries across 120 versions & 1 rubygems

Version Path
egov_utils-1.5.0.alpha16 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha15 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha14 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha13 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha12 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha11 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha10 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha9 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha8 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha7 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha6 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha5 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha4 app/views/egov_utils/roles/index.html.haml
egov_utils-1.4.5 app/views/egov_utils/roles/index.html.haml
egov_utils-1.4.4 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha3 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha2 app/views/egov_utils/roles/index.html.haml
egov_utils-1.5.0.alpha1 app/views/egov_utils/roles/index.html.haml
egov_utils-1.4.3 app/views/egov_utils/roles/index.html.haml
egov_utils-1.4.2 app/views/egov_utils/roles/index.html.haml