This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
szurubooru/src/Views/user-registration.phtml

47 lines
2 KiB
PHTML
Raw Normal View History

<?php
2014-02-27 15:04:36 +01:00
CustomAssetViewDecorator::setSubTitle('registration form');
?>
2013-10-05 12:55:03 +02:00
<?php if ($this->context->transport->success === true): ?>
2013-11-16 18:40:26 +01:00
<?php $this->renderFile('message') ?>
2013-10-05 12:55:03 +02:00
<?php else: ?>
<?php
2014-02-27 15:04:36 +01:00
CustomAssetViewDecorator::addStylesheet('auth.css');
?>
<form action="<?php echo \Chibi\UrlHelper::route('auth', 'register') ?>" class="auth register" method="post">
2014-02-16 16:03:13 +01: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
2014-02-16 16:03:13 +01:00
<div class="form-row">
<label for="name">User name:</label>
2014-02-22 23:37:30 +01:00
<div class="input-wrapper"><input type="text" id="name" name="name" value="<?php echo htmlspecialchars($this->context->suppliedName) ?>" placeholder="e.g. darth_vader" autocomplete="off"/></div>
2013-10-05 12:55:03 +02:00
</div>
2014-02-16 16:03:13 +01:00
<div class="form-row">
<label for="password1">Password:</label>
2014-02-22 23:37:30 +01:00
<div class="input-wrapper"><input type="password" id="password1" name="password1" value="<?php echo htmlspecialchars($this->context->suppliedPassword1) ?>" placeholder="e.g. <?php echo str_repeat('&#x25cf;', 8) ?>" autocomplete="off"/></div>
2013-10-05 12:55:03 +02:00
</div>
2014-02-16 16:03:13 +01:00
<div class="form-row">
<label for="password2">Password (repeat):</label>
2014-02-22 23:37:30 +01:00
<div class="input-wrapper"><input type="password" id="password2" name="password2" value="<?php echo htmlspecialchars($this->context->suppliedPassword2) ?>" placeholder="e.g. <?php echo str_repeat('&#x25cf;', 8) ?>" autocomplete="off"/></div>
2013-10-05 12:55:03 +02:00
</div>
2014-02-16 16:03:13 +01:00
<div class="form-row">
<label for="email">E-mail address:</label>
2014-02-22 23:37:30 +01:00
<div class="input-wrapper"><input type="text" id="email" name="email" value="<?php echo htmlspecialchars($this->context->suppliedEmail) ?>" placeholder="e.g. vader@empire.gov" autocomplete="off"/></div>
2013-10-12 19:28:52 +02:00
</div>
2014-02-16 16:03:13 +01: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
2014-02-16 16:03:13 +01:00
<?php $this->renderFile('message') ?>
2013-10-12 19:28:52 +02:00
2013-10-22 11:40:10 +02:00
<input type="hidden" name="submit" value="1"/>
2014-02-16 16:03:13 +01:00
<div class="form-row">
<label></label>
<button class="submit" type="submit">Register</button>
2013-10-05 12:55:03 +02:00
</div>
</form>
<?php endif ?>