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.CONDITION">Condition</label>
45 ng-model="vm.gotoif.condition"
48 ng-disabled="!vm.crudPermissions.canEdit"
52 ng-messages="whatsappAccountFormApp['condition'].$error"
53 ng-show="whatsappAccountFormApp['condition'].$touched"
56 <div ng-message="required">
57 <span translate="WHATSAPP.ERRORS.CONDITION_REQUIRED"
58 >Condition field is required</span
63 <md-input-container class="md-block">
64 <label translate="WHATSAPP.TRUEPRIORITY">truepriority</label>
68 ng-model="vm.gotoif.truepriority"
71 ng-disabled="!vm.crudPermissions.canEdit"
75 ng-messages="whatsappAccountFormApp['truepriority'].$error"
76 ng-show="whatsappAccountFormApp['truepriority'].$touched"
79 <div ng-message="required">
80 <span translate="WHATSAPP.ERRORS.TRUEPRIORITY_REQUIRED"
81 >truepriority field is required</span
84 <div ng-message="min">
86 translate="WHATSAPP.ERRORS.TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO"
87 >truepriority must be a valid greater or equal than</span
93 <md-input-container class="md-block">
94 <label translate="WHATSAPP.FALSEPRIORITY">falsepriority</label>
98 ng-model="vm.gotoif.falsepriority"
101 ng-disabled="!vm.crudPermissions.canEdit"
105 ng-messages="whatsappAccountFormApp['falsepriority'].$error"
106 ng-show="whatsappAccountFormApp['falsepriority'].$touched"
109 <div ng-message="required">
110 <span translate="WHATSAPP.ERRORS.FALSEPRIORITY_REQUIRED"
111 >falsepriority field is required</span
114 <div ng-message="min">
116 translate="WHATSAPP.ERRORS.FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO"
117 >falsepriority must be a valid greater or equal than</span
122 </md-input-container>
124 <div class="error-list">
126 ng-repeat="error in vm.errors"
129 layout-align="space-between center"
132 <span class="message">{{error.message}}</span>
133 <span class="type">({{error.type}})</span>
135 <md-button class="md-icon-button">
137 md-font-icon="icon-alert-box"
138 aria-label="alert error"
146 <md-dialog-actions layout="row" layout-align="space-between center">
149 layout-align="start center"
150 ng-if="vm.crudPermissions.canEdit"
154 ng-click="vm.saveWhatsappAccountApp()"
155 class="send-button md-accent md-raised"
156 ng-disabled="whatsappAccountFormApp.$invalid || whatsappAccountFormApp.$pristine"
158 translate="WHATSAPP.SAVE"
159 translate-attr-aria-label="WHATSAPP.SAVE"