2013-10-05 12:55:03 +02:00
|
|
|
<?php if ($this->context->transport->success === true): ?>
|
2013-10-13 13:53:24 +02:00
|
|
|
<p>Congratulations, your account was created.</p>
|
2013-10-05 12:55:03 +02:00
|
|
|
<?php if ($this->context->transport->emailActivation): ?>
|
|
|
|
<p>Please wait for activation e-mail.</p>
|
2013-10-13 13:53:24 +02:00
|
|
|
<?php if ($this->context->transport->staffActivation): ?>
|
|
|
|
<p>After this, your registration must be confirmed by staff.</p>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php elseif ($this->context->transport->staffActivation): ?>
|
|
|
|
<p>Your registration must be confirmed by staff.</p>
|
2013-10-05 12:55:03 +02:00
|
|
|
<?php endif ?>
|
|
|
|
<?php else: ?>
|
2013-10-15 00:41:04 +02:00
|
|
|
<form action="<?php echo \Chibi\UrlHelper::route('auth', 'register') ?>" class="auth aligned" 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-15 00:41:04 +02:00
|
|
|
<label class="left" 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>
|
2013-10-15 00:41:04 +02:00
|
|
|
<label class="left" for="pass1">Password:</label>
|
|
|
|
<input type="password" id="pass1" name="pass1" value="<?php echo $this->context->suppliedPass1 ?>" placeholder="e.g. <?php echo str_repeat('●', 8) ?>" autocomplete="off"/>
|
2013-10-05 12:55:03 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2013-10-15 00:41:04 +02:00
|
|
|
<label class="left" for="pass2">Password (repeat):</label>
|
|
|
|
<input type="password" id="pass2" name="pass2" value="<?php echo $this->context->suppliedPass2 ?>" placeholder="e.g. <?php echo str_repeat('●', 8) ?>" autocomplete="off"/>
|
2013-10-05 12:55:03 +02:00
|
|
|
</div>
|
|
|
|
|
2013-10-12 19:28:52 +02:00
|
|
|
<div>
|
2013-10-15 00:41:04 +02:00
|
|
|
<label class="left" 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"/>
|
2013-10-12 19:28:52 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2013-10-15 00:41:04 +02:00
|
|
|
<p id="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>
|
2013-10-12 19:28:52 +02:00
|
|
|
</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-15 00:41:04 +02:00
|
|
|
<label class="left"></label>
|
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 ?>
|