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="SMS.SEND">SEND</span>
20 ng-click="vm.addNote()"
21 class="md-raised md-blue-bg white-fg"
24 <span translate="SMS.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="SMS.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="SMS.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.mobile"
80 <span>{{ vm.getContact(contact) }}</span>
84 <div ng-messages="composeForm.to.$error" role="alert">
85 <div ng-message="required">
86 <span translate="SMS.ERRORS.TO_REQUIRED">To field is required</span>
91 <!-- msEmojyArea directive -->
93 on-reply="vm.reply(event, body)"
94 ctrl-methods="vm.ctrlMethods"
95 ng-model="vm.message.body"
96 placeholder="'SMS.INSERT_MESSAGE_HERE'"
98 <!-- / msEmojyArea directive -->
102 class="padding-top-5"
103 md-selected-item="vm.selectedItem"
104 md-search-text="vm.searchText"
105 md-selected-item-change="vm.selectedItemChange(item)"
106 md-items="item in vm.searchTextChange(vm.searchText)"
107 md-item-text="item.value"
109 md-floating-label="{{ 'SMS.CANNED_ANSWER_SEARCH' | translate}}"
110 class="input-show-hide no-container-margin"
114 ng-if="!item.SmsAccountId"
115 md-font-icon="icon-earth"
116 aria-label="alert sms"
120 ng-if="item.SmsAccountId"
121 md-font-icon="icon-message-text"
122 aria-label="alert sms"
123 class="s16 orange-fg"
125 <span md-highlight-text="vm.searchText" md-highlight-flags="^i"
126 >{{item.key}} - {{item.value}}</span
131 <span translate="SMS.CANNED_ANSWER_NOT_FOUND"
132 >No canned answers were found</span