{block name=body}
	<div class="row">
		<div class="col-12">
			<h2>Zaloguj się</h2>
			<form action="{url controller="logowanie"}{if !empty($url_redirect)}?url={$url_redirect}{/if}" method="post">
				{assign var=element_name value=$_MODEL->getElement("email")}
				<div class="form-group">
					<label>Adres e-mail</label>
					<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="invalid-feedback">{$element_name->getError()}</div>{/if}
				</div>
				{assign var=element_name value=$_MODEL->getElement("password")}
				<div class="form-group">
					<label>Hasło</label>
					<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="invalid-feedback">{$element_name->getError()}</div>{/if}
				</div>
				<button type="submit" name="__action" class="btn btn-primary">Zaloguj się</button> | <a href="{url controller="przypomnienie-hasla"}">Nie pamiętam hasła</a>
			</form>
		</div>
	</div>
{/block}