mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
Converted all the account related pages to the new layout structure
This commit is contained in:
parent
64846e0107
commit
ee6729cf0b
10 changed files with 108 additions and 229 deletions
|
@ -43,7 +43,7 @@ class User extends EA_Controller {
|
|||
*/
|
||||
public function login()
|
||||
{
|
||||
$this->load->view('user/login', [
|
||||
$this->load->layout('layouts/account/account_layout', 'pages/account/account_login_page', [
|
||||
'base_url' => config('base_url'),
|
||||
'company_name' => setting('company_name'),
|
||||
'dest_url' => session('dest_url', site_url('backend'))
|
||||
|
@ -57,7 +57,7 @@ class User extends EA_Controller {
|
|||
{
|
||||
$this->session->sess_destroy();
|
||||
|
||||
$this->load->view('user/logout', [
|
||||
$this->load->layout('layouts/account/account_layout', 'pages/account/account_logout_page', [
|
||||
'base_url' => config('base_url'),
|
||||
'company_name' => setting('company_name')
|
||||
]);
|
||||
|
@ -68,7 +68,7 @@ class User extends EA_Controller {
|
|||
*/
|
||||
public function forgot_password()
|
||||
{
|
||||
$this->load->view('user/forgot_password', [
|
||||
$this->load->layout('layouts/account/account_layout', 'pages/account/account_recovery_page', [
|
||||
'base_url' => config('base_url'),
|
||||
'company_name' => setting('company_name')
|
||||
]);
|
||||
|
|
|
@ -48,50 +48,15 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id="login-frame" class="frame-container">
|
||||
<h2><?= lang('backend_section') ?></h2>
|
||||
<p><?= lang('you_need_to_login') ?></p>
|
||||
<hr>
|
||||
<div class="alert d-none"></div>
|
||||
<form id="login-form">
|
||||
<div class="form-group">
|
||||
<label for="username"><?= lang('username') ?></label>
|
||||
<input type="text" id="username"
|
||||
placeholder="<?= lang('enter_username_here') ?>"
|
||||
class="form-control"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password"><?= lang('password') ?></label>
|
||||
<input type="password" id="password"
|
||||
placeholder="<?= lang('enter_password_here') ?>"
|
||||
class="form-control"/>
|
||||
</div>
|
||||
<?php require $page_path ?>
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" id="login" class="btn btn-primary">
|
||||
<i class="fas fa-sign-in-alt mr-2"></i>
|
||||
<?= lang('login') ?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<a href="<?= site_url('user/forgot_password') ?>" class="forgot-password">
|
||||
<?= lang('forgot_your_password') ?></a>
|
||||
|
|
||||
<span id="select-language" class="badge badge-success">
|
||||
<?= ucfirst(config('language')) ?>
|
||||
</span>
|
||||
|
||||
<div class="mt-4">
|
||||
<small>
|
||||
Powered by
|
||||
<a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</small>
|
||||
</div>
|
||||
</form>
|
||||
<div class="mt-4">
|
||||
<small>
|
||||
Powered by
|
||||
<a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/fontawesome.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/solid.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/login.js') ?>"></script>
|
||||
</body>
|
||||
</html>
|
46
application/views/pages/account/account_login_page.php
Normal file
46
application/views/pages/account/account_login_page.php
Normal file
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
/**
|
||||
* @var string $base_url
|
||||
* @var string $dest_url
|
||||
*/
|
||||
?>
|
||||
|
||||
<h2><?= lang('backend_section') ?></h2>
|
||||
<p><?= lang('you_need_to_login') ?></p>
|
||||
<hr>
|
||||
<div class="alert d-none"></div>
|
||||
|
||||
<form id="login-form">
|
||||
<div class="form-group">
|
||||
<label for="username"><?= lang('username') ?></label>
|
||||
<input type="text" id="username"
|
||||
placeholder="<?= lang('enter_username_here') ?>"
|
||||
class="form-control"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password"><?= lang('password') ?></label>
|
||||
<input type="password" id="password"
|
||||
placeholder="<?= lang('enter_password_here') ?>"
|
||||
class="form-control"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" id="login" class="btn btn-primary">
|
||||
<i class="fas fa-sign-in-alt mr-2"></i>
|
||||
<?= lang('login') ?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<a href="<?= site_url('user/forgot_password') ?>" class="forgot-password">
|
||||
<?= lang('forgot_your_password') ?></a>
|
||||
|
|
||||
<span id="select-language" class="badge badge-success">
|
||||
<?= ucfirst(config('language')) ?>
|
||||
</span>
|
||||
|
||||
</form>
|
||||
|
||||
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/fontawesome.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/solid.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/login.js') ?>"></script>
|
17
application/views/pages/account/account_logout_page.php
Normal file
17
application/views/pages/account/account_logout_page.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<h3><?= lang('log_out') ?></h3>
|
||||
<p>
|
||||
<?= lang('logout_success') ?>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
|
||||
<a href="<?= site_url() ?>" class="btn btn-success btn-large">
|
||||
<i class="fas fa-calendar-alt mr-2"></i>
|
||||
<?= lang('book_appointment_title') ?>
|
||||
</a>
|
||||
|
||||
<a href="<?= site_url('backend') ?>" class="btn btn-outline-secondary btn-large">
|
||||
<i class="fas fa-wrench mr-2"></i>
|
||||
<?= lang('backend_section') ?>
|
||||
</a>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<h3><?= lang('no_privileges') ?></h3>
|
||||
<p>
|
||||
<?= lang('no_privileges_message') ?>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
|
||||
<a href="<?= site_url('backend') ?>" class="btn btn-success btn-large">
|
||||
<i class="icon-calendar icon-white mr-2"></i>
|
||||
<?= lang('backend_calendar') ?>
|
||||
</a>
|
24
application/views/pages/account/account_recovery_page.php
Normal file
24
application/views/pages/account/account_recovery_page.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<h2><?= lang('forgot_your_password') ?></h2>
|
||||
<p><?= lang('type_username_and_email_for_new_password') ?></p>
|
||||
<hr>
|
||||
<div class="alert d-none"></div>
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label for="username"><?= lang('username') ?></label>
|
||||
<input type="text" id="username" placeholder="<?= lang('enter_username_here') ?>" class="form-control"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email"><?= lang('email') ?></label>
|
||||
<input type="text" id="email" placeholder="<?= lang('enter_email_here') ?>" class="form-control"/>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<button type="submit" id="get-new-password" class="btn btn-primary btn-large">
|
||||
<i class="fas fa-unlock-alt mr-2"></i>
|
||||
<?= lang('regenerate_password') ?>
|
||||
</button>
|
||||
|
||||
<a href="<?= site_url('user/login') ?>" class="user-login">
|
||||
<?= lang('go_to_login') ?></a>
|
||||
</form>
|
|
@ -1,75 +0,0 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="theme-color" content="#35A768">
|
||||
|
||||
<title><?= lang('forgot_your_password') ?> | Easy!Appointments</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.css') ?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/jquery-ui-dist/jquery-ui.min.css') ?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/forgot_password.css') ?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="<?= asset_url('assets/img/favicon.ico') ?>">
|
||||
<link rel="icon" sizes="192x192" href="<?= asset_url('assets/img/logo.png') ?>">
|
||||
|
||||
<script>
|
||||
var GlobalVariables = {
|
||||
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||
baseUrl: <?= json_encode(config('base_url')) ?>,
|
||||
AJAX_SUCCESS: 'SUCCESS',
|
||||
AJAX_FAILURE: 'FAILURE'
|
||||
};
|
||||
|
||||
var EALang = <?= json_encode($this->lang->language) ?>;
|
||||
</script>
|
||||
|
||||
<script src="<?= asset_url('assets/vendor/jquery/jquery.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/@popperjs-core/popper.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/jquery-ui-dist/jquery-ui.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/datejs/date.min.js') ?>"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="forgot-password-frame" class="frame-container">
|
||||
<h2><?= lang('forgot_your_password') ?></h2>
|
||||
<p><?= lang('type_username_and_email_for_new_password') ?></p>
|
||||
<hr>
|
||||
<div class="alert d-none"></div>
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label for="username"><?= lang('username') ?></label>
|
||||
<input type="text" id="username" placeholder="<?= lang('enter_username_here') ?>" class="form-control"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email"><?= lang('email') ?></label>
|
||||
<input type="text" id="email" placeholder="<?= lang('enter_email_here') ?>" class="form-control"/>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<button type="submit" id="get-new-password" class="btn btn-primary btn-large">
|
||||
<i class="fas fa-unlock-alt mr-2"></i>
|
||||
<?= lang('regenerate_password') ?>
|
||||
</button>
|
||||
|
||||
<a href="<?= site_url('user/login') ?>" class="user-login">
|
||||
<?= lang('go_to_login') ?></a>
|
||||
</form>
|
||||
|
||||
<div class="mt-4">
|
||||
<small>
|
||||
Powered by
|
||||
<a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/fontawesome.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/solid.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/forgot_password.js') ?>"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,10 +0,0 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,55 +0,0 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="theme-color" content="#35A768">
|
||||
|
||||
<title><?= lang('log_out') ?> | Easy!Appointments</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.css') ?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/logout.css') ?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="<?= asset_url('assets/img/favicon.ico') ?>">
|
||||
<link rel="icon" sizes="192x192" href="<?= asset_url('assets/img/logo.png') ?>">
|
||||
|
||||
<script>
|
||||
var EALang = <?= json_encode($this->lang->language) ?>;
|
||||
</script>
|
||||
|
||||
<script src="<?= asset_url('assets/vendor/jquery/jquery.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/@popperjs-core/popper.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/fontawesome.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/solid.min.js') ?>"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="logout-frame" class="frame-container">
|
||||
<h3><?= lang('log_out') ?></h3>
|
||||
<p>
|
||||
<?= lang('logout_success') ?>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
|
||||
<a href="<?= site_url() ?>" class="btn btn-success btn-large">
|
||||
<i class="fas fa-calendar-alt mr-2"></i>
|
||||
<?= lang('book_appointment_title') ?>
|
||||
</a>
|
||||
|
||||
<a href="<?= site_url('backend') ?>" class="btn btn-outline-secondary btn-large">
|
||||
<i class="fas fa-wrench mr-2"></i>
|
||||
<?= lang('backend_section') ?>
|
||||
</a>
|
||||
|
||||
<div class="mt-4">
|
||||
<small>
|
||||
Powered by
|
||||
<a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,44 +0,0 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="theme-color" content="#35A768">
|
||||
|
||||
<title><?= lang('no_privileges') ?> | Easy!Appointments</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.css') ?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/no_privileges.css') ?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="<?= asset_url('assets/img/favicon.ico') ?>">
|
||||
<link rel="icon" sizes="192x192" href="<?= asset_url('assets/img/logo.png') ?>">
|
||||
|
||||
<script src="<?= asset_url('assets/vendor/jquery/jquery.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/@popperjs-core/popper.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.js') ?>"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="no-priv-frame" class="frame-container">
|
||||
<h3><?= lang('no_privileges') ?></h3>
|
||||
<p>
|
||||
<?= lang('no_privileges_message') ?>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
|
||||
<a href="<?= site_url('backend') ?>" class="btn btn-success btn-large">
|
||||
<i class="icon-calendar icon-white mr-2"></i>
|
||||
<?= lang('backend_calendar') ?>
|
||||
</a>
|
||||
|
||||
<div class="mt-4">
|
||||
<small>
|
||||
Powered by
|
||||
<a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue