indefero/src/IDF/templates/idf/login_form.html

36 lines
1.2 KiB
HTML
Raw Normal View History

{extends "idf/base-simple.html"}
2011-02-23 12:31:45 +00:00
{block docclass}yui-t2{/block}
2008-07-25 08:26:05 +00:00
{block body}
<form method="post" action="{url 'IDF_Views::login'}">
<input type="hidden" name="_redirect_after" value="{$_redirect_after}" />
{if $error}
<p class="px-message-error">{$error}</p>
2008-07-25 08:26:05 +00:00
{/if}
2011-02-23 12:31:45 +00:00
<h3>{trans 'What is your account information?'}</h3>
<table class="form" summary="">
<tr>
<th class="a-r"><strong>{trans 'My login is'}</strong></th>
<td class="a-l"><input type="text" name="login" id="id_login" value="{$login}" /></th>
</tr>
<tr>
<th class="a-r"><strong>{trans 'My password is'}</strong></th>
<td class="a-l"><input type="password" name="password" id="id_password" /></th>
</tr>
</table>
2008-07-25 08:26:05 +00:00
<p><input type="submit" value="{trans 'Sign in'}" />
| <a href="{url 'IDF_Views::passwordRecoveryAsk'}">{trans 'I lost my password!'}</a>
2008-07-25 08:26:05 +00:00
</p>
</form>
<script type="text/javascript">
document.getElementById('id_login').focus()
</script>
{/block}
2011-02-23 12:31:45 +00:00
{block context}
<div class="issue-submit-info">
<h3>{trans 'Welcome.'}</h3>
<p>{trans 'If you don\'t have an account yet, you can create one'} <a href="{url 'IDF_Views::register', array()}">{trans 'here'}</a></p>
<p>{trans 'It takes less than a minute to create your account'}</p>
</div>
{/block}