<form action="{S_LOGIN_ACTION}" method="post">

<input type="hidden" name="redirect" value="{REDIRECT_URL}" />
<!-- IF ADMIN_LOGIN --><input type="hidden" name="admin" value="1" /><!-- ENDIF -->

<div class="login-box">
	<div class="login-logo">
		<a href="{SITE_URL}">{SITENAME}</a>
	</div>
	<div class="login-box-body">
		<!-- IF ADMIN_LOGIN -->
		<p class="login-box-msg">{L_ADMIN_REAUTHENTICATE}</p>
		<!-- ELSE -->
		<p class="login-box-msg">{L_ENTER_PASSWORD}</p>
		<!-- ENDIF -->
		<div class="form-group has-feedback">
			<input type="text" class="form-control" placeholder="{L_USERNAME}" name="login_username" value="{LOGIN_USERNAME}"<!-- IF ADMIN_LOGIN --> readonly="readonly"<!-- ENDIF --> />
			<span class="glyphicon glyphicon-user form-control-feedback"></span>
		</div>
		<div class="form-group has-feedback">
			<input type="password" class="form-control" placeholder="{L_PASSWORD}" name="login_password" value="{LOGIN_PASSWORD}">
			<span class="glyphicon glyphicon-lock form-control-feedback"></span>
		</div>
		<!-- IF CAPTCHA_HTML -->
		<div class="form-group has-feedback">
			{CAPTCHA_HTML}
		</div>
		<!-- ENDIF -->
		<div class="row">
			<div class="col-xs-8">
			<div class="checkbox" style="margin-top: 0;">
				<label><input type="checkbox" name="autologin"<!-- IF ADMIN_LOGIN || AUTOLOGIN_DISABLED --> disabled="disabled"<!-- ELSE -->checked="checked"<!-- ENDIF -->> {L_AUTO_LOGIN}</label>
			</div>
			</div>
			<div class="col-xs-4">
				<button type="submit" name="login" class="btn btn-primary btn-block btn-flat">{L_LOGIN}</button>
			</div>
		</div>
		<a href="{U_SEND_PASSWORD}">{L_FORGOTTEN_PASSWORD}</a>
	</div>
</div>

</form>