From 6e0b5b742c5b11dc0e8f181926c401bb892aab3b Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 3 Mar 2015 11:32:54 +0100 Subject: login adjustment --- boot.php | 4 ++-- view/theme/redbasic/css/style.css | 2 +- view/tpl/login.tpl | 22 ++++++---------------- 3 files changed, 9 insertions(+), 19 deletions(-) diff --git a/boot.php b/boot.php index 06813099f..4ed5d34c4 100755 --- a/boot.php +++ b/boot.php @@ -1553,7 +1553,7 @@ function login($register = false, $form_id = 'main-login', $hiddens=false) { '$form_id' => $form_id, '$lname' => array('username', t('Email') , '', ''), '$lpassword' => array('password', t('Password'), '', ''), - '$remember' => array('remember', t('Remember me'), '', ''), + '$remember' => array('remember', t('Remember me'), '', '',array(t('No'),t('Yes'))), '$hiddens' => $hiddens, '$register' => $reg, '$lostpass' => t('Forgot your password?'), @@ -2339,4 +2339,4 @@ function check_cron_broken() { . 'Content-transfer-encoding: 8bit' ); set_config('system','lastpollcheck',datetime_convert()); return; -} \ No newline at end of file +} diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index fc32b8046..8a24f37ab 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -282,7 +282,7 @@ footer { } #login-main { - max-width: 300px; + max-width: 273px; margin-top: 50px; } diff --git a/view/tpl/login.tpl b/view/tpl/login.tpl index 7bde90c23..9472bd961 100755 --- a/view/tpl/login.tpl +++ b/view/tpl/login.tpl @@ -1,29 +1,19 @@
-
- {{include file="field_input.tpl" field=$lname}} - {{include file="field_password.tpl" field=$lpassword}} +
+ {{include file="field_input.tpl" field=$lname}} + {{include file="field_password.tpl" field=$lpassword}} + {{include file="field_checkbox.tpl" field=$remember}} +
- -
- - {{include file="field_checkbox.tpl" field=$remember}} - -
- -
- -
- {{foreach $hiddens as $k=>$v}} {{/foreach}} - -- cgit v1.2.3