summaryrefslogtreecommitdiff
path: root/app/views/switchboard_entries/_index_core.html.haml
blob: d647626b21b6ac3810bae184f0b227e883ded99d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
%table.table.table-striped
  %tr
    %th
    %th= t('switchboard_entries.index.sip_account_id')
    %th= t('switchboard_entries.index.name')
    %th

  - if switchboard_entries.any?
    %tbody{ :id => "switchboard_entries", :'data-update-url' => sort_switchboard_switchboard_entries_path(switchboard_entries.first.switchboard) }
      - for switchboard_entry in switchboard_entries
        = content_tag_for :tr, switchboard_entry do
          %td
            %span.handle
              %i.icon-resize-vertical
          %td= switchboard_entry.sip_account
          %td= switchboard_entry.name
          =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => switchboard_entry.switchboard, :child => switchboard_entry}