0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00
postfixadmin/templates/login.tpl
Christian Boltz b065366a91 Merge template for admin login and user login
login.php, users/login.php:
- set logintype=admin/user smarty variable
- cleanup: move smarty assignments outside of GET/POST handling - it's
  the same for both

users/login.php:
- do not pre-fill username on failed login

templates/login.tpl:
- merge in users_login.tpl
- add some {if} to handle the differences between admin and user login

templates/users_login.tpl:
- deleted

*.lang:
- mark pUsersLogin_username, pUsersLogin_password, pUsersLogin_language 
  and pUsersLogin_button as obsolete
- add some notes if pLogin_* and pUsersLogin differ


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1137 a1433add-5e2c-0410-b055-b7f2511e0802
2011-07-29 18:04:09 +00:00

43 lines
1.0 KiB
Smarty

<div id="login">
<form name="frmLogin" method="post" action="">
<table id="login_table" cellspacing="10">
<tr>
<th colspan="2">
{if $logintype=='admin'}{$PALANG.pLogin_welcome}
{else}{$PALANG.pUsersLogin_welcome}
{/if}
</th>
</tr>
<tr>
<td class="label"><label>{$PALANG.pLogin_username}:</label></td>
<td><input class="flat" type="text" name="fUsername" /></td>
</tr>
<tr>
<td class="label"><label>{$PALANG.pLogin_password}:</label></td>
<td><input class="flat" type="password" name="fPassword" /></td>
</tr>
<tr>
<td class="label"><label>{$PALANG.pLogin_language}:</label></td>
<td>{$language_selector}</td>
</tr>
<tr>
<td class="label">&nbsp;</td>
<td><input class="button" type="submit" name="submit" value="{$PALANG.pLogin_button}" /></td>
</tr>
{if $logintype == 'admin'}
<tr>
<td colspan="2"><a href="users/">{$PALANG.pLogin_login_users}</a></td>
</tr>
{/if}
</table>
</form>
{literal}
<script type="text/javascript">
<!--
document.frmLogin.fUsername.focus();
// -->
</script>
{/literal}
</div>