Sha256: 1cf7c974f3395785322f522704c18a34f70615cbe298bc414cefcef410357587

Contents?: true

Size: 912 Bytes

Versions: 28

Compression:

Stored size: 912 Bytes

Contents

%h1= EgovUtils::Group.model_name.human(count: 2)

= link_to t('helpers.action.egov_utils.group.new'), egov_utils.new_group_path, class: 'btn btn-primary'

%table.table.table-striped
  %thead
    %tr
      %th= EgovUtils::Group.human_attribute_name('name')
      %th= EgovUtils::Group.human_attribute_name('provider')
      %th= EgovUtils::Group.human_attribute_name('roles')
      %th= t('label_actions')
  %tbody
    - if @groups.empty?
      %tr
        %td{colspan: 4}= t('label_no_entries')
    - @groups.each do |group|
      %tr
        %td= link_to(group.name, group)
        %td= group.provider
        %td= group.roles.map { I18n.t("roles.#{_1}") }.join(', ')
        %td
          - if can?(:manage, group)
            = link_to(t('label_edit'), edit_group_path(group), class: 'btn btn-secondary btn-sm')

.row
  .col-md-4
    = page_entries_info @groups
  .col-md-4
    = paginate @groups
  .col-md-4

Version data entries

28 entries across 28 versions & 1 rubygems

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