summaryrefslogtreecommitdiff
path: root/app/views/call_forwards/_index_core.html.haml
blob: 3c57405e13fe4426010bed1f98271c4df33cd763 (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
29
%table.table.table-striped
  %thead
    %tr
      %th
      %th= t('call_forwards.index.call_forward_case')
      %th= t('call_forwards.index.timeout')
      %th= t('call_forwards.index.destination')
      %th= t('call_forwards.index.source')  

  %tbody
    - for call_forward in call_forwards
      %tr
        %td
          -if call_forward.active
            %i.icon-ok
          - else
            %i.icon-ban-circle
        %td= t("call_forward_cases.#{call_forward.call_forward_case.value}")
        %td= call_forward.timeout
        %td
          = call_forward.destination
          - if call_forward.destinationable_type
            %br
            = call_forward.destinationable_type
            - if call_forward.destinationable_id
              = ": #{call_forward.destinationable}"
        %td= call_forward.source
        =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => call_forward.call_forwardable, :child => call_forward}