summaryrefslogtreecommitdiff
path: root/app/views/automatic_call_distributors
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-23 10:40:33 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-23 10:40:33 +0100
commite4da52d673f12673614f7f9303ad384c77dbc37c (patch)
tree445a69f7b2ae1432179ba8e6c77ab633f3b1af97 /app/views/automatic_call_distributors
parent7b745a37f1729052e2278cbb10ac6d43484b94a3 (diff)
Improved UI for tenant#show
Diffstat (limited to 'app/views/automatic_call_distributors')
-rw-r--r--app/views/automatic_call_distributors/_index_core.html.haml59
1 files changed, 33 insertions, 26 deletions
diff --git a/app/views/automatic_call_distributors/_index_core.html.haml b/app/views/automatic_call_distributors/_index_core.html.haml
index 4878b56..85790aa 100644
--- a/app/views/automatic_call_distributors/_index_core.html.haml
+++ b/app/views/automatic_call_distributors/_index_core.html.haml
@@ -2,39 +2,46 @@
%thead
%tr
%th= t('automatic_call_distributors.index.name')
- %th= t('automatic_call_distributors.index.strategy')
- %th= t('automatic_call_distributors.index.max_callers')
- %th= t('automatic_call_distributors.index.agent_timeout')
- %th= t('automatic_call_distributors.index.retry_timeout')
- %th= t('automatic_call_distributors.index.join')
- %th= t('automatic_call_distributors.index.leave')
+ %th
+ %span.hidden-phone
+ = t('automatic_call_distributors.index.strategy')
%th= t('automatic_call_distributors.index.phone_numbers')
- %th= t('automatic_call_distributors.index.acd_agents')
+ %th
+ %span.hidden-phone
+ = t('automatic_call_distributors.index.max_callers')
+ %th
+ %span.hidden-phone
+ = t('automatic_call_distributors.index.agent_timeout')
+ %th
+ %span.hidden-phone
+ = t('automatic_call_distributors.index.acd_agents')
%tbody
- for automatic_call_distributor in automatic_call_distributors
%tr
- %td= automatic_call_distributor.name
- %td= t("automatic_call_distributors.strategies.#{automatic_call_distributor.strategy}")
- %td= automatic_call_distributor.max_callers
- %td= automatic_call_distributor.agent_timeout
- %td= automatic_call_distributor.retry_timeout
- %td= t("automatic_call_distributors.join_on.#{automatic_call_distributor.join}")
- %td= t("automatic_call_distributors.leave_on.#{automatic_call_distributor.leave}")
-
%td
- - if automatic_call_distributor.phone_numbers.count > 0
+ %span.hidden-phone
+ = automatic_call_distributor.name
+ %span.visible-phone
+ = truncate(automatic_call_distributor.name, :length => 8)
+ %td
+ %span.hidden-phone
+ = t("automatic_call_distributors.strategies.#{automatic_call_distributor.strategy}")
+ %td
+ - if automatic_call_distributor.phone_numbers.any?
= render 'phone_numbers/listing', :phone_numbers => automatic_call_distributor.phone_numbers
- %br
- = render :partial => 'shared/create_link', :locals => {:parent => automatic_call_distributor, :child_class => PhoneNumber, :short_link => true}
-
%td
- - if automatic_call_distributor.acd_agents.count > 3
- = link_to automatic_call_distributor.acd_agents.count, automatic_call_distributor_acd_agents_path(automatic_call_distributor)
- %br
- - elsif automatic_call_distributor.acd_agents.count > 0
- = render 'acd_agents/listing', :acd_agents => automatic_call_distributor.acd_agents
- %br
- = render :partial => 'shared/create_link', :locals => {:parent => automatic_call_distributor, :child_class => AcdAgent, :short_link => true}
+ %span.hidden-phone
+ = automatic_call_distributor.max_callers
+ %td
+ %span.hidden-phone
+ = automatic_call_distributor.agent_timeout
+ %td
+ %span.hidden-phone
+ - if automatic_call_distributor.acd_agents.count > 3
+ = link_to automatic_call_distributor.acd_agents.count, automatic_call_distributor_acd_agents_path(automatic_call_distributor)
+ %br
+ - elsif automatic_call_distributor.acd_agents.any?
+ = render 'acd_agents/listing', :acd_agents => automatic_call_distributor.acd_agents
=render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => automatic_call_distributor.automatic_call_distributorable, :child => automatic_call_distributor} \ No newline at end of file