1 <md-dialog class="smsAccount-dialog" aria-label="New SmsAccount">
2 <form name="smsAccountFormApp" 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="SMS.ACCESSKEYID">accesskeyid</label>
45 ng-model="vm.amazonlex.accesskeyid"
48 ng-disabled="!vm.crudPermissions.canEdit"
52 ng-messages="smsAccountFormApp['accesskeyid'].$error"
53 ng-show="smsAccountFormApp['accesskeyid'].$touched"
56 <div ng-message="required">
57 <span translate="SMS.ERRORS.ACCESSKEYID_REQUIRED"
58 >accesskeyid field is required</span
63 <md-input-container class="md-block">
64 <label translate="SMS.SECRETACCESSKEY">secretaccesskey</label>
67 name="secretaccesskey"
68 ng-model="vm.amazonlex.secretaccesskey"
70 ng-disabled="!vm.crudPermissions.canEdit"
74 ng-messages="smsAccountFormApp['secretaccesskey'].$error"
75 ng-show="smsAccountFormApp['secretaccesskey'].$touched"
78 <div ng-message="required">
79 <span translate="SMS.ERRORS.SECRETACCESSKEY_REQUIRED"
80 >secretaccesskey field is required</span
85 <md-input-container class="md-block">
86 <label translate="SMS.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="smsAccountFormApp['lexregion'].$error"
102 ng-show="smsAccountFormApp['lexregion'].$touched"
105 <div ng-message="required">
106 <span translate="SMS.ERRORS.LEXREGION_REQUIRED"
107 >lexregion field is required</span
111 </md-input-container>
112 <md-input-container class="md-block">
113 <label translate="SMS.BOTNAME">botname</label>
117 ng-model="vm.amazonlex.botname"
119 ng-disabled="!vm.crudPermissions.canEdit"
123 ng-messages="smsAccountFormApp['botname'].$error"
124 ng-show="smsAccountFormApp['botname'].$touched"
127 <div ng-message="required">
128 <span translate="SMS.ERRORS.BOTNAME_REQUIRED"
129 >botname field is required</span
133 </md-input-container>
134 <md-input-container class="md-block">
135 <label translate="SMS.WELCOMEMESSAGE">welcomemessage</label>
137 name="welcomemessage"
138 ng-model="vm.amazonlex.welcomemessage"
142 <span translate="SMS.HELP.WELCOMEMESSAGE"></span>
146 ng-messages="smsAccountFormApp['welcomemessage'].$error"
147 ng-show="smsAccountFormApp['welcomemessage'].$touched"
150 <div ng-message="required">
151 <span translate="SMS.ERRORS.WELCOMEMESSAGE_REQUIRED"
152 >welcomemessage field is required</span
156 <div ng-message="md-maxlength">
158 translate="SMS.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.saveSmsAccountApp()"
197 class="send-button md-accent md-raised"
198 ng-disabled="smsAccountFormApp.$invalid || smsAccountFormApp.$pristine"
201 translate-attr-aria-label="SMS.SAVE"