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/auth-login.phtml
2014-04-27 16:01:50 +02:00

47 lines
1.5 KiB
PHTML

<?php
CustomAssetViewDecorator::setSubTitle('authentication form');
CustomAssetViewDecorator::addStylesheet('auth.css');
?>
<form action="<?= \Chibi\UrlHelper::route('auth', 'login') ?>" class="auth" method="post">
<p>
If you don't have an account yet,<br/>
<a href="<?= \Chibi\UrlHelper::route('user', 'registration'); ?>">click here</a> to create a new one.
</p>
<div class="form-row">
<label for="name">User name:</label>
<div class="input-wrapper"><input type="text" id="name" name="name"/></div>
</div>
<div class="form-row">
<label for="password">Password:</label>
<div class="input-wrapper"><input type="password" id="password" name="password"/></div>
</div>
<div class="form-row">
<label></label>
<div class="input-wrapper">
<button class="submit" type="submit">Log in</button>
&nbsp;
<input type="hidden" name="remember" value="0"/>
<label><input type="checkbox" name="remember" value="1"/> Remember me</label>
</div>
</div>
<?php $this->renderFile('message') ?>
<input type="hidden" name="submit" value="1"/>
<div class="form-row help">
<label></label>
<div>
<p>Problems logging in?</p>
<ul>
<li><a href="<?= \Chibi\UrlHelper::route('user', 'password-reset-proxy') ?>">I don't remember my password</a></li>
<li><a href="<?= \Chibi\UrlHelper::route('user', 'activation-proxy') ?>">I haven't received activation e-mail</a></li>
<li><a href="<?= \Chibi\UrlHelper::route('user', 'registration') ?>">I don't have an account</a></li>
</ul>
</div>
</div>
</form>