summaryrefslogtreecommitdiff
path: root/app/views/automatic_call_distributors/show.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:01:45 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:01:45 +0100
commitb80bd744ad873f6fc43018bc4bfb90677de167bd (patch)
tree072c4b0e33d442528555b82c415f5e7a1712b2b0 /app/views/automatic_call_distributors/show.html.haml
parent3e706c2025ecc5523e81ad649639ef2ff75e7bac (diff)
Start of GS5.
Diffstat (limited to 'app/views/automatic_call_distributors/show.html.haml')
-rw-r--r--app/views/automatic_call_distributors/show.html.haml59
1 files changed, 59 insertions, 0 deletions
diff --git a/app/views/automatic_call_distributors/show.html.haml b/app/views/automatic_call_distributors/show.html.haml
new file mode 100644
index 0000000..e5bf785
--- /dev/null
+++ b/app/views/automatic_call_distributors/show.html.haml
@@ -0,0 +1,59 @@
+- title t("automatic_call_distributors.show.page_title")
+
+%table
+ %tr
+ %th= t('automatic_call_distributors.show.uuid') + ":"
+ %td= @automatic_call_distributor.uuid
+ %tr
+ %th= t('automatic_call_distributors.show.name') + ":"
+ %td= @automatic_call_distributor.name
+ %tr
+ %th= t('automatic_call_distributors.show.strategy') + ":"
+ %td= t("automatic_call_distributors.strategies.#{@automatic_call_distributor.strategy}")
+ %tr
+ %th= t('automatic_call_distributors.show.max_callers') + ":"
+ %td= @automatic_call_distributor.max_callers
+ %tr
+ %th= t('automatic_call_distributors.show.agent_timeout') + ":"
+ %td= @automatic_call_distributor.agent_timeout
+ %tr
+ %th= t('automatic_call_distributors.show.retry_timeout') + ":"
+ %td= @automatic_call_distributor.retry_timeout
+ %tr
+ %th= t('automatic_call_distributors.show.join') + ":"
+ %td= t("automatic_call_distributors.join_on.#{@automatic_call_distributor.join}")
+ %tr
+ %th= t('automatic_call_distributors.show.leave') + ":"
+ %td= t("automatic_call_distributors.leave_on.#{@automatic_call_distributor.leave}")
+
+ %tr
+ %th= t('automatic_call_distributors.show.announce_position') + ":"
+ %td= @automatic_call_distributor.announce_position
+
+ %tr
+ %th= t('automatic_call_distributors.show.announce_call_agents') + ":"
+ %td= @automatic_call_distributor.announce_call_agents
+
+ %tr
+ %th= t('automatic_call_distributors.show.greeting') + ":"
+ %td= @automatic_call_distributor.greeting
+
+ %tr
+ %th= t('automatic_call_distributors.show.goodbye') + ":"
+ %td= @automatic_call_distributor.goodbye
+
+ %tr
+ %th= t('automatic_call_distributors.show.music') + ":"
+ %td= @automatic_call_distributor.music
+
+= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @automatic_call_distributor.automatic_call_distributorable, :child => @automatic_call_distributor }
+
+- if can?( :index, @automatic_call_distributor.phone_numbers )
+ %h3= t('automatic_call_distributors.index.phone_numbers')
+ = 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 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
+ = render :partial => 'shared/create_link', :locals => {:parent => @automatic_call_distributor, :child_class => AcdAgent, :short_link => true}