Also use system_message template for site lock

This commit is contained in:
Kijin Sung 2016-02-09 10:55:26 +09:00
parent bc33e8f478
commit 95f8bf9a43
4 changed files with 41 additions and 12 deletions

View file

@ -5,6 +5,7 @@
<div id="access">
<div class="login-header">
<h1>{$system_message}</h1>
<div class="message" cond="defined('_XE_SITELOCK_MESSAGE_')">{constant('_XE_SITELOCK_MESSAGE_')}</div>
</div>
<div cond="!$is_logged">
<div class="login-body">
@ -20,15 +21,21 @@
<input type="text" name="user_id" id="uid" title="{$lang->user_id}" placeholder="{$lang->user_id}" required autofocus cond="$member_config->identifier != 'email_address'" />
<input type="email" name="user_id" id="uid" title="{$lang->email_address}" placeholder="{$lang->email_address}" required autofocus cond="$member_config->identifier == 'email_address'" />
<input type="password" name="password" id="upw" title="{$lang->password}" placeholder="{$lang->password}" required />
<label for="keepid">
<label for="keepid" cond="!defined('_XE_SITELOCK_MESSAGE_')">
<input type="checkbox" name="keep_signed" id="keepid" class="inputCheck" value="Y" onclick="jQuery('#warning')[(jQuery('#keepid:checked').size()&gt;0?'addClass':'removeClass')]('open');" />
{$lang->keep_signed}
</label>
</div>
<p><button type="submit" class="button" href="#" onclick="$('#message_login_form').submit()">{$lang->cmd_login}</button></p>
<p><button type="submit" class="button" href="#" onclick="$('#message_login_form').submit()">
<!--@if(defined('_XE_SITELOCK_MESSAGE_'))-->
{$lang->msg_administrator_login}
<!--@else-->
{$lang->cmd_login}
<!--@end-->
</button></p>
</form>
</div>
<div class="login-footer">
<div class="login-footer" cond="!defined('_XE_SITELOCK_MESSAGE_')">
<a href="{getUrl('', 'act', 'dispMemberFindAccount')}">{$lang->cmd_find_member_account}</a>
<span class="bar">|</span>
<a href="{getUrl('', 'act', 'dispMemberSignUpForm')}">{$lang->cmd_signup}</a>