szurubooru/src/Views/auth-register.phtml

53 lines
2.2 KiB
PHTML
Raw Normal View History

2013-10-05 12:55:03 +02:00
<?php if ($this->context->transport->success === true): ?>
<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>
<?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: ?>
<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>
<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>
<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('&#x25cf;', 8) ?>" autocomplete="off"/>
2013-10-05 12:55:03 +02:00
</div>
<div>
<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('&#x25cf;', 8) ?>" autocomplete="off"/>
2013-10-05 12:55:03 +02:00
</div>
2013-10-12 19:28:52 +02:00
<div>
<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>
<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>
<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 ?>