-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistration.jade
60 lines (60 loc) · 1.56 KB
/
registration.jade
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
.registration-block(ng-controller="RegistrationController")
.row
form(
name="registration"
ng-submit="register()"
novalidate
)
.form-group
label Login
input.form-control(
type="text"
name="login"
ng-model="user.username"
required
)
p.help-block Enter your username
.form-group
label Password
input.form-control(
type="password"
name="password"
ng-model="user.password"
required
)
p.help-block Enter password
.form-group
label Confirm Password
input.form-control(
type="password"
name="confirmPassword"
ng-model="user.confirmPassword"
ui-validate=" '$value==user.password' "
ui-validate-watch="user.password"
tooltip="Passwords aren't equal"
tooltip-placement="bottom"
tooltip-enable="registration.confirmPassword.$error.validator"
required
)
p.help-block Enter confirm password
.form-group
label Email
input.form-control(
type="email"
name="email"
ng-model="user.email"
tooltip="It's not email"
tooltip-placement="bottom"
tooltip-enable="registration.email.$error.email"
required
)
input.btn(
type="submit"
value="Sign up"
ng-disabled="!registration.$valid"
)
input.btn(
type="button"
value="Exit"
ui-sref="login"
)