aboutsummaryrefslogtreecommitdiffstats
path: root/vvp/app/main/activation/register/register.html
blob: b6af8ce462be0480551162c2143f934def130736 (plain)
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
<!--
============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=".register-form"></ice-loader>

<div class="container">
    <script type='text/javascript' src='https://www.google.com/recaptcha/api.js?ver=1'></script>
    <div class="row">
        <div class="col-md-2"></div>

        <form name="registerForm" ng-submit="vm.submitForm()" novalidate class="register-form col-md-8">
            <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 a company</option>
                    <option ng-repeat="vendor in vm.vendors" value="{{vendor.name}}" ng-selected="vendor.name===vm.data.company">
                        {{vendor.name}}
                    </option>
                </select>
                <div class="ice-form-error" data-ng-show="registerForm.company.$error">
                    <span ng-show="registerForm.company.$error.required && !registerForm.company.$pristine" class="help-block">Please select a company</span>
                </div>
            </div>

            <div class="form-group" ng-class="{ 'has-error' : registerForm.fullName.$invalid && !registerForm.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 ng-pattern="/^[a-zA-Z0-9 ]*$/">
                <div class="ice-form-error" data-ng-show="registerForm.fullname.$error">
                    <span ng-show="registerForm.fullname.$error.required && !registerForm.fullname.$pristine">Name is a required field.</span>
                    <span ng-show="registerForm.fullname.$error.minlength">Full Name is too short.</span>
                    <span ng-show="registerForm.fullname.$error.maxlength">Full Name is too long.</span>
                    <span ng-show="registerForm.fullname.$error.pattern">Full Name must be alphanumeric</span>
                </div>
            </div>

            <div class="form-group" ng-class="{ 'has-error' : registerForm.email.$invalid && !registerForm.email.$pristine }">
                <label class="ice-form-label required">Email</label>
                <input 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,}))$/' required>
                <div class="ice-form-error" data-ng-show="registerForm.email.$error">
                    <span ng-show="registerForm.email.$error.required && !registerForm.email.$pristine">Email is a required field.</span>
                    <span ng-show="registerForm.email.$invalid && !registerForm.email.$error.required && !registerForm.email.$pristine">Enter a valid email.</span>
                </div>
            </div>

            <div class="form-group" ng-class="{ 'has-error' : registerForm.phone.$invalid && !registerForm.phone.$pristine }">
                <label class="ice-form-label required">Phone</label>
                <input type="text" name="phone" class="form-control phone-place-holder" ng-intl-tel-input ng-model="vm.data.phone_number" required ng-minlength="6" ng-maxlength="30">
                <div class="ice-form-error" data-ng-show="registerForm.phone.$error">
                    <span ng-show="registerForm.phone.$error.required && !registerForm.phone.$pristine">Phone is a required field.</span>
                    <span ng-show="registerForm.phone.$error.minlength" class="help-block">Phone is too short.</span>
                    <span ng-show="registerForm.phone.$error.maxlength" class="help-block">Phone is too long.</span>
    		        <span ng-show="registerForm.phone.$dirty && registerForm.phone.$invalid" class="help-block">Phone format invalid</span>
                </div>
            </div>

            <div class="form-group" ng-class="{ 'has-error' : registerForm.password.$invalid && !registerForm.password.$pristine }">
                <label class="ice-form-label required">Password</label>
                <input type="password" name="password" class="form-control" ng-model="vm.data.password" ng-minlength="4" ng-maxlength="32" maxlength="32" required autocomplete="new-password">
                <div class="ice-form-error" data-ng-show="registerForm.password.$error">
                    <span ng-show="registerForm.password.$error.required && !registerForm.password.$pristine">Password is a required field.</span>
                    <span ng-show="registerForm.password.$error.minlength" class="help-block">Password is too short.</span>
                    <span ng-show="registerForm.password.$error.maxlength" class="help-block">Password is too long.</span>
                </div>
            </div>

            <div class="form-group" ng-class="{ 'has-error' : userForm.password.$invalid && !userForm.password.$pristine }">
                <input type="checkbox" ng-model="vm.data.regular_email_updates" />&nbsp;I agree to receive regular email updates from AT&T {{'program.name' | i18next}}.
            </div>

            <div class="form-group">
                <input type="checkbox" ng-model="vm.data.terms" required />&nbsp;I accept the <a href="" ui-sref="app.terms" title="AT&T's {{'program.name' | i18next}} Terms of Service and Privacy Policy" target="_blank">AT&T's {{'program.name' | i18next}} Terms of Service and Privacy Policy</a>.
            </div>

            <div id="frm-field-63-container" class="form-group frm_form_field form-field frm_top_container">
                <!--
                <label class="ice-form-label required">
                    <span class="frm_required"></span>
                </label>
                -->
                <div id="field-7lj3ma" class="g-recaptcha" data-sitekey="6LeMMwYTAAAAACSY-OLibN7rdFHSnY9karY3VXW2"></div>
            </div>
            <input type="hidden" name="item_key" value="xxx" />
            <span>{{PleaseFill}} </span>
            <button type="submit" class="btn btn-primary" data-ng-disabled="!registerForm.$valid">Sign Up</button>

            <a ui-sref="app.login" class="login">Already have an account?</a>

        </form>
        <div class="col-md-2"></div>
    </div>

</div>