Merge pull request #11 from bessl/patch-2
[gitphp.git] / templates / login.tpl
Chris Han 1 {*
2 * Login template
3 *
4 * @author Christopher Han <xiphux@gmail.com>
5 * @copyright Copyright (c) 2012 Christopher Han
6 * @package GitPHP
7 * @subpackage Template
8 *}
9 {extends file='main.tpl'}
10
11 {block name=header}
12 <a href="{geturl}">{if $homelink}{$homelink}{else}{t}projects{/t}{/if}</a> / {if $actionlocal}{$actionlocal}{/if}
13 {/block}
14
15 {block name=main}
16 {if $loginerror}
Chris Han 17 <div class="loginError error">
Chris Han 18 {$loginerror}
19 </div>
20 {/if}
Chris Han 21 <div class="loginForm">
22 <form method="post" action="{geturl action=login}">
23 <div class="field">
24 <label for="username">{t}username:{/t}</label>
Chris Han 25 <input type="text" name="username" {if $username}value="{$username}"{/if} autofocus />
Chris Han 26 </div>
27 <div class="field">
28 <label for="password">{t}password:{/t}</label>
Chris Han 29 <input type="password" name="password" />
Chris Han 30 </div>
31 {if $redirect}
32 <input type="hidden" name="redirect" value="{$redirect|escape}" />
33 {/if}
Chris Han 34 <div class="submit">
Chris Han 35 <input type="submit" value="{t}login{/t}" />
Chris Han 36 </div>
Chris Han 37 </form>
38 </div>
Chris Han 39 {/block}
40
comments