szurubooru/src/Views/user-registration.phtml

53 lines
2.1 KiB
PHTML
Raw Normal View History

2013-10-05 12:55:03 +02:00
<?php if ($this->context->transport->success === true): ?>
2013-10-16 18:07:23 +02:00
<p class="alert alert-success">Congratulations, your account was created.
<?php if (!empty($this->context->mailSent)): ?>
<br>Please wait for activation e-mail.
<?php if ($this->config->registration->staffActivation): ?>
<br>After this, your registration must be confirmed by staff.
<?php endif ?>
2013-10-16 18:07:23 +02:00
<?php elseif ($this->config->registration->staffActivation): ?>
<br>Your registration must be now confirmed by staff.
<?php endif ?></p>
2013-10-05 12:55:03 +02:00
<?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="name">User name:</label>
<input id="name" name="name" value="<?php echo $this->context->suppliedName ?>" placeholder="e.g. darth_vader" autocomplete="off"/>
2013-10-05 12:55:03 +02:00
</div>
<div>
<label class="left" for="password1">Password:</label>
<input type="password" id="password1" name="password1" value="<?php echo $this->context->suppliedPassword1 ?>" 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="password2">Password (repeat):</label>
<input type="password" id="password2" name="password2" value="<?php echo $this->context->suppliedPassword2 ?>" 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>
2013-10-16 18:07:23 +02:00
<label class="left" for="email">E-mail address:</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 ?>