You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postfixadmin/templates/bootstrap/login.tpl

58 lines
1.9 KiB
Smarty

<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href='main.php'><img id="login_header_logo" src="{$CONF.theme_logo}" alt="Logo" /></a>
{if $CONF.show_header_text==='YES' && $CONF.header_text}
<h2>{$CONF.header_text}</h2>
{/if}
</div>
</div>
</nav>
<div id="login" class="container text-center">
<h2>{if $logintype=='admin'}{$PALANG.pLogin_welcome}
{else}{$PALANG.pUsersLogin_welcome}
{/if}</h2>
<div class="well">
<form name="frmLogin" method="post" action="" role="form" class="form-signin">
<input class="flat" type="hidden" name="token" value="{$smarty.session.PFA_token|escape:"url"}" />
<div class="form-group">
<label class="control-label" for="fUsername">{$PALANG.pLogin_username}:</label>
<input class="flat form-control" type="text" name="fUsername" id="fUsername" />
</div>
<div class="form-group">
<label class="control-label" for="fPassword">{$PALANG.password}:</label>
<input class="flat form-control" type="password" name="fPassword" id="fPassword" />
</div>
{if $forgotten_password_reset}
<div class="form-group row">
<div class="col-sm-6 col-sm-offset-3 reset-button">
<a class="btn btn-default btn-block" role="button" href="password-recover.php"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> {$PALANG.pUsersLogin_password_recover}</a>
</div>
</div>
{/if}
<div class="form-group">
<label class="control-label">{$PALANG.pLogin_language}:</label>
{$language_selector}
</div>
<div class="text-center">
<input class="btn btn-primary btn-lg btn-block" type="submit" name="submit" value="{$PALANG.pLogin_button}" />
</div>
</form>
{if $logintype == 'admin'}
<br/>
<div class="text-center">
<a href="users/">{$PALANG.pLogin_login_users}</a>
</div>
{/if}
</div>
{literal}
<script type="text/javascript">
<!--
document.frmLogin.fUsername.focus();
// -->
</script>
{/literal}
</div>