Start adding basic login infrastructure (still needs styling)
[gitphp.git] / templates / login.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{*
 * Login template
 *
 * @author Christopher Han <xiphux@gmail.com>
 * @copyright Copyright (c) 2012 Christopher Han
 * @package GitPHP
 * @subpackage Template
 *}
{extends file='main.tpl'}

{block name=header}
  <a href="{geturl}">{if $homelink}{$homelink}{else}{t}projects{/t}{/if}</a> / {if $actionlocal}{$actionlocal}{/if}
{/block}

{block name=main}
{if $loginerror}
<div class="loginerror">
{$loginerror}
</div>
{/if}
<form method="post" action="{geturl action=login}">
<table>
  <tr>
    <td><label for="username">Username:</label></td>
    <td><input type="text" name="username" {if $username}value="{$username}"{/if} /></td>
  </tr>
  <tr>
    <td><label for="password">Password:</label></td>
    <td><input type="password" name="password" /></td>
  </tr>
  <tr>
    <td></td>
    <td><input type="submit" value="Login" /></td>
  </tr>
</table>
</form>
{/block}

comments