summaryrefslogtreecommitdiff
path: root/app/views/switchboards/show.html.erb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-27 13:02:28 +0200
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-27 13:02:28 +0200
commit7ffb10465ecdbd96fc3c3ba9d8df92485f787e62 (patch)
treef8a93ec49ef5baf7002b10b8c7deff5fd555f69e /app/views/switchboards/show.html.erb
parentace935fd2793b09925ab4b8a6b352585b5bdf3d2 (diff)
blind and attended transfer can be configured for each switchboard.
Diffstat (limited to 'app/views/switchboards/show.html.erb')
-rw-r--r--app/views/switchboards/show.html.erb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/switchboards/show.html.erb b/app/views/switchboards/show.html.erb
index 1952a3c..61adde7 100644
--- a/app/views/switchboards/show.html.erb
+++ b/app/views/switchboards/show.html.erb
@@ -59,8 +59,12 @@
{{#if dispatchableIncomingCalls.length}}
<p>
{{#each dispatchableIncomingCall in dispatchableIncomingCalls}}
- <button {{action transfer_blind dispatchableIncomingCall.id phoneNumber.number}} class="btn btn-small">Transfer</button>
- <button {{action transfer_attended dispatchableIncomingCall.id phoneNumber.number}} class="btn btn-small">Attended Transfer</button>
+ {{#if switchboardEntry.switchboard.blind_transfer_activated}}
+ <button {{action transfer_blind dispatchableIncomingCall.id phoneNumber.number}} class="btn btn-small">Transfer</button>
+ {{/if}}
+ {{#if switchboardEntry.switchboard.attended_transfer_activated}}
+ <button {{action transfer_attended dispatchableIncomingCall.id phoneNumber.number}} class="btn btn-small">Attended Transfer</button>
+ {{/if}}
{{/each}}
</p>
{{/if}}