summaryrefslogtreecommitdiff
path: root/app/views/automatic_call_distributors/show.html.haml
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-07 15:57:02 -0500
committerPeter Kozak <spag@golwen.net>2013-03-07 15:57:02 -0500
commit2abc9cfb22e55b709a21b041e04a8221f605e9d7 (patch)
tree7f4c56abc3f38740790d0ce5fe5dcb94ba26c0fe /app/views/automatic_call_distributors/show.html.haml
parent800cf2f11ab5d7f03a52d5ca35e893654ef520ab (diff)
call forwards view added
Diffstat (limited to 'app/views/automatic_call_distributors/show.html.haml')
-rw-r--r--app/views/automatic_call_distributors/show.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/automatic_call_distributors/show.html.haml b/app/views/automatic_call_distributors/show.html.haml
index a461652..18fd8b8 100644
--- a/app/views/automatic_call_distributors/show.html.haml
+++ b/app/views/automatic_call_distributors/show.html.haml
@@ -63,6 +63,13 @@
= render 'phone_numbers/index_core', :phone_numbers => @automatic_call_distributor.phone_numbers
= render :partial => 'shared/create_link', :locals => {:parent => @automatic_call_distributor, :child_class => PhoneNumber, :short_link => true}
+- if @automatic_call_distributor.call_forwards.count > 0 || can?(:create, @automatic_call_distributor.call_forwards.build)
+ %h3= t('call_forwards.index.page_title')
+ - if @automatic_call_distributor.call_forwards.count > 0
+ = render "call_forwards/index_core", :call_forwards => @automatic_call_distributor.call_forwards
+ %br
+ = render :partial => 'shared/create_link', :locals => { :parent => @automatic_call_distributor, :child_class => CallForward }
+
- if can?( :index, @automatic_call_distributor.acd_agents )
%h3= t('automatic_call_distributors.index.acd_agents')
= render 'acd_agents/index_core', :acd_agents => @automatic_call_distributor.acd_agents