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.KEY">Key</label>
45 ng-model="vm.dialogflow.key"
48 ng-disabled="!vm.crudPermissions.canEdit"
52 ng-messages="smsAccountFormApp['key'].$error"
53 ng-show="smsAccountFormApp['key'].$touched"
56 <div ng-message="required">
57 <span translate="SMS.ERRORS.KEY_REQUIRED"
58 >Key field is required</span
63 <md-input-container class="md-block">
64 <label translate="SMS.LANGUAGE">language</label>
67 ng-model="vm.dialogflow.language"
69 ng-disabled="!vm.crudPermissions.canEdit"
71 <md-option ng-value="'da'">Danish</md-option>
72 <md-option ng-value="'en'">English</md-option>
73 <md-option ng-value="'de'">German</md-option>
74 <md-option ng-value="'it'">Italian</md-option>
75 <md-option ng-value="'es'">Spanish</md-option>
76 <md-option ng-value="'fr'">French</md-option>
77 <md-option ng-value="'id'">Indonesian</md-option>
78 <md-option ng-value="'ja'">Japanese</md-option>
79 <md-option ng-value="'ko'">Korean (South Korea)</md-option>
80 <md-option ng-value="'nl'">Dutch</md-option>
81 <md-option ng-value="'no'">Norwegian</md-option>
82 <md-option ng-value="'pt'">Portuguese (European)</md-option>
83 <md-option ng-value="'pt-br'">Portuguese (Nrazilian)</md-option>
84 <md-option ng-value="'ru'">Russian</md-option>
85 <md-option ng-value="'sv'">Swedish</md-option>
86 <md-option ng-value="'th'">Thai</md-option>
87 <md-option ng-value="'uk'">Ukrainian</md-option>
88 <md-option ng-value="'zh-CN'">Chinese (Simplified)</md-option>
89 <md-option ng-value="'zh-HK'">Chinese (Hong Kong)</md-option>
90 <md-option ng-value="'zh-TW'">Chinese (Traditional)</md-option>
93 ng-messages="smsAccountFormApp['language'].$error"
94 ng-show="smsAccountFormApp['language'].$touched"
97 <div ng-message="required">
98 <span translate="SMS.ERRORS.LANGUAGE_REQUIRED"
99 >language field is required</span
103 </md-input-container>
104 <md-input-container class="md-block">
105 <label translate="SMS.WELCOMEMESSAGE">welcomemessage</label>
107 name="welcomemessage"
108 ng-model="vm.dialogflow.welcomemessage"
112 <span translate="SMS.HELP.WELCOMEMESSAGE"></span>
116 ng-messages="smsAccountFormApp['welcomemessage'].$error"
117 ng-show="smsAccountFormApp['welcomemessage'].$touched"
120 <div ng-message="required">
121 <span translate="SMS.ERRORS.WELCOMEMESSAGE_REQUIRED"
122 >welcomemessage field is required</span
126 <div ng-message="md-maxlength">
128 translate="SMS.ERRORS.WELCOMEMESSAGE_MAX_LENGTH"
129 translate-values="{max: 255}"
130 >welcomemessage must have a maximum length equal to 255</span
134 </md-input-container>
136 <div class="error-list">
138 ng-repeat="error in vm.errors"
141 layout-align="space-between center"
144 <span class="message">{{error.message}}</span>
145 <span class="type">({{error.type}})</span>
147 <md-button class="md-icon-button">
149 md-font-icon="icon-alert-box"
150 aria-label="alert error"
158 <md-dialog-actions layout="row" layout-align="space-between center">
161 layout-align="start center"
162 ng-if="vm.crudPermissions.canEdit"
166 ng-click="vm.saveSmsAccountApp()"
167 class="send-button md-accent md-raised"
168 ng-disabled="smsAccountFormApp.$invalid || smsAccountFormApp.$pristine"
171 translate-attr-aria-label="SMS.SAVE"