mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-31 02:10:37 +02:00
UI Improvements - Admin - Login page updates #194
This commit is contained in:
@@ -82,6 +82,9 @@ if (Request::post('login_submit')) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Notification::set('error', $login_error);
|
||||
|
||||
}
|
||||
|
||||
// Errors
|
||||
@@ -117,13 +120,13 @@ if (Request::post('reset_password_submit')) {
|
||||
$mail->AddReplyTo(Option::get('system_email'));
|
||||
$mail->AddAddress($user['email'], $user['login']);
|
||||
$mail->Subject = __('Your login details for :site_name', 'users', array(':site_name' => $site_name));
|
||||
$mail->MsgHTML(View::factory('box/users/views/emails/layout_email')
|
||||
$mail->MsgHTML(View::factory('box/emails/views/emails/email_layout')
|
||||
->assign('site_url', $site_url)
|
||||
->assign('site_name', $site_name)
|
||||
->assign('user_id', $user['id'])
|
||||
->assign('user_login', $user['login'])
|
||||
->assign('new_hash', $new_hash)
|
||||
->assign('view', 'reset_password_email')
|
||||
->assign('email_template', 'reset-password')
|
||||
->render());
|
||||
$mail->Send();
|
||||
|
||||
|
@@ -92,6 +92,20 @@ footer span {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
/* Admin Form */
|
||||
.form-signin {
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
.form-signin {
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.form-signin .administration-area,
|
||||
.form-signin .reset-password-area {
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
/* Dropdown Menu */
|
||||
.dropdown-menu .divider {
|
||||
background-color: #555454;
|
||||
@@ -108,6 +122,10 @@ footer span {
|
||||
}
|
||||
|
||||
/* Navbar */
|
||||
.navbar-inverse .navbar-nav > li > a {
|
||||
color: #eee;
|
||||
}
|
||||
|
||||
.navbar-inverse {
|
||||
background: #222;
|
||||
}
|
||||
|
@@ -59,13 +59,18 @@
|
||||
</head>
|
||||
<body class="login-body">
|
||||
|
||||
<?php
|
||||
// Monstra Notifications
|
||||
Notification::get('success') AND Alert::success(Notification::get('success'));
|
||||
Notification::get('warning') AND Alert::warning(Notification::get('warning'));
|
||||
Notification::get('error') AND Alert::error(Notification::get('error'));
|
||||
?>
|
||||
|
||||
<div class="container form-signin">
|
||||
|
||||
<div style="text-align:center;"><a class="brand" href="<?php echo Option::get('siteurl'); ?>/admin"><img src="<?php echo Option::get('siteurl'); ?>/public/assets/img/monstra-logo.png" height="27" width="171" alt="monstra" /></a></div>
|
||||
<div class="administration-area">
|
||||
<hr>
|
||||
<div class="text-center"><a class="brand" href="<?php echo Option::get('siteurl'); ?>/admin"><img src="<?php echo Option::get('siteurl'); ?>/public/assets/img/monstra-logo-256px.png" alt="monstra" /></a></div>
|
||||
<div class="administration-area well">
|
||||
<div>
|
||||
<h2 class="text-center"><?php echo __('Administration', 'system'); ?></h2><br>
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<label><?php echo __('Username', 'users'); ?></label>
|
||||
@@ -75,19 +80,15 @@
|
||||
<label><?php echo __('Password', 'users'); ?></label>
|
||||
<input class="form-control" name="password" type="password" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<?php if (isset($login_error) && $login_error !== '') { ?><div class="alert alert-error"><?php echo $login_error; ?></div><?php } ?>
|
||||
<div class="form-group">
|
||||
<input type="submit" name="login_submit" class="btn btn-primary" value="<?php echo __('Log In', 'users'); ?>" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="reset-password-area">
|
||||
<hr>
|
||||
<div class="reset-password-area well">
|
||||
<div>
|
||||
<h2 style="text-align:center;"><?php echo __('Reset Password', 'users'); ?></h2><br>
|
||||
<?php if (Notification::get('success')) Alert::success(Notification::get('success')); ?>
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<label><?php echo __('Username', 'users'); ?></label>
|
||||
@@ -110,17 +111,17 @@
|
||||
}
|
||||
?>
|
||||
<div class="form-group">
|
||||
<input type="submit" name="reset_password_submit" class="btn btn-primary" value="<?php echo __('Send New Password', 'users')?>" />
|
||||
<input type="submit" name="reset_password_submit" class="btn btn-primary" value="<?php echo __('Get New Password', 'users')?>" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
<div>
|
||||
<div class="text-center">
|
||||
<a class="small-grey-text" href="<?php echo Option::get('siteurl'); ?>"><?php echo __('< Back to Website', 'system');?></a> -
|
||||
<a class="small-grey-text reset-password-btn" href="javascript:;"><?php echo __('Forgot your password? >', 'system');?></a>
|
||||
<a class="small-grey-text administration-btn" href="javascript:;"><?php echo __('Administration >', 'system');?></a>
|
||||
<a class="small-grey-text" href="<?php echo Option::get('siteurl'); ?>"><?php echo __('Back to Website', 'system');?></a> -
|
||||
<a class="small-grey-text reset-password-btn" href="javascript:;"><?php echo __('Forgot your password ?', 'system');?></a>
|
||||
<a class="small-grey-text administration-btn" href="javascript:;"><?php echo __('Log in', 'system');?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user