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.TIMES">times</label>
44 ng-model="vm.autoreply.times"
47 ng-disabled="!vm.crudPermissions.canEdit"
49 <md-option ng-value="1">One Time</md-option>
50 <md-option ng-value="0">Always</md-option>
53 ng-messages="smsAccountFormApp['times'].$error"
54 ng-show="smsAccountFormApp['times'].$touched"
57 <div ng-message="required">
58 <span translate="SMS.ERRORS.TIMES_REQUIRED"
59 >times field is required</span
64 <md-input-container class="md-block">
65 <label translate="SMS.TEXT">Text</label>
66 <textarea name="text" ng-model="vm.autoreply.text" required></textarea>
69 ng-messages="smsAccountFormApp['text'].$error"
70 ng-show="smsAccountFormApp['text'].$touched"
73 <div ng-message="required">
74 <span translate="SMS.ERRORS.TEXT_REQUIRED"
75 >Text field is required</span
81 <div class="error-list">
83 ng-repeat="error in vm.errors"
86 layout-align="space-between center"
89 <span class="message">{{error.message}}</span>
90 <span class="type">({{error.type}})</span>
92 <md-button class="md-icon-button">
94 md-font-icon="icon-alert-box"
95 aria-label="alert error"
103 <md-dialog-actions layout="row" layout-align="space-between center">
106 layout-align="start center"
107 ng-if="vm.crudPermissions.canEdit"
111 ng-click="vm.saveSmsAccountApp()"
112 class="send-button md-accent md-raised"
113 ng-disabled="smsAccountFormApp.$invalid || smsAccountFormApp.$pristine"
116 translate-attr-aria-label="SMS.SAVE"