1 <md-dialog class="compose-dialog" aria-label="New Message">
2 <form class="md-inline-form" name="composeForm" novalidate>
3 <md-toolbar class="md-background-bg">
5 class="md-toolbar-tools"
7 layout-align="space-between center"
13 class="md-raised md-blue-bg white-fg"
14 aria-label="Send message"
16 <span translate="OPENCHANNEL.SEND">SEND</span>
20 ng-click="vm.addNote()"
21 class="md-raised md-blue-bg white-fg"
24 <span translate="OPENCHANNEL.ADD_NOTE">Add note</span>
27 <span ng-if="!vm.secret" class="title">{{vm.message.from}}</span>
29 class="md-icon-button"
30 ng-click="vm.closeDialog()"
31 aria-label="Close dialog"
33 translate-aria-label="OPENCHANNEL.CLOSE_DIALOG"
35 <md-icon md-font-icon="icon-close"></md-icon>
40 <md-dialog-content ms-scroll>
41 <div class="error-list">
43 ng-repeat="error in vm.errors"
46 layout-align="space-between center"
49 <span class="message">{{error.message}}</span>
50 <span class="type">({{error.type}})</span>
52 <md-button class="md-icon-button">
54 md-font-icon="icon-alert-box"
55 aria-label="alert error"
62 <md-input-container ng-if="!vm.secret" class="md-block to">
63 <label translate="OPENCHANNEL.TO">To</label>
66 ng-model="vm.message.to"
67 md-transform-chip="vm.transformContact($chip)"
68 md-separator-keys="vm.separatorKeys"
69 md-require-match="false"
74 md-search-text="vm.searchTo"
75 md-items="contact in vm.contactSearch(vm.searchTo)"
76 md-item-text="contact.mapkey"
80 <span>{{ vm.getContact(contact) }}</span>
84 <div ng-messages="composeForm.to.$error" role="alert">
85 <div ng-message="required">
86 <span translate="OPENCHANNEL.ERRORS.TO_REQUIRED"
87 >To field is required</span
93 <!-- msEmojyArea directive -->
95 on-reply="vm.reply(event, body)"
96 ctrl-methods="vm.ctrlMethods"
97 ng-model="vm.message.body"
98 placeholder="'OPENCHANNEL.INSERT_MESSAGE_HERE'"
100 <!-- / msEmojyArea directive -->
104 class="padding-top-5"
105 md-selected-item="vm.selectedItem"
106 md-search-text="vm.searchText"
107 md-selected-item-change="vm.selectedItemChange(item)"
108 md-items="item in vm.searchTextChange(vm.searchText)"
109 md-item-text="item.value"
111 md-floating-label="{{ 'OPENCHANNEL.CANNED_ANSWER_SEARCH' | translate}}"
112 class="input-show-hide no-container-margin"
116 ng-if="!item.OpenchannelAccountId"
117 md-font-icon="icon-earth"
118 aria-label="alert openchannel"
122 ng-if="item.OpenchannelAccountId"
123 md-font-icon="icon-message-text"
124 aria-label="alert openchannel"
125 class="s16 orange-fg"
127 <span md-highlight-text="vm.searchText" md-highlight-flags="^i"
128 >{{item.key}} - {{item.value}}</span
133 <span translate="OPENCHANNEL.CANNED_ANSWER_NOT_FOUND"
134 >No canned answers were found</span