{* $Id: tiki-remind_password.tpl 68092 2018-10-24 02:22:02Z xorti $ *}
{title admpage='login'}{tr}I forgot my password{/tr}{/title}

{if $showmsg ne 'n'}
	{if $showmsg eq 'e'}
		<span class="warn tips" title=":{tr}Error{/tr}">{icon name='error' style="vertical-align:middle;align:left;"}
	{else}
		{icon name='ok' alt="{tr}OK{/tr}" style="vertical-align:middle;align:left;"}
	{/if}
	{if $prefs.login_is_email ne 'y'}
		{$msg|escape:'html'|@default:"{tr}Enter your username or email.{/tr}"}
	{else}
		{$msg|escape:'html'|@default:"{tr}Enter your email.{/tr}"}
	{/if}
	{if $showmsg eq 'e'}
		</span>
	{/if}
	<br><br>
{/if}
{if $showfrm eq 'y'}
<div>
	<form action="tiki-remind_password.php" method="post">
		{if $prefs.login_is_email ne 'y'}
			<div class="form-group row">
				<label class="col-sm-3 col-md-2 col-form-label" for="name">{tr}Username{/tr}</label>
				<div class="col-sm-6">
					<input type="text" class="form-control" placeholder="{tr}Username{/tr}" name="name" id="name">
				</div>
			</div>
			<div class="form-group row">
				<div class="offset-sm-3 offset-md-2 col-sm-9 offset-xs-0">
					<strong>{tr}OR{/tr}</strong>
				</div>
			</div>
		{/if}
		<div class="form-group row">
			<label class="col-sm-3 col-md-2 col-form-label" for="email">{tr}Email{/tr}</label>
			<div class="col-sm-6">
				{if $prefs.login_is_email ne 'y'}
					<input type="email" class="form-control" placeholder="{tr}Email{/tr}" name="email" id="email">
				{else}
					<input type="email" class="form-control" placeholder="{tr}Email{/tr}" name="name" id="name">
				{/if}
			</div>
		</div>
		<div class="form-group row">
			<div class="offset-sm-3 offset-md-2 col-sm-9">
				<input type="submit" class="btn btn-primary" name="remind" value="{tr}Request Password Reset{/tr}">
			</div>
		</div>
	</form>
</div>
{/if}
