summaryrefslogtreecommitdiff
path: root/app/views/whitelists/_index_core.html.haml
blob: 33331698b69a7e2d93be5b1ce14a794a4873a24d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
%table{:class => 'table table-striped'}
  %tr
    %th= t('whitelists.index.name')
    %th= t('whitelists.index.phone_numbers')

  
  - for whitelist in whitelists
    %tr
      %td= whitelist.name || '-'
      %td
        = render 'phone_numbers/listing', :phone_numbers => whitelist.phone_numbers
        %br
        = render :partial => 'shared/create_link', :locals => {:parent => whitelist, :child_class => PhoneNumber, :short_link => true}

      =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => whitelist.whitelistable, :child => whitelist}