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/user-registration.phtml

83 lines
2.1 KiB
PHTML
Raw Normal View History

<?php
2014-05-16 21:38:33 +02:00
$this->assets->setSubTitle('registration form');
?>
<?php if (isset($this->context->transport->message) and $this->context->transport->success): ?>
2014-05-16 21:38:33 +02:00
<?php $this->renderExternal('message') ?>
2013-10-05 12:55:03 +02:00
<?php else: ?>
<?php
2014-05-16 21:38:33 +02:00
$this->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"
2014-05-04 14:57:44 +02:00
value="<?= htmlspecialchars(InputHelper::get('name')) ?>"
2014-04-27 15:59:29 +02:00
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"
2014-05-04 14:57:44 +02:00
value="<?= htmlspecialchars(InputHelper::get('password1')) ?>"
2014-04-27 15:59:29 +02:00
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"
2014-05-04 14:57:44 +02:00
value="<?= htmlspecialchars(InputHelper::get('password2')) ?>"
2014-04-27 15:59:29 +02:00
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"
2014-05-04 14:57:44 +02:00
value="<?= htmlspecialchars(InputHelper::get('email')) ?>"
2014-04-27 15:59:29 +02:00
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-05-16 21:38:33 +02:00
<?php $this->renderExternal('message') ?>
2013-10-12 19:28:52 +02:00
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 ?>