24 lines
1.5 KiB
Smarty
24 lines
1.5 KiB
Smarty
|
|
<form id="login" method="post" action="{$smarty.const.BLOG_BASEURL}login.php" enctype="multipart/form-data">
|
|
<div class="input-group">
|
|
{if isset($error) && isset($error.user)}
|
|
<input placeholder="{$lang.login.user}" class="input_gray mb-0 mt-3 form-control w-100 mw-100 {$error.user|notempty:'field-error'}" type="text" name="user" id="user" {if isset($smarty.post.user)}value="{$smarty.post.user|wp_specialchars:true}"{/if} />
|
|
{elseif isset($smarty.post.user)}
|
|
<input placeholder="{$lang.login.user}" class="input_gray mb-0 mt-3 form-control w-100 mw-100" type="text" name="user" id="user" {if $smarty.post.user}value="{$smarty.post.user|wp_specialchars:true}"{/if} /></p>
|
|
{else}
|
|
<input placeholder="{$lang.login.user}" class="input_gray mb-0 mt-3 form-control w-100 mw-100" type="text" name="user" id="user" /></p>
|
|
{/if}
|
|
</div>
|
|
<div class="input-group">
|
|
{if isset($error) && isset($error.pass)}
|
|
<input placeholder="{$lang.login.pass}" type="password" class="input_gray form-control w-100 mw-100 mt-3 {$error.pass|notempty:'field-error'}" name="pass" id="pass"/>
|
|
{else}
|
|
<input placeholder="{$lang.login.pass}" type="password" class="input_gray form-control w-100 mw-100 mt-3" name="pass" id="pass" /></p>
|
|
{/if}
|
|
</div>
|
|
<div class="buttonbar text-center">
|
|
<input type="submit" name="submit" id="submit" value="{$lang.login.submit}" class="btn btn-primary shadow mt-3" />
|
|
{* <input type="submit" name="forgot" id="forgot" value="{$lang.login.forgot}" /> *}
|
|
</div>
|
|
</form>
|