Merge branch 'master' of http://git.gitphp.org/gitphp master
[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
39
40
{*
 * 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 error">
{$loginerror}
</div>
{/if}
<div class="loginForm">
  <form method="post" action="{geturl action=login}">
    <div class="field">
      <label for="username">{t}username:{/t}</label>
      <input type="text" name="username" id="username" {if $username}value="{$username}"{/if} autofocus />
    </div>
    <div class="field">
      <label for="password">{t}password:{/t}</label>
      <input type="password" name="password" id="password" />
    </div>
    {if $redirect}
    <input type="hidden" name="redirect" value="{$redirect|escape}" />
    {/if}
    <div class="submit">
    <input type="submit" value="{t}login{/t}" />
    </div>
  </form>
</div>
{/block}

comments