2014-02-01 11:17:02 +01:00
|
|
|
<?php
|
2014-05-16 21:38:33 +02:00
|
|
|
$this->assets->setSubTitle('registration form');
|
2014-02-01 11:17:02 +01:00
|
|
|
?>
|
|
|
|
|
2014-05-07 01:15:06 +02:00
|
|
|
<?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: ?>
|
2014-02-01 11:17:02 +01:00
|
|
|
<?php
|
2014-05-16 21:38:33 +02:00
|
|
|
$this->assets->addStylesheet('auth.css');
|
2014-02-01 11:17:02 +01:00
|
|
|
?>
|
|
|
|
|
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('●', 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('●', 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>
|
2013-11-30 14:22:49 +01:00
|
|
|
<button class="submit" type="submit">Register</button>
|
2013-10-05 12:55:03 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<?php endif ?>
|