summaryrefslogtreecommitdiff
path: root/app/views/gui_functions/_index_core.html.haml
blob: 00ae4d1de48c0984cd174d9faf8b304b6c80ccd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%table.table.table-striped
  %thead
    %tr
      %th= t('gui_functions.index.category')
      %th= t('gui_functions.index.name')
      - @user_groups.each do |user_group|
        %th= user_group

  %tbody
    - for gui_function in gui_functions
      %tr
        - cache(['gui_functions_table_row', I18n.locale, gui_function]) do
          %td= gui_function.category
          %td
            = gui_function.name
            - if !gui_function.description.blank?
              %br
              %i= gui_function.description
          - @user_groups.each do |user_group|
            - if gui_function.gui_function_memberships.find_by_user_group_id(user_group.id)
              - if gui_function.gui_function_memberships.find_by_user_group_id(user_group.id).activated == true
                %td= 'x'
              - else
                %td= ''
            - else
              %td= 'x'

          =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => gui_function}