Sha256: 4aef96cbc5c02afc2e9f3b0dced2970595d9d4d04b85ad3e71cf31aa9052ddec

Contents?: true

Size: 730 Bytes

Versions: 62

Compression:

Stored size: 730 Bytes

Contents

= bootstrap_form_for(EgovUtils::Group.new) do |f|
  = render 'egov_utils/groups/form', form: f
  .form-actions
    = f.submit

%table#groups.table
  %thead
    %tr
      %th= EgovUtils::Group.human_attribute_name('name')
      %th= EgovUtils::Group.human_attribute_name('provider')
      %th= EgovUtils::Group.human_attribute_name('roles')
  %tbody
    - groups.each do |group|
      %tr
        %td= link_to(group.name, group)
        %td= group.provider
        - if can?(:manage, group)
          %td.roles{data: {roles: group.roles, id: group.id}}= group.roles.join(', ')
        - else
          %td

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

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
egov_utils-1.1.1 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-1.1.0 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-1.0.3 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-1.0.2 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-1.0.1 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-1.0.0 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-0.7.5 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-0.7.4 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-0.7.3 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-0.7.2 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-0.7.1 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-0.7.0 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-0.6.5 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-0.6.4 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-0.6.3 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-0.6.2 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-0.6.1 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-0.6.0 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-0.5.2 app/views/egov_utils/groups/_groups_tab.html.haml
egov_utils-0.5.1 app/views/egov_utils/groups/_groups_tab.html.haml