{block name=metaTitle}Logowanie{/block}
{block name=body}
	<div class="middle-box text-center loginscreen animated fadeInDown">
		<div>
			<div>
				<div class="page_login_logo"><svg><use xlink:href="{url mode="root"}theme/dobry-start/images/icons/svg/sprite.svg#shape-logo"/></svg></div>
			</div>
			<h3 class="cclear color_222">Zaloguj się do serwisu</h3>
			{if count($_FLASH_MESSAGES)>0}
				{foreach from=$_FLASH_MESSAGES item=message}
					{assign var="type_class" value="alert-success"}
					{if $message.type == 2}
						{assign var="type_class" value="alert-warning"}
					{else if $message.type == 3}
						{assign var="type_class" value="alert-danger"}
					{/if}
					<div class="info_error">{$message.message}</div>
				{/foreach}
			{/if}
			<form role="form" action="{url controller="logowanie"}{if !empty($url_redirect)}?url={$url_redirect}{/if}" method="post" class="m-t">
				{assign var=element_name value=$_MODEL->getElement("email")}
				<div class="form-group">
					<input type="text" name="email" value="{htmlspecialchars($element_name->getValue())}" class="form-control{if $element_name->isError()} is-invalid{/if}" placeholder="Adres e-mail">
					{if $element_name->isError()}<div class="info_error">{$element_name->getError()}</div>{/if}
				</div>
				{assign var=element_name value=$_MODEL->getElement("password")}
				<div class="form-group">
					<input type="password" name="password" value="" class="form-control{if $element_name->isError()} is-invalid{/if}" placeholder="Hasło">
					{if $element_name->isError()}<div class="info_error">{$element_name->getError()}</div>{/if}
				</div>
				<button type="submit" name="__action" class="btn btn-primary block full-width m-b">Zaloguj się</button>
				<a href="{url controller="przypomnienie-hasla"}"><small>Nie pamiętasz hasła?</small></a>
			</form>
		</div>
	</div>
{/block}
{block name=body_ue}
	<div class="ue_logo_w fadeInDown animated">
		<div class="space space_20 clear"></div>
		<div class="ue_logo"><img src="{url mode="root"}theme/dobry-start/images/ue.jpg" alt=""></div>
	</div>
{/block}