2 class="openchannelAccount-dialog"
3 aria-label="New OpenchannelAccount"
5 <form name="openchannelAccountFormApp" class="md-inline-form" novalidate>
6 <md-toolbar class="md-accent md-hue-2">
8 class="md-toolbar-tools"
10 layout-align="space-between center"
12 <span class="title">{{ vm.title | translate }}</span>
13 <md-button class="md-icon-button" ng-click="vm.closeDialog()">
15 md-font-icon="icon-close"
16 aria-label="Close dialog"
22 <md-dialog-content ms-scroll>
23 <div class="error-list">
25 ng-repeat="error in vm.errors"
28 layout-align="space-between center"
31 <span class="message">{{error.message}}</span>
32 <span class="type">({{error.type}})</span>
34 <md-button class="md-icon-button">
36 md-font-icon="icon-alert-box"
37 aria-label="alert error"
43 <md-input-container class="md-block">
44 <label translate="OPENCHANNEL.AGENT">Agent</label>
47 ng-model="vm.agent.agent"
50 ng-disabled="!vm.crudPermissions.canEdit"
54 ng-repeat="agent in vm.agents"
55 ng-disabled="agent.canSelect === false"
56 >{{ agent.name }}</md-option
60 ng-messages="openchannelAccountFormApp['agent'].$error"
61 ng-show="openchannelAccountFormApp['agent'].$touched"
64 <div ng-message="required">
65 <span translate="OPENCHANNEL.ERRORS.AGENT_REQUIRED"
66 >Agent field is required</span
71 <md-input-container class="md-block">
72 <label translate="OPENCHANNEL.TIMEOUT">Timeout</label>
76 ng-model="vm.agent.timeout"
80 ng-disabled="!vm.crudPermissions.canEdit"
84 ng-messages="openchannelAccountFormApp['timeout'].$error"
85 ng-show="openchannelAccountFormApp['timeout'].$touched"
88 <div ng-message="required">
89 <span translate="OPENCHANNEL.ERRORS.TIMEOUT_REQUIRED"
90 >Timeout field is required</span
93 <div ng-message="min">
95 translate="OPENCHANNEL.ERRORS.TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO"
96 >Timeout must be a valid greater or equal than</span
100 <div ng-message="max">
102 translate="OPENCHANNEL.ERRORS.TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO"
103 >Timeout must be a valid greater or equal than</span
108 </md-input-container>
110 <div class="error-list">
112 ng-repeat="error in vm.errors"
115 layout-align="space-between center"
118 <span class="message">{{error.message}}</span>
119 <span class="type">({{error.type}})</span>
121 <md-button class="md-icon-button">
123 md-font-icon="icon-alert-box"
124 aria-label="alert error"
132 <md-dialog-actions layout="row" layout-align="space-between center">
135 layout-align="start center"
136 ng-if="vm.crudPermissions.canEdit"
140 ng-click="vm.saveOpenchannelAccountApp()"
141 class="send-button md-accent md-raised"
142 ng-disabled="openchannelAccountFormApp.$invalid || openchannelAccountFormApp.$pristine"
144 translate="OPENCHANNEL.SAVE"
145 translate-attr-aria-label="OPENCHANNEL.SAVE"