szurubooru/client/html/login.tpl
2016-08-05 23:02:41 +02:00

38 lines
1.2 KiB
Smarty

<div class='content-wrapper' id='login'>
<h1>Log in</h1>
<form>
<div class='input'>
<ul>
<li>
<%= ctx.makeTextInput({
text: 'User name',
name: 'name',
required: true,
pattern: ctx.userNamePattern,
}) %>
</li>
<li>
<%= ctx.makePasswordInput({
text: 'Password',
name: 'password',
required: true,
pattern: ctx.passwordPattern,
}) %>
</li>
<li>
<%= ctx.makeCheckbox({
text: 'Remember me',
name: 'remember-user',
}) %>
</li>
</ul>
</div>
<div class='messages'></div>
<div class='buttons'>
<input type='submit' value='Log in'/>
<% if (ctx.canSendMails) { %>
<a class='append' href='/password-reset'>Forgot the password?</a>
<% } %>
</div>
</form>
</div>