diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-21 15:07:44 +0200 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-21 15:07:44 +0200 |
commit | 4ce04ec03bc8f362d48ded43833645e7f454cb5c (patch) | |
tree | f078d226e17a64b6dc17b2976bb5dddcc9768715 /app/views/switchboards | |
parent | 51db65fb71e638a1e2b5b2d8f19f6a685017099f (diff) |
Added blind transfer functionality for the switchboard.
Diffstat (limited to 'app/views/switchboards')
-rw-r--r-- | app/views/switchboards/show.html.erb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/app/views/switchboards/show.html.erb b/app/views/switchboards/show.html.erb index 2a2765f..4877613 100644 --- a/app/views/switchboards/show.html.erb +++ b/app/views/switchboards/show.html.erb @@ -26,16 +26,27 @@ {{avatar_img switchboardEntry.avatar_src}} <small> <p> + {{#if switchboardEntry.name}} <span class="label">{{switchboardEntry.name}}</span> + {{/if}} {{#each phoneNumber in switchboardEntry.sipAccount.phoneNumberShortList}} <span class="label"> {{phoneNumber.number}} </span> + + {{#if activeCalls.length}} + <p> + {{#each activeCall in activeCalls}} + <button {{action transfer_blind activeCall.id phoneNumber.number}} class="btn btn-small">Blind Transfer ({{activeCall.b_caller_id_number}})</button> + {{/each}} + </p> + {{/if}} {{/each}} </p> {{show_callstate switchboardEntry.callstate}} + {{#if switchboardEntry.sipAccount.calls.length}} <p> Anrufe: @@ -51,17 +62,6 @@ </p> {{/if}} - {{#if activeCalls.length}} - <p> - Verbinden mit: - <br> - {{#each activeCall in activeCalls}} - <button {{action blind_transfer}}> - {{activeCall.b_caller_id_number}} - </button> - {{/each}} - </p> - {{/if}} </small> </div> </li> |