mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 17:33:19 +03:00
Replaced appointments/cancel.php view with message.php file
This commit is contained in:
parent
309be5563a
commit
31f6227276
2 changed files with 8 additions and 5 deletions
|
@ -53,8 +53,7 @@ class Appointments extends CI_Controller {
|
|||
'message_title' => $this->lang->line('appointment_not_found'),
|
||||
'message_text' => $this->lang->line('appointment_does_not_exist_in_db'),
|
||||
'message_icon' => $this->config->item('base_url')
|
||||
. '/assets/img/error.png',
|
||||
'company_name' => $company_name
|
||||
. '/assets/img/error.png'
|
||||
);
|
||||
$this->load->view('appointments/message', $view);
|
||||
return;
|
||||
|
@ -294,13 +293,17 @@ class Appointments extends CI_Controller {
|
|||
$exceptions[] = $exc;
|
||||
}
|
||||
|
||||
$view = array();
|
||||
$view = array(
|
||||
'message_title' => $this->lang->line('appointment_cancelled_title'),
|
||||
'message_text' => $this->lang->line('appointment_cancelled'),
|
||||
'message_icon' => $this->config->item('base_url') . '/assets/img/success.png'
|
||||
);
|
||||
|
||||
if (isset($exceptions)) {
|
||||
$view['exceptions'] = $exceptions;
|
||||
}
|
||||
|
||||
$this->load->view('appointments/cancel', $view);
|
||||
$this->load->view('appointments/message', $view);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#35A768">
|
||||
<title><?php echo $company_name; ?></title>
|
||||
<title><?php echo $message_title ?></title>
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue