{block name=metaTitle}Resetowanie hasła{/block}
{block name=body}
	<div class="passwordBox animated fadeInDown">
		<div class="row">
			<div class="col-md-12">
				<div class="ibox ">
					<div class="ibox-title">
						<div>
							<h2><strong>Resetowanie hasła</strong></h2>
							<div class="space_5"></div>
							<p>W pisz swój adres email. Hasło zostanie zresetowane.</p>
						</div>
					</div>
					<div class="ibox-content padding-top-0">
						{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}
						<div class="row">
							<div class="col-lg-12">
								<form role="form" action="{url controller="przypomnienie-hasla"}" method="post" class="m-t">
									{assign var=element_name value=$_MODEL->getElement("email")}
									<div class="form-group">
										<input type="email" 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>
									<button type="submit" name="__action" class="btn btn-primary block full-width m-b">Wyślij mi nowe hasło</button>
									<a href="{url controller="logowanie"}" class="btn btn-default block full-width">&laquo;&nbsp;Powrót do strony logowania</a>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
{/block}