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

85 lines
2.1 KiB
PHTML
Raw Normal View History

<?php
2014-04-29 21:35:29 +02:00
Assets::setSubTitle('registration form');
?>
2013-10-05 12:55:03 +02:00
<?php if ($this->context->transport->success === true): ?>
2014-04-29 21:35:29 +02:00
<?php \Chibi\View::render('message', $this->context) ?>
2013-10-05 12:55:03 +02:00
<?php else: ?>
<?php
2014-04-29 21:35:29 +02:00
Assets::addStylesheet('auth.css');
?>
2014-04-30 00:11:13 +02:00
<form
action="<?= \Chibi\Router::linkTo(['UserController', 'registrationAction']) ?>"
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-04-27 15:59:29 +02:00
<div class="input-wrapper">
<input
type="text"
id="name"
name="name"
value="<?= 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-04-27 15:59:29 +02:00
<div class="input-wrapper">
<input
type="password"
id="password1"
name="password1"
value="<?= htmlspecialchars($this->context->suppliedPassword1) ?>"
placeholder="e.g. <?= 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-04-27 15:59:29 +02:00
<div class="input-wrapper">
<input
type="password"
id="password2"
name="password2"
value="<?= htmlspecialchars($this->context->suppliedPassword2) ?>"
placeholder="e.g. <?= 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-04-27 15:59:29 +02:00
<div class="input-wrapper">
<input
type="text"
id="email"
name="email"
value="<?= htmlspecialchars($this->context->suppliedEmail) ?>"
placeholder="e.g. vader@empire.gov" autocomplete="off"/>
</div>
2013-10-12 19:28:52 +02:00
</div>
2014-04-27 15:59:29 +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
2014-04-29 21:35:29 +02:00
<?php \Chibi\View::render('message', $this->context) ?>
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 ?>