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.COMMAND">Command</label>
45 ng-model="vm.system.command"
48 ng-disabled="!vm.crudPermissions.canEdit"
52 ng-messages="smsAccountFormApp['command'].$error"
53 ng-show="smsAccountFormApp['command'].$touched"
56 <div ng-message="required">
57 <span translate="SMS.ERRORS.COMMAND_REQUIRED"
58 >Command field is required</span
63 <md-input-container class="md-block">
64 <label translate="SMS.VARIABLE">Variable</label>
67 ng-model="vm.system.variable"
68 ng-disabled="!vm.crudPermissions.canEdit"
70 <md-option ng-value="''">None</md-option>
72 ng-value="variable.name"
73 ng-repeat="variable in vm.variables"
74 ng-disabled="variable.canSelect === false"
75 >{{ variable.name }}</md-option
79 ng-messages="smsAccountFormApp['variable'].$error"
80 ng-show="smsAccountFormApp['variable'].$touched"
83 <div ng-message="required">
84 <span translate="SMS.ERRORS.VARIABLE_REQUIRED"
85 >Variable field is required</span
91 <div class="error-list">
93 ng-repeat="error in vm.errors"
96 layout-align="space-between center"
99 <span class="message">{{error.message}}</span>
100 <span class="type">({{error.type}})</span>
102 <md-button class="md-icon-button">
104 md-font-icon="icon-alert-box"
105 aria-label="alert error"
113 <md-dialog-actions layout="row" layout-align="space-between center">
116 layout-align="start center"
117 ng-if="vm.crudPermissions.canEdit"
121 ng-click="vm.saveSmsAccountApp()"
122 class="send-button md-accent md-raised"
123 ng-disabled="smsAccountFormApp.$invalid || smsAccountFormApp.$pristine"
126 translate-attr-aria-label="SMS.SAVE"