forked from mirrors/easyappointments
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_title' => $this->lang->line('appointment_not_found'),
|
||||||
'message_text' => $this->lang->line('appointment_does_not_exist_in_db'),
|
'message_text' => $this->lang->line('appointment_does_not_exist_in_db'),
|
||||||
'message_icon' => $this->config->item('base_url')
|
'message_icon' => $this->config->item('base_url')
|
||||||
. '/assets/img/error.png',
|
. '/assets/img/error.png'
|
||||||
'company_name' => $company_name
|
|
||||||
);
|
);
|
||||||
$this->load->view('appointments/message', $view);
|
$this->load->view('appointments/message', $view);
|
||||||
return;
|
return;
|
||||||
|
@ -294,13 +293,17 @@ class Appointments extends CI_Controller {
|
||||||
$exceptions[] = $exc;
|
$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)) {
|
if (isset($exceptions)) {
|
||||||
$view['exceptions'] = $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 http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="theme-color" content="#35A768">
|
<meta name="theme-color" content="#35A768">
|
||||||
<title><?php echo $company_name; ?></title>
|
<title><?php echo $message_title ?></title>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// ------------------------------------------------------------
|
// ------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue