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.ACCESSKEYID">accesskeyid</label>
45 ng-model="vm.amazonlex.accesskeyid"
48 ng-disabled="!vm.crudPermissions.canEdit"
52 ng-messages="whatsappAccountFormApp['accesskeyid'].$error"
53 ng-show="whatsappAccountFormApp['accesskeyid'].$touched"
56 <div ng-message="required">
57 <span translate="WHATSAPP.ERRORS.ACCESSKEYID_REQUIRED"
58 >accesskeyid field is required</span
63 <md-input-container class="md-block">
64 <label translate="WHATSAPP.SECRETACCESSKEY">secretaccesskey</label>
67 name="secretaccesskey"
68 ng-model="vm.amazonlex.secretaccesskey"
70 ng-disabled="!vm.crudPermissions.canEdit"
74 ng-messages="whatsappAccountFormApp['secretaccesskey'].$error"
75 ng-show="whatsappAccountFormApp['secretaccesskey'].$touched"
78 <div ng-message="required">
79 <span translate="WHATSAPP.ERRORS.SECRETACCESSKEY_REQUIRED"
80 >secretaccesskey field is required</span
85 <md-input-container class="md-block">
86 <label translate="WHATSAPP.LEXREGION">lexregion</label>
89 ng-model="vm.amazonlex.lexregion"
91 ng-disabled="!vm.crudPermissions.canEdit"
93 <md-option ng-value="'us-east-1'">US East (N. Virginia)</md-option>
94 <md-option ng-value="'us-west-2'">US West (Oregon)</md-option>
95 <md-option ng-value="'eu-west-1'">EU (Ireland)</md-option>
96 <md-option ng-value="'ap-southeast-2'"
97 >Asia Pacific (Sydney)</md-option
101 ng-messages="whatsappAccountFormApp['lexregion'].$error"
102 ng-show="whatsappAccountFormApp['lexregion'].$touched"
105 <div ng-message="required">
106 <span translate="WHATSAPP.ERRORS.LEXREGION_REQUIRED"
107 >lexregion field is required</span
111 </md-input-container>
112 <md-input-container class="md-block">
113 <label translate="WHATSAPP.BOTNAME">botname</label>
117 ng-model="vm.amazonlex.botname"
119 ng-disabled="!vm.crudPermissions.canEdit"
123 ng-messages="whatsappAccountFormApp['botname'].$error"
124 ng-show="whatsappAccountFormApp['botname'].$touched"
127 <div ng-message="required">
128 <span translate="WHATSAPP.ERRORS.BOTNAME_REQUIRED"
129 >botname field is required</span
133 </md-input-container>
134 <md-input-container class="md-block">
135 <label translate="WHATSAPP.WELCOMEMESSAGE">welcomemessage</label>
137 name="welcomemessage"
138 ng-model="vm.amazonlex.welcomemessage"
142 <span translate="WHATSAPP.HELP.WELCOMEMESSAGE"></span>
146 ng-messages="whatsappAccountFormApp['welcomemessage'].$error"
147 ng-show="whatsappAccountFormApp['welcomemessage'].$touched"
150 <div ng-message="required">
151 <span translate="WHATSAPP.ERRORS.WELCOMEMESSAGE_REQUIRED"
152 >welcomemessage field is required</span
156 <div ng-message="md-maxlength">
158 translate="WHATSAPP.ERRORS.WELCOMEMESSAGE_MAX_LENGTH"
159 translate-values="{max: 255}"
160 >welcomemessage must have a maximum length equal to 255</span
164 </md-input-container>
166 <div class="error-list">
168 ng-repeat="error in vm.errors"
171 layout-align="space-between center"
174 <span class="message">{{error.message}}</span>
175 <span class="type">({{error.type}})</span>
177 <md-button class="md-icon-button">
179 md-font-icon="icon-alert-box"
180 aria-label="alert error"
188 <md-dialog-actions layout="row" layout-align="space-between center">
191 layout-align="start center"
192 ng-if="vm.crudPermissions.canEdit"
196 ng-click="vm.saveWhatsappAccountApp()"
197 class="send-button md-accent md-raised"
198 ng-disabled="whatsappAccountFormApp.$invalid || whatsappAccountFormApp.$pristine"
200 translate="WHATSAPP.SAVE"
201 translate-attr-aria-label="WHATSAPP.SAVE"