1 <md-dialog class="whatsappAccount-dialog" aria-label="New WhatsappAccount">
2 <form name="whatsappAccountFormApp" class="md-inline-form" novalidate>
3 <md-toolbar class="md-accent md-hue-2">
5 class="md-toolbar-tools"
7 layout-align="space-between center"
9 <span class="title">{{ vm.title | translate }}</span>
10 <md-button class="md-icon-button" ng-click="vm.closeDialog()">
12 md-font-icon="icon-close"
13 aria-label="Close dialog"
19 <md-dialog-content ms-scroll>
20 <div class="error-list">
22 ng-repeat="error in vm.errors"
25 layout-align="space-between center"
28 <span class="message">{{error.message}}</span>
29 <span class="type">({{error.type}})</span>
31 <md-button class="md-icon-button">
33 md-font-icon="icon-alert-box"
34 aria-label="alert error"
40 <md-input-container class="md-block">
41 <label translate="WHATSAPP.QUEUE">Queue</label>
44 ng-model="vm.queue.queue"
47 ng-disabled="!vm.crudPermissions.canEdit"
51 ng-repeat="queue in vm.queues"
52 ng-disabled="queue.canSelect === false"
53 >{{ queue.name }}</md-option
57 ng-messages="whatsappAccountFormApp['queue'].$error"
58 ng-show="whatsappAccountFormApp['queue'].$touched"
61 <div ng-message="required">
62 <span translate="WHATSAPP.ERRORS.QUEUE_REQUIRED"
63 >Queue field is required</span
68 <md-input-container class="md-block">
69 <label translate="WHATSAPP.TIMEOUT">Timeout</label>
73 ng-model="vm.queue.timeout"
77 ng-disabled="!vm.crudPermissions.canEdit"
81 ng-messages="whatsappAccountFormApp['timeout'].$error"
82 ng-show="whatsappAccountFormApp['timeout'].$touched"
85 <div ng-message="required">
86 <span translate="WHATSAPP.ERRORS.TIMEOUT_REQUIRED"
87 >Timeout field is required</span
90 <div ng-message="min">
92 translate="WHATSAPP.ERRORS.TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO"
93 >Timeout must be a valid greater or equal than</span
97 <div ng-message="max">
99 translate="WHATSAPP.ERRORS.TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO"
100 >Timeout must be a valid greater or equal than</span
105 </md-input-container>
107 <div class="error-list">
109 ng-repeat="error in vm.errors"
112 layout-align="space-between center"
115 <span class="message">{{error.message}}</span>
116 <span class="type">({{error.type}})</span>
118 <md-button class="md-icon-button">
120 md-font-icon="icon-alert-box"
121 aria-label="alert error"
129 <md-dialog-actions layout="row" layout-align="space-between center">
132 layout-align="start center"
133 ng-if="vm.crudPermissions.canEdit"
137 ng-click="vm.saveWhatsappAccountApp()"
138 class="send-button md-accent md-raised"
139 ng-disabled="whatsappAccountFormApp.$invalid || whatsappAccountFormApp.$pristine"
141 translate="WHATSAPP.SAVE"
142 translate-attr-aria-label="WHATSAPP.SAVE"