summaryrefslogtreecommitdiff
path: root/app/views/call_forwards/_index_core.html.haml
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-02-25 09:29:40 -0500
committerPeter Kozak <spag@golwen.net>2013-02-25 09:29:40 -0500
commit0442cd19bc9383669b506185356227361a16e442 (patch)
treefd6c9f9220ace7a58bd723e9a7103834a695770c /app/views/call_forwards/_index_core.html.haml
parent5dcdeb1c1f8c53fd80a0443d61a289e583091416 (diff)
call_forwards - polymorphism added
Diffstat (limited to 'app/views/call_forwards/_index_core.html.haml')
-rw-r--r--app/views/call_forwards/_index_core.html.haml14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/call_forwards/_index_core.html.haml b/app/views/call_forwards/_index_core.html.haml
index 878e0e2..48afa54 100644
--- a/app/views/call_forwards/_index_core.html.haml
+++ b/app/views/call_forwards/_index_core.html.haml
@@ -2,7 +2,7 @@
%thead
%tr
- if !@phone_number
- %th= t('call_forwards.index.phone_number_id')
+ %th= t('call_forwards.index.call_forwardable')
%th= t('call_forwards.index.call_forward_case_id')
%th= t('call_forwards.index.timeout')
%th= t('call_forwards.index.destination')
@@ -15,18 +15,18 @@
- for call_forward in call_forwards
%tr
- if !@phone_number
- %td= call_forward.phone_number
+ %td= call_forward.call_forwardable
%td= t("call_forward_cases.#{call_forward.call_forward_case.value}")
%td= call_forward.timeout
%td
= call_forward.destination
- - if call_forward.call_forwardable_type
+ - if call_forward.destinationable_type
%br
- = call_forward.call_forwardable_type
- - if call_forward.call_forwardable
- = ": #{call_forward.call_forwardable}"
+ = call_forward.destinationable_type
+ - if call_forward.destinationable_id
+ = ": #{call_forward.destinationable}"
%td= call_forward.source
- if GuiFunction.display?('depth_field_value_in_index_table', current_user)
%td= call_forward.depth
%td= call_forward.active
- =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => call_forward.phone_number, :child => call_forward} \ No newline at end of file
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => call_forward.call_forwardable, :child => call_forward} \ No newline at end of file