{block name=metaTitle}Przypomnij hasło{/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">Przypomnij hasło</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="nowe-haslo" action=$response_get.token}" method="post" class="m-t">
				{assign var=element value=$_MODEL->getElement("password")}
				<div class="form-group">
					<input type="password" name="password" value="" class="form-control{if $element->isError()} is-invalid{/if}" placeholder="Hasło">
					{if $element->isError()}<div class="info_error">{$element->getError()}</div>{/if}
				</div>
				{assign var=element value=$_MODEL->getElement("repassword")}
				<div class="form-group">
					<input type="password" name="repassword" value="" class="form-control{if $element->isError()} is-invalid{/if}" placeholder="Powtórz hasło">
					{if $element->isError()}<div class="info_error">{$element->getError()}</div>{/if}
				</div>
				<button type="submit" name="__action" class="btn btn-primary block full-width m-b">Zmień hasło</button>
			</form>
		</div>
	</div>
{/block}