1
1
< div aria-label ="dialog " class ="modal__container ">
2
2
< div class ="modal__header ">
3
- < h3 class ="heading-tertiary "> Zarejestruj </ h3 >
3
+ < h3 class ="heading-tertiary "> Register </ h3 >
4
4
</ div >
5
5
< div class ="modal__body ">
6
- < form id ="registerForm " data-ng-submit ="register() ">
6
+ < form id ="registerForm " data-ng-submit ="register() " data-ng-if =" !success " >
7
7
< div class ="form-group ">
8
8
< label for ="email "> E-Mail:</ label >
9
- < input type ="
email "
placeholder ="
[email protected] "
class ="
form-control "
id ="
email "
data-ng-model ="
email "
>
9
+ < input type ="
email "
placeholder ="
[email protected] "
class ="
form-control "
id ="
email "
data-ng-model ="
$parent. email"
>
10
10
</ div >
11
11
< div class ="form-group ">
12
- < label for ="password "> Hasło :</ label >
13
- < input type ="password " placeholder ="****** " class ="form-control " id ="password " data-ng-model ="password ">
12
+ < label for ="password "> Password :</ label >
13
+ < input type ="password " placeholder ="****** " class ="form-control " id ="password " data-ng-model ="$parent. password ">
14
14
</ div >
15
15
< div class ="form-group ">
16
- < label for ="password_confirm "> Potwierdź hasło :</ label >
17
- < input type ="password " placeholder ="****** " class ="form-control " id ="password_confirm " data-ng-model ="passwordConf ">
16
+ < label for ="password_confirm "> Repeat password :</ label >
17
+ < input type ="password " placeholder ="****** " class ="form-control " id ="password_confirm " data-ng-model ="$parent. passwordConf ">
18
18
</ div >
19
+ < p data-ng-if ="$parent.errorConflict "> Email already exists in our database. Go to login modal and recover your account.</ p >
20
+ < p data-ng-if ="$parent.errorPass "> Email must contain "@" and password must contain at least 6 signs.</ p >
19
21
</ form >
22
+ < div data-ng-if ="success ">
23
+ < p class ="success "> Successfully registered.</ p >
24
+ < p class ="help-block "> Go to your email account to activate account.</ p >
25
+ </ div >
20
26
</ div >
21
27
< div class ="modal__footer ">
22
- < button type ="submit " class ="button " form ="registerForm "> Zarejestruj </ button >
23
- < button type ="button " class ="button " data-ng-click ="hideModal() "> Zamknij </ button >
28
+ < button type ="submit " class ="button " form ="registerForm "> Register </ button >
29
+ < button type ="button " class ="button " data-ng-click ="hideModal() "> Close </ button >
24
30
</ div >
25
31
</ div >
0 commit comments