Start adding basic login infrastructure (still needs styling)
[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}
17 <div class="loginerror">
18 {$loginerror}
19 </div>
20 {/if}
21 <form method="post" action="{geturl action=login}">
22 <table>
23 <tr>
24 <td><label for="username">Username:</label></td>
25 <td><input type="text" name="username" {if $username}value="{$username}"{/if} /></td>
26 </tr>
27 <tr>
28 <td><label for="password">Password:</label></td>
29 <td><input type="password" name="password" /></td>
30 </tr>
31 <tr>
32 <td></td>
33 <td><input type="submit" value="Login" /></td>
34 </tr>
35 </table>
36 </form>
37 {/block}
38
comments