1 <md-dialog class="chatWebsite-dialog" aria-label="New ChatWebsite">
2 <form name="chatWebsiteFormApp" 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="CHAT.ACCESSKEYID">accesskeyid</label>
45 ng-model="vm.amazonlex.accesskeyid"
48 ng-disabled="!vm.crudPermissions.canEdit"
52 ng-messages="chatWebsiteFormApp['accesskeyid'].$error"
53 ng-show="chatWebsiteFormApp['accesskeyid'].$touched"
56 <div ng-message="required">
57 <span translate="CHAT.ERRORS.ACCESSKEYID_REQUIRED"
58 >accesskeyid field is required</span
63 <md-input-container class="md-block">
64 <label translate="CHAT.SECRETACCESSKEY">secretaccesskey</label>
67 name="secretaccesskey"
68 ng-model="vm.amazonlex.secretaccesskey"
70 ng-disabled="!vm.crudPermissions.canEdit"
74 ng-messages="chatWebsiteFormApp['secretaccesskey'].$error"
75 ng-show="chatWebsiteFormApp['secretaccesskey'].$touched"
78 <div ng-message="required">
79 <span translate="CHAT.ERRORS.SECRETACCESSKEY_REQUIRED"
80 >secretaccesskey field is required</span
85 <md-input-container class="md-block">
86 <label translate="CHAT.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="chatWebsiteFormApp['lexregion'].$error"
102 ng-show="chatWebsiteFormApp['lexregion'].$touched"
105 <div ng-message="required">
106 <span translate="CHAT.ERRORS.LEXREGION_REQUIRED"
107 >lexregion field is required</span
111 </md-input-container>
112 <md-input-container class="md-block">
113 <label translate="CHAT.BOTNAME">botname</label>
117 ng-model="vm.amazonlex.botname"
119 ng-disabled="!vm.crudPermissions.canEdit"
123 ng-messages="chatWebsiteFormApp['botname'].$error"
124 ng-show="chatWebsiteFormApp['botname'].$touched"
127 <div ng-message="required">
128 <span translate="CHAT.ERRORS.BOTNAME_REQUIRED"
129 >botname field is required</span
133 </md-input-container>
134 <md-input-container class="md-block">
135 <label translate="CHAT.WELCOMEMESSAGE">welcomemessage</label>
137 name="welcomemessage"
138 ng-model="vm.amazonlex.welcomemessage"
142 <span translate="CHAT.HELP.WELCOMEMESSAGE"></span>
146 ng-messages="chatWebsiteFormApp['welcomemessage'].$error"
147 ng-show="chatWebsiteFormApp['welcomemessage'].$touched"
150 <div ng-message="md-maxlength">
152 translate="CHAT.ERRORS.WELCOMEMESSAGE_MAX_LENGTH"
153 translate-values="{max: 255}"
154 >welcomemessage must have a maximum length equal to 255</span
158 </md-input-container>
160 <div class="error-list">
162 ng-repeat="error in vm.errors"
165 layout-align="space-between center"
168 <span class="message">{{error.message}}</span>
169 <span class="type">({{error.type}})</span>
171 <md-button class="md-icon-button">
173 md-font-icon="icon-alert-box"
174 aria-label="alert error"
182 <md-dialog-actions layout="row" layout-align="space-between center">
185 layout-align="start center"
186 ng-if="vm.crudPermissions.canEdit"
190 ng-click="vm.saveChatWebsiteApp()"
191 class="send-button md-accent md-raised"
192 ng-disabled="chatWebsiteFormApp.$invalid || chatWebsiteFormApp.$pristine"
194 translate="CHAT.SAVE"
195 translate-attr-aria-label="CHAT.SAVE"