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
Marcin Kurczewski c6754e5866 Closed #35; various tweaks
- All form.aligned inputs got wrapped with special div for easy width control
- Fixed edit jump bug
2013-10-19 20:58:51 +02:00

25 lines
844 B
PHTML

<form action="<?php echo \Chibi\UrlHelper::route('auth', 'login') ?>" class="auth aligned" method="post">
<div>
<p>If you don't have an account yet,<br/><a href="<?php echo \Chibi\UrlHelper::route('user', 'registration'); ?>">click here</a> to create a new one.</p>
</div>
<div>
<label class="left" for="name">User name:</label>
<div class="input-wrapper"><input id="name" name="name"/></div>
</div>
<div>
<label class="left" for="password">Password:</label>
<div class="input-wrapper"><input type="password" id="password" name="password"/></div>
</div>
<?php if (isset($this->context->transport->errorMessage)): ?>
<p class="alert alert-error">Error: <?php echo $this->context->transport->errorMessage ?></p>
<?php endif ?>
<div>
<label class="left"></label>
<button type="submit">Log in</button>
</div>
</form>