1 <md-dialog class="cloudProvider-dialog" aria-label="New CloudProvider">
2 <form name="cloudProviderForm" 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="SETTINGS.NAME">Name</label>
45 ng-model="vm.cloudProvider.name"
51 ng-messages="cloudProviderForm['name'].$error"
52 ng-show="cloudProviderForm['name'].$touched"
55 <div ng-message="required">
56 <span translate="SETTINGS.ERRORS.NAME_REQUIRED"
57 >Name field is required</span
62 <md-input-container class="md-block">
63 <label translate="SETTINGS.SERVICE">Service</label>
66 ng-model="vm.cloudProvider.service"
68 ng-disabled="!vm.newCloudProvider"
70 <md-option ng-value="'AmazonAWS'">AmazonAWS</md-option>
73 ng-messages="cloudProviderForm['service'].$error"
74 ng-show="cloudProviderForm['service'].$touched"
77 <div ng-message="required">
78 <span translate="SETTINGS.ERRORS.SERVICE_REQUIRED"
79 >Service field is required</span
85 ng-if="vm.cloudProvider.service == 'AmazonAWS'"
88 <label translate="SETTINGS.ACCESSKEY">AccessKey</label>
92 ng-model="vm.cloudProvider.data2"
97 ng-messages="cloudProviderForm['data2'].$error"
98 ng-show="cloudProviderForm['data2'].$touched"
101 <div ng-message="required">
102 <span translate="SETTINGS.ERRORS.ACCESSKEY_REQUIRED"
103 >AccessKey field is required</span
107 </md-input-container>
109 ng-if="vm.cloudProvider.service == 'AmazonAWS'"
112 <label translate="SETTINGS.SECRETACCESSKEY">SecretAccesskey</label>
116 ng-model="vm.cloudProvider.data1"
121 ng-messages="cloudProviderForm['data1'].$error"
122 ng-show="cloudProviderForm['data1'].$touched"
125 <div ng-message="required">
126 <span translate="SETTINGS.ERRORS.SECRETACCESSKEY_REQUIRED"
127 >SecretAccesskey field is required</span
131 </md-input-container>
133 <div class="error-list">
135 ng-repeat="error in vm.errors"
138 layout-align="space-between center"
141 <span class="message">{{error.message}}</span>
142 <span class="type">({{error.type}})</span>
144 <md-button class="md-icon-button">
146 md-font-icon="icon-alert-box"
147 aria-label="alert error"
155 <md-dialog-actions layout="row" layout-align="space-between center">
156 <div layout="row" layout-align="start center">
159 ng-if="!vm.newCloudProvider"
160 ng-click="vm.saveCloudProvider()"
161 class="send-button md-accent md-raised"
162 ng-disabled="cloudProviderForm.$invalid || cloudProviderForm.$pristine"
164 translate="SETTINGS.SAVE"
165 translate-attr-aria-label="SETTINGS.SAVE"
172 ng-if="vm.newCloudProvider"
173 ng-click="vm.addNewCloudProvider()"
174 class="send-button md-accent md-raised"
175 ng-disabled="cloudProviderForm.$invalid"
177 translate="SETTINGS.ADD_CLOUDPROVIDER"
178 translate-attr-aria-label="SETTINGS.ADD_CLOUDPROVIDER"
185 class="md-icon-button"
186 ng-click="vm.deleteCloudProvider($event)"
189 translate-attr-aria-label="SETTINGS.DELETE"
191 <md-icon md-font-icon="icon-delete"></md-icon>
193 ><span translate="SETTINGS.DELETE">DELETE</span></md-tooltip