|
13 | 13 |
|
14 | 14 | input(right-placeholder, focused-placeholder="Last", ng-model="vm.lastname", maxlength="64", name="lastname", placeholder="Last Name", type="text", required)
|
15 | 15 |
|
16 |
| - //- Show errors for first and last names once we know whether we can handle accents, other languages, and not symbols/numbers |
17 |
| - //- .form-errors |
18 |
| - //- p.form-error(ng-show="vm.registerForm.firstname.$dirty && vm.registerForm.firstname.$error.pattern") Names must not contain symbols or numbers. |
19 |
| -
|
20 | 16 | .country-dropdown
|
21 | 17 | angucomplete-alt(
|
22 | 18 | input-name="country",
|
|
32 | 28 | )
|
33 | 29 |
|
34 | 30 | .form-errors
|
35 |
| - p.form-error(ng-show="vm.registerForm.country.$error.required") Please enter a valid country. |
| 31 | + p.form-error(ng-show="vm.registerForm.country.$error.required") Please choose a country from the list. |
36 | 32 |
|
37 | 33 | .validation-bar(ng-class="{ 'error-bar': (vm.registerForm.username.$error.usernameIsFree || vm.registerForm.username.$error.minlength || vm.registerForm.username.$error.maxlength), 'success-bar': (vm.registerForm.username.$valid && !vm.registerForm.username.$error.usernameIsFree) }")
|
38 | 34 | input(right-placeholder, focused-placeholder="Username", ng-model="vm.username", ng-model-options="{ debounce: {'default': 500} }", ng-focus="vm.usernameTips = true", ng-blur="vm.usernameTips = false", ng-minlength="2", ng-maxlength="15", name="username", placeholder="Username", type="text", username-is-free, required)
|
39 | 35 |
|
40 | 36 | .tips.username-tips(ng-show="vm.usernameTips")
|
41 | 37 | h3 Username Tips:
|
42 | 38 |
|
43 |
| - p This will be public to other members |
44 |
| - |
45 |
| - p Between 2 and 15 characters |
| 39 | + p Your username will be public |
46 | 40 |
|
47 |
| - p Can contain numbers and letters |
| 41 | + p Please choose one that is between 2 and 15 characters |
48 | 42 |
|
49 |
| - p You can always change it later |
| 43 | + p It can contain letters, numbers, and these characters: -_.{}[] |
50 | 44 |
|
51 | 45 | .form-errors
|
52 |
| - p.form-error(ng-show="vm.registerForm.username.$error.usernameIsFree") This username already exists. |
| 46 | + p.form-error(ng-show="vm.registerForm.username.$dirty && vm.registerForm.username.$error.usernameIsFree", ng-bind="vm.usernameErrorMessage") |
53 | 47 |
|
54 |
| - p.form-error(ng-show="vm.registerForm.username.$error.minlength || vm.registerForm.username.$error.maxlength") Username must be between 2 and 15 characters. |
| 48 | + p.form-error(ng-show="vm.registerForm.username.$dirty && (vm.registerForm.username.$error.minlength || vm.registerForm.username.$error.maxlength)") That username is not the correct length or format. |
55 | 49 |
|
56 | 50 | .validation-bar(ng-class="{ 'error-bar': (vm.registerForm.email.$dirty && vm.registerForm.email.$invalid), 'success-bar': (vm.registerForm.email.$valid) }")
|
57 |
| - input(right-placeholder, focused-placeholder="Email", ng-model="vm.email", ng-focus="vm.emailTips = true", ng-blur="vm.emailTips = false", name="email", placeholder="Enter Your Email", type="email", valid-email, email-is-available, required) |
| 51 | + input(right-placeholder, focused-placeholder="Email", ng-model="vm.email", ng-model-options="{ debounce: {'default': 500} }", ng-focus="vm.emailTips = true", ng-blur="vm.emailTips = false", name="email", placeholder="Enter Your Email", type="email", valid-email, email-is-available, required) |
58 | 52 |
|
59 | 53 | .tips.email-tips(ng-show="vm.emailTips")
|
60 | 54 | h3 Email Tips:
|
61 | 55 |
|
62 |
| - p This will be private and not shared with anyone. |
| 56 | + p Your email address will be private and not shared with anyone. |
63 | 57 |
|
64 |
| - p We will occasionally send you emails related to your account or interests. |
| 58 | + p We'll occasionally send you emails related to your activities or interests. |
65 | 59 |
|
66 | 60 | .form-errors
|
67 |
| - p.form-error(ng-show="vm.registerForm.email.$dirty && vm.registerForm.email.$invalid") Please enter a valid email address. |
| 61 | + p.form-error(ng-show="vm.registerForm.email.$dirty && (vm.registerForm.email.$error.emailIsAvailable || vm.registerForm.email.$error.validEmail)", ng-bind="vm.emailErrorMessage") |
| 62 | + |
| 63 | + p.form-error(ng-show="vm.registerForm.email.$dirty && vm.registerForm.email.$error.required") Please enter an email address. |
68 | 64 |
|
69 | 65 | .validation-bar(ng-class="{ 'success-bar': (vm.registerForm.password.$valid) }")
|
70 |
| - toggle-password(ng-if="!vm.isSocialRegistration") |
| 66 | + toggle-password-with-tips(ng-if="!vm.isSocialRegistration") |
71 | 67 |
|
72 | 68 | .tips.password-tips(ng-show="vm.passwordFocus")
|
73 | 69 | h3 Password Tips:
|
74 | 70 |
|
75 |
| - p(ng-class="{ 'has-length-between-range': (vm.registerForm.password.$dirty && !vm.registerForm.password.$error.minlength && !vm.registerForm.password.$error.maxlength && !vm.registerForm.password.$error.required) }") Must be between 8 and 64 characters |
| 71 | + p Your password must have: |
76 | 72 |
|
77 |
| - p(ng-class="{ 'has-letter': (vm.registerForm.password.$dirty && !vm.registerForm.password.$error.hasLetter) }") At least one letter |
| 73 | + p(ng-class="{ 'has-length-between-range': (vm.registerForm.password.$dirty && !vm.registerForm.password.$error.minlength && !vm.registerForm.password.$error.maxlength && !vm.registerForm.password.$error.required) }") At least 8 characters |
78 | 74 |
|
79 |
| - p(ng-class="{ 'has-symbol': (vm.registerForm.password.$dirty && !vm.registerForm.password.$error.hasSymbol) }") At least one symbol |
| 75 | + p(ng-class="{ 'has-letter': (vm.registerForm.password.$dirty && !vm.registerForm.password.$error.hasLetter) }") At least one letter |
80 | 76 |
|
81 |
| - p(ng-class="{ 'has-number': (vm.registerForm.password.$dirty && !vm.registerForm.password.$error.hasNumber) }") At least one number |
| 77 | + p(ng-class="{ 'has-symbol-or-number': (vm.registerForm.password.$dirty && !vm.registerForm.password.$error.hasSymbolOrNumber) }") At least one number or symbol |
82 | 78 |
|
83 | 79 | button(type="submit", ng-disabled="vm.registerForm.$invalid", ng-class="{'enabled-button': vm.registerForm.$valid}") Join Now
|
84 | 80 |
|
85 | 81 | section.terms
|
86 |
| - p By clicking "JOIN NOW" I agree to Topcoder's |
| 82 | + p By clicking "JOIN NOW" you agree to Topcoder's |
87 | 83 |
|
88 | 84 | p #[a(href="http://www.topcoder.com/community/how-it-works/terms/", target="_blank") Terms of Service] and #[a(href="http://www.topcoder.com/community/how-it-works/privacy-policy/", target="_blank") Privacy Policy]
|
89 | 85 |
|
90 | 86 | section.social
|
91 |
| - p Register using another account. |
| 87 | + p Use an existing account to register. |
92 | 88 |
|
93 | 89 | .social-icons
|
94 | 90 | i.fa.fa-github-square(ng-click="vm.socialRegister('github')")
|
95 | 91 | i.fa.fa-facebook-square(ng-click="vm.socialRegister('facebook')")
|
96 | 92 | i.fa.fa-google-plus-square(ng-click="vm.socialRegister('google-oauth2')")
|
97 | 93 |
|
98 |
| - p.redirect Already have an account? |
99 |
| - a(ui-sref="login(vm.$stateParams)") Login. |
| 94 | + p.redirect Already a member? |
| 95 | + a(ui-sref="login(vm.$stateParams)") Log in. |
0 commit comments