1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
<!--
============LICENSE_START==========================================
org.onap.vvp/portal
===================================================================
Copyright © 2017 AT&T Intellectual Property. All rights reserved.
===================================================================
Unless otherwise specified, all software contained herein is licensed
under the Apache License, Version 2.0 (the “License”);
you may not use this software except in compliance with the License.
You may obtain a copy of the License at
http:www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Unless otherwise specified, all documentation contained herein is licensed
under the Creative Commons License, Attribution 4.0 Intl. (the “License”);
you may not use this documentation except in compliance with the License.
You may obtain a copy of the License at
https:creativecommons.org/licenses/by/4.0/
Unless required by applicable law or agreed to in writing, documentation
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
============LICENSE_END============================================
ECOMP is a trademark and service mark of AT&T Intellectual Property.-->
<ice-loader selector=".account-form"></ice-loader>
<h2>Account</h2>
<div data-ng-if="vm.stage!==vm.stages.intake">
<progress-directive progress="{{vm.progress}}"
callback="vm.updateProgress"
enable-edit="vm.isEngagementEL()"
engagement-uuid="{{vm.uuid}}"></progress-directive>
</div>
<!--div class="row main-section" -->
<div class="row main-section">
<get-started-modal></get-started-modal>
<div class="col-md-8 steps">
<form name="accountForm" ng-submit="vm.submitForm()" novalidate class="account-form col-md-8">
<!--
<div class="form-group">
<h2>Account</h2>
</div>
-->
<div class="form-group" ng-class="{ 'has-error' : registerForm.company.$invalid && !registerForm.company.$pristine }">
<label class="ice-form-label required">Company</label>
<select ng-model="vm.data.company" name="company" class="form-control" required>
<option value>Please Select</option>
<option ng-repeat="company in vm.companies" value="{{company.name}}" ng-selected="company.name===vm.data.company">
{{company.name}}
</option>
</select>
<div class="ice-form-error" data-ng-show="accountForm.company.$error">
<span ng-show="accountForm.company.$error.required && !accountForm.company.$pristine" class="help-block">Please select company</span>
</div>
</div>
<div class="form-group" ng-class="{ 'has-error' : accountForm.fullName.$invalid && !accountForm.fullName.$pristine }">
<label class="ice-form-label required">Full Name</label>
<input type="text" name="fullname" class="form-control" ng-model="vm.data.full_name" ng-minlength="3" ng-maxlength="50" maxlength="50" required>
<div class="ice-form-error" data-ng-show="accountForm.fullname.$error">
<span ng-show="accountForm.fullname.$error.required && !accountForm.fullname.$pristine">Full Name is a required field.</span>
<span ng-show="accountForm.fullname.$error.minlength">Full Name is too short.</span>
<span ng-show="accountForm.fullname.$error.maxlength">Full Name is too long.</span>
</div>
</div>
<div class="form-group" ng-class="{ 'has-error' : accountForm.email.$invalid && !accountForm.email.$pristine }">
<label class="ice-form-label">Email</label>
<input id={{vm.data.email}} type="email" name="email" class="form-control" ng-model="vm.data.email" maxlength="254" ng-pattern='/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/' disabled>
<div class="ice-form-error" data-ng-show="accountForm.email.$error">
<span ng-show="accountForm.email.$error.required && !accountForm.email.$pristine">Email is a required field.</span>
<span ng-show="accountForm.email.$invalid && !accountForm.email.$pristine" class="help-block">Enter a valid email.</span>
</div>
</div>
<div class="form-group" ng-class="{ 'has-error' : accountForm.phone.$invalid && !accountForm.phone.$pristine }">
<label class="ice-form-label required">Phone</label>
<input type="text" name="phone" class="form-control" ng-intl-tel-input ng-model="vm.data.phone_number" required ng-minlength="6" ng-maxlength="30">
<div class="has-error ice-form-error" data-ng-show="accountForm.phone.$error">
<span ng-show="accountForm.phone.$error.required && !accountForm.phone.$pristine">Phone is a required field.</span>
<span ng-show="accountForm.phone.$error.minlength" class="help-block">Phone is too short.</span>
<span ng-show="accountForm.phone.$error.maxlength" class="help-block">Phone is too long.</span>
<span ng-show="accountForm.phone.$invalid" class="help-block">Phone format invalid</span>
</div>
</div>
<div class="form-group" ng-class="{ 'has-error' : accountForm.password.$invalid && !accountForm.password.$pristine }" >
<label class="ice-form-label">Password</label>
<input type="password" name="password" class="form-control" ng-model="vm.data.password" ng-minlength="4" ng-maxlength="32" maxlength="32" >
<div class="ice-form-error" data-ng-show="accountForm.password.$error">
<span ng-show="accountForm.password.$error.required && !accountForm.password.$pristine">Password is a required field.</span>
<span ng-show="accountForm.password.$error.required && accountForm.$submitted ">Password is required.</span>
<span ng-show="accountForm.password.$error.minlength" class="help-block">Password is too short.</span>
<span ng-show="accountForm.password.$error.maxlength" class="help-block">Password is too long.</span>
</div>
</div>
<div class="form-group" ng-class="{ 'has-error' : accountForm.confirm_password.$invalid && !accountForm.confirm_password.$pristine }">
<label class="ice-form-label">Confirm password</label>
<input type="password" name="confirm_password" class="form-control" ng-model="vm.data.confirm_password" ng-minlength="4" ng-maxlength="32" maxlength="32" >
<div class="ice-form-error" data-ng-show="accountForm.confirm_password.$error">
<span ng-show="accountForm.confirm_password.$error.required && !accountForm.confirm_password.$pristine">Confirm password is required field.</span>
<span ng-show="!accountForm.confirm_password.$error.required && accountForm.confirm_password.$error.noMatch && accountForm.password.$dirty">Passwords do not match.</span>
</div>
</div>
<div class="form-group" ng-class="{ 'has-error' : accountForm.password.$invalid && !accountForm.password.$pristine }">
<label class="ice-form-label">SSH Key</label>
<textarea name="ssh_key" class="form-control" ng-model="vm.data.ssh_key" ng-focus="clearMsg()" ></textarea>
<div class="ice-form-error" data-ng-show="accountForm.password.$error">
</div>
</div>
<button type="submit" id="upate-account" class="btn btn-primary" data-ng-disabled="!accountForm.$valid">Update</button>
</form>
</div>
<div class="col-md-4 right-panel">
<div class="personImage"></div>
<div class="line-separator col-md-12"></div>
<h3 id="storage-credentials">Your Storage Credentials</h3>
<div class="storage-credentials">
<div id="access-key-title">Access Key:
<div class="access-key" id="access-key-value">{{vm.data.access_key}}</div>
</div>
<div id="access-secret-title">Access Secret (<span class="show-secret" ng-click="vm.getAccessSecret()" role="button" id="show-access-secret">Show</span>)
<div class="access-secret" id="access-secret-value" type="password">{{vm.data.access_secret}}</div>
</div>
</div>
</div>
</div>
</div>
|