{* lost username confirm template form *}
<h4>{$mod->Lang('title_lostusername')}</h4>
<div class="alert alert-info">{$mod->Lang('info_lostusername')}</div>
{if isset($message)}<div class="alert alert-danger">{$message}</div>{/if}
{if count($controls)}
  {$startform}
    <input type="hidden" name="{$actionid}mams__data" value=""/>{* simple honeypot captcha *}
    {foreach from=$controls item='entry'}
       <div class="row">
          <div class="col-sm-4 text-right">{$entry->prompt}</div>
          <div class="col-sm-8">
	    {if $entry->type == '_password'}
	      <input type="password" name="{$entry->fldname}" value="{$entry->val}" size="{$entry->length}" maxlength="{$entry->maxlength}"/>
	      <br/>{$mod->Lang('info_lostun_pwfield')}
	    {else if $entry->type == 0}
	      {* text *}
	      <input type="text" name="{$entry->fldname}" value="{$entry->val}" size="{$entry->length}" maxlength="{$entry->maxlength}"/>
	      <br/>{$mod->Lang('info_lostun_textfield')}
	    {elseif $entry->type == 1}
	      {* checkbox *}
	      <input type="checkbox" name="{$entry->fldname}" value="1" {if $entry->val}checked{/if}/>
	    {elseif $entry->type == 2}
	      {* email *}
	      <input type="email" name="{$entry->fldname}" value="{$entry->val}" size="{$entry->length}" maxlength="{$entry->maxlength}"/>
	    {elseif $entry->type == 3}
	      {* textarea *}
	      <textarea name="{$entry->fldname}" rows="3" cols="50">{$entry->val}</textarea>
	      <br/>{$mod->Lang('info_lostun_textarea')}
	    {elseif $entry->type == 4}
	      {* dropdown *}
	      <select name="{$entry->fldname}">
	        <option value="">{$mod->Lang('donotknow')}</option>
		{html_options options=$entry->options selected=$entry->val}
	      </select>
	    {elseif $entry->type == 5}
	      {* multiselect *}
	      <select name="{$entry->fldname}[]" multiple size="{$entry->length}">
		{html_options options=$entry->options selected=$entry->val}
	      </select>
	    {elseif $entry->type == 7}
	      {* radiobtns *}
	      {foreach $entry->options as $key => $val}
	        <label><input type="radio" name="{$entry->fldname}" value="{$key}" {if $key == $entry->val}checked{/if}/> {$val}</label>
	        {if !$val@last}<br/>{/if}
	      {/foreach}
	    {elseif $entry->type == 8}
	      {* date *}
	      {html_select_date prefix=$entry->fldname start_year=$entry->start_year end_year=$entry->end_year time=$entry->val all_empty='--'}
	    {/if}
	  </div>
       </div>
    {/foreach}
    {if isset($captcha)}
      <div class="row">
        <p class="col-sm-4 text-right">{$captcha_title}</p>
        <div class="col-sm-8">{$captcha}
          {if $need_captcha_input}
          <div class="row col-sm-12">
            <input type="text" name="{$actionid}mams_input_captcha" size="10"/>
          </div>
          {/if}
	</div>
      </div>
    {/if}
    <div class="row">
      <div class="col-sm-4 text-right"></div>
      <div class="col-sm-8">
        <input type="submit" name="{$actionid}mams_submit" value="{$mod->Lang('submit')}"/>
        <input type="submit" name="{$actionid}mams_cancel" value="{$mod->Lang('cancel')}"/>
      </div>
    </div>
  {$endform}
{/if}
