1-
2- <div class =" page-register" >
3- <div class =" top-part" ></div >
1+ <div class =" page-register text-center" >
42 <div class =" col-md-12" >
5- <div class =" register -form-container" >
6- <div class = " panel panel-default " >
7- < div class = " panel-body padding-top " >
8- < h3 >Welcome to Konga !</h3 >
9- <p class =" help-block" >Create an admin user </p >
10- < hr >
3+ <div class =" login -form-container" >
4+ <img src = " images/konga-logo-small.png " class = " img-responsive " / >
5+ < br >
6+ < h4 >Welcome to the jungle !</h4 >
7+ <p class =" help-block" >Go ahead and create an administrator account. </p >
8+ < br >< br >
119
12- <form name =" loginForm" method =" post" action =" register" >
13- <div class =" form-group <%= typeof invalidAttributes != 'undefined' && invalidAttributes.username ? 'has-error': '' %>" >
14- <label class =" control-label no-margin" >Username <span class =" text-danger text-small" >*</span ></label >
15- <input type =" text" name =" username" class =" form-control username"
16- placeholder =" Enter your username..." autofocus autocomplete =" off" required =" required"
17- value =" <%= typeof old_data != 'undefined' && old_data.username ? old_data.username: '' %>"
18- />
19- <% if (typeof invalidAttributes != ' undefined' && invalidAttributes .username ) { % >
20- < % for (var i in invalidAttributes .username ) { % >
21- < p class = " help-block" >
22- < %= invalidAttributes .username [i].message % >
23- < / p>
24- < % } % >
25- < % } %>
10+ <form name =" loginForm" method =" post" action =" register" >
11+ <div class =" form-group <%= typeof invalidAttributes != 'undefined' && invalidAttributes.username ? 'has-error' : '' %>" >
12+ <!-- <label class="control-label no-margin">Username <span-->
13+ <!-- class="text-danger text-small">*</span></label>-->
2614
27- </div >
2815
29- <div class =" form-group <%= typeof invalidAttributes != 'undefined' && invalidAttributes.email ? 'has-error': '' %>" >
30- <label class =" control-label no-margin" >Email <span class =" text-danger text-small" >*</span ></label >
31- <input type =" email" name =" email"
32- class =" form-control password"
33- placeholder =" Enter your email..." required =" required"
34- value =" <%= typeof old_data != 'undefined' && old_data.email ? old_data.email: '' %>"
35- />
36- <% if (typeof invalidAttributes != ' undefined' && invalidAttributes .email ) { % >
37- < % for (var i in invalidAttributes .email ) { % >
38- < p class = " help-block" >
39- < %= invalidAttributes .email [i].message % >
40- < / p>
41- < % } % >
42- < % } %>
43- </div >
44- <div class =" form-group <%= typeof invalidAttributes != 'undefined' && invalidAttributes.password ? 'has-error': '' %>" >
45- <label class =" control-label no-margin" >Password <span class =" text-danger text-small" >*</span ></label >
46- <input autocomplete =" new-password" type =" password" name =" password"
47- class =" form-control password"
48- placeholder =" Enter your password..." required =" required"
49- />
50- <% if (typeof invalidAttributes != ' undefined' && invalidAttributes .password ) { % >
51- < % for (var i in invalidAttributes .password ) { % >
52- < p class = " help-block" >
53- < %= invalidAttributes .password [i].message % >
54- < / p>
55- < % } % >
56- < % } %>
16+ <div class =" input-group" >
17+ <span class =" input-group-addon" >
18+ <i class =" mdi mdi-account-box-outline" ></i >
19+ </span >
20+ <input type =" text" name =" username" class =" form-control username"
21+ placeholder =" Username" autofocus autocomplete =" off" required =" required"
22+ value =" <%= typeof old_data != 'undefined' && old_data.username ? old_data.username : '' %>"
23+ />
24+ </div >
25+ <% if (typeof invalidAttributes != ' undefined' && invalidAttributes .username ) { % >
26+ < % for (var i in invalidAttributes .username ) { % >
27+ < p class = " help-block" >
28+ < %= invalidAttributes .username [i].message % >
29+ < / p>
30+ < % } % >
31+ < % } %>
5732
58- </div >
59- <div class =" form-group <%= typeof invalidAttributes != 'undefined' && (invalidAttributes.password || invalidAttributes.password_confirmation) ? 'has-error': '' %>" >
60- <label class =" control-label no-margin" >Password confirmation <span class =" text-danger text-small" >*</span ></label >
61- <input
62- ng-pattern =" user.passports.password"
63- autocomplete =" new-password" type =" password" name =" password_confirmation"
64- class =" form-control password"
65- placeholder =" Confirm your password..." required =" required"
66- />
67- <% if (typeof invalidAttributes != ' undefined' && invalidAttributes .password_confirmation ) { % >
68- < % for (var i in invalidAttributes .password_confirmation ) { % >
69- < p class = " help-block" >
70- < %= invalidAttributes .password_confirmation [i].message % >
71- < / p>
72- < % } % >
73- < % } %>
74- </div >
33+ </div >
7534
76- <br >
77- <div class =" form-group" >
78- <button class =" btn btn-primary btn-block" >
79- create admin
80- </button >
81- </div >
82- <p >
83- <small >
84- After the admin user is created, you will be redirected to the login page.
85- </small >
86- </p >
87- <p class =" text-center help-block" >KONGA v<%= konga_version%> </p >
35+ <div class =" form-group <%= typeof invalidAttributes != 'undefined' && invalidAttributes.email ? 'has-error' : '' %>" >
36+ <!-- <label class="control-label no-margin">Email <span-->
37+ <!-- class="text-danger text-small">*</span></label>-->
38+ <div class =" input-group" >
39+ <span class =" input-group-addon" >
40+ <i class =" mdi mdi-email-outline" ></i >
41+ </span >
42+ <input type =" email" name =" email"
43+ class =" form-control password"
44+ placeholder =" Email" required =" required"
45+ value =" <%= typeof old_data != 'undefined' && old_data.email ? old_data.email : '' %>"
46+ />
47+ </div >
48+ <% if (typeof invalidAttributes != ' undefined' && invalidAttributes .email ) { % >
49+ < % for (var i in invalidAttributes .email ) { % >
50+ < p class = " help-block" >
51+ < %= invalidAttributes .email [i].message % >
52+ < / p>
53+ < % } % >
54+ < % } %>
55+ </div >
56+ <div class =" form-group <%= typeof invalidAttributes != 'undefined' && invalidAttributes.password ? 'has-error' : '' %>" >
57+ <!-- <label class="control-label no-margin">Password <span-->
58+ <!-- class="text-danger text-small">*</span></label>-->
59+ <div class =" input-group" >
60+ <span class =" input-group-addon" >
61+ <i class =" mdi mdi-lock-outline" ></i >
62+ </span >
63+ <input autocomplete =" new-password" type =" password" name =" password"
64+ class =" form-control password"
65+ placeholder =" Password" required =" required"
66+ />
67+ </div >
68+ <% if (typeof invalidAttributes != ' undefined' && invalidAttributes .password ) { % >
69+ < % for (var i in invalidAttributes .password ) { % >
70+ < p class = " help-block" >
71+ < %= invalidAttributes .password [i].message % >
72+ < / p>
73+ < % } % >
74+ < % } %>
75+
76+ </div >
77+ <div class =" form-group <%= typeof invalidAttributes != 'undefined' && (invalidAttributes.password || invalidAttributes.password_confirmation) ? 'has-error' : '' %>" >
78+ <!-- <label class="control-label no-margin">Password confirmation <span-->
79+ <!-- class="text-danger text-small">*</span></label>-->
8880
89- </form >
81+ <div class =" input-group" >
82+ <span class =" input-group-addon" >
83+ <i class =" mdi mdi-check-circle-outline" ></i >
84+ </span >
85+ <input
86+ ng-pattern =" user.passports.password"
87+ autocomplete =" new-password" type =" password" name =" password_confirmation"
88+ class =" form-control password"
89+ placeholder =" Confirm password" required =" required"
90+ />
91+ </div >
92+ <% if (typeof invalidAttributes != ' undefined' && invalidAttributes .password_confirmation ) { % >
93+ < % for (var i in invalidAttributes .password_confirmation ) { % >
94+ < p class = " help-block" >
95+ < %= invalidAttributes .password_confirmation [i].message % >
96+ < / p>
97+ < % } % >
98+ < % } %>
9099 </div >
91- </div >
100+
101+ <br >
102+ <div class =" form-group" >
103+ <button class =" btn btn-primary btn-block btn-round btn-flat" >
104+ create admin
105+ </button >
106+ </div >
107+ <p class =" text-center help-block" >KONGA v<%= konga_version %> </p >
108+
109+ </form >
92110
93111 </div >
94112 </div >
95113</div >
96114
97115
98-
99116<script >
100- window .konga_version = " <%=konga_version%>" ;
117+ window .konga_version = " <%= konga_version %>" ;
101118 window .initAngular = false ;
102119 </script >
0 commit comments