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 8fdc90bab7 Worked on #4, #1 and #2
Also:
- enhanced form stylesheets
- W3C validation
2013-10-15 00:41:04 +02:00

25 lines
762 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('auth', 'register'); ?>">click here</a> to create a new one.</p>
</div>
<div>
<label class="left" for="user">User name:</label>
<input id="user" name="user"/>
</div>
<div>
<label class="left" for="pass">Password:</label>
<input type="password" id="pass" name="pass"/>
</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>