2013-10-05 12:55:03 +02:00
<?php if ( $this -> context -> transport -> success === true ) : ?>
< p > Congratulations, you are registered.< / p >
<?php if ( $this -> context -> transport -> emailActivation ) : ?>
< p > Please wait for activation e-mail.< / p >
<?php endif ?>
<?php if ( $this -> context -> transport -> adminActivation ) : ?>
< p > After this, an admin will have to confirm your registration.< / p >
<?php endif ?>
<?php else : ?>
2013-10-12 19:28:52 +02:00
< form action = " <?php echo \Chibi\UrlHelper :: route ( 'auth' , 'register' ) ?> " class = "auth" method = "post" >
2013-10-05 12:55:03 +02:00
< div >
2013-10-12 19:28:52 +02:00
< p > Registered users can view more content,< br / > upload files and add posts to favorites.< / p >
2013-10-05 12:55:03 +02:00
< / div >
< div >
2013-10-12 19:28:52 +02:00
< label for = "user" > User name:< / label >
< input id = "user" name = "user" value = " <?php echo $this -> context -> suppliedUser ?> " / placeholder = "e.g. darth_vader" autocomplete = "off" >
2013-10-05 12:55:03 +02:00
< / div >
< div >
< label for = "pass" > Password:< / label >
< input type = "password" id = "pass" name = "pass1" value = " <?php echo $this -> context -> suppliedPass1 ?> " placeholder = "e.g. <?php echo str_repeat ( '●' , 8 ) ?> " / autocomplete = "off" >
< / div >
< div >
< label for = "pass" > Password (repeat):< / label >
< input type = "password" id = "pass" name = "pass2" value = " <?php echo $this -> context -> suppliedPass2 ?> " placeholder = "e.g. <?php echo str_repeat ( '●' , 8 ) ?> " / autocomplete = "off" >
< / div >
2013-10-12 19:28:52 +02:00
< div >
< label for = "email" > E-mail address<?php if ( $this -> context -> transport -> emailActivation ) echo ' (required)' ?> :</ label >
< input id = "email" name = "email" value = " <?php echo $this -> context -> suppliedEmail ?> " placeholder = "e.g. vader@empire.gov" / autocomplete = "off" >
< / div >
< div >
< p id = "email-info" name = "email-info" > Your e-mail will be used to show your < a href = "http://gravatar.com/" > Gravatar< / a > .< br / > Leave blank for random Gravatar.< / p >
< / div >
<?php if ( isset ( $this -> context -> transport -> errorMessage )) : ?>
2013-10-12 22:37:18 +02:00
< div >
< p class = "alert alert-error" > Error: <?php echo $this -> context -> transport -> errorMessage ?> </ p >
< / div >
2013-10-12 19:28:52 +02:00
<?php endif ?>
2013-10-05 12:55:03 +02:00
< div >
2013-10-13 00:36:10 +02:00
< button type = "submit" > Register< / button >
2013-10-05 12:55:03 +02:00
< / div >
< / form >
<?php endif ?>