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

63 lines
1.9 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-05-20 17:03:47 +02:00
<?php
$context = new StdClass;
$context->name = 'name';
$context->label = 'User name';
$context->value = htmlspecialchars(InputHelper::get('name'));
$context->placeholder = 'e.g. darth_vader';
$context->noAutocomplete = true;
$this->renderExternal('input-text', $context);
$context = new StdClass;
$context->name = 'password1';
$context->label = 'Password';
$context->value = htmlspecialchars(InputHelper::get('password1'));
$context->placeholder = 'e.g. ' . str_repeat('&#x25cf;', 8);
$context->noAutocomplete = true;
$this->renderExternal('input-password', $context);
$context->name = 'password2';
$context->label = 'Password (repeat)';
$context->value = htmlspecialchars(InputHelper::get('password2'));
$this->renderExternal('input-password', $context);
$context = new StdClass;
$context->name = 'email';
$context->label = 'E-mail address';
$context->value = htmlspecialchars(InputHelper::get('email'));
$context->placeholder = 'e.g. vader@empire.gov';
$context->noAutocomplete = true;
$this->renderExternal('input-text', $context);
?>
2013-10-12 19:28:52 +02:00
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 ?>