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-0.4.4 app/views/egov_utils/roles/index.html.haml
egov_utils-0.4.3 app/views/egov_utils/roles/index.html.haml
egov_utils-0.4.2 app/views/egov_utils/roles/index.html.haml
egov_utils-0.4.1 app/views/egov_utils/roles/index.html.haml
egov_utils-0.3.12 app/views/egov_utils/roles/index.html.haml
egov_utils-0.3.10 app/views/egov_utils/roles/index.html.haml
egov_utils-0.3.9 app/views/egov_utils/roles/index.html.haml
egov_utils-0.3.8 app/views/egov_utils/roles/index.html.haml
egov_utils-0.3.7 app/views/egov_utils/roles/index.html.haml
egov_utils-0.3.6 app/views/egov_utils/roles/index.html.haml
egov_utils-0.3.5 app/views/egov_utils/roles/index.html.haml
egov_utils-0.3.4 app/views/egov_utils/roles/index.html.haml
egov_utils-0.3.3 app/views/egov_utils/roles/index.html.haml
egov_utils-0.3.2 app/views/egov_utils/roles/index.html.haml
egov_utils-0.3.1 app/views/egov_utils/roles/index.html.haml
egov_utils-0.3.0 app/views/egov_utils/roles/index.html.haml
egov_utils-0.2.13 app/views/egov_utils/roles/index.html.haml
egov_utils-0.2.12 app/views/egov_utils/roles/index.html.haml
egov_utils-0.2.11 app/views/egov_utils/roles/index.html.haml
egov_utils-0.2.10 app/views/egov_utils/roles/index.html.haml