mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-26 01:43:06 +03:00
Added view file for the update page.
This commit is contained in:
parent
b8b66c28da
commit
8df2e51a73
2 changed files with 82 additions and 6 deletions
|
@ -320,16 +320,14 @@ class Backend extends CI_Controller {
|
|||
throw new Exception($this->migration->error_string());
|
||||
}
|
||||
|
||||
$this->output
|
||||
->set_content_type('application/json')
|
||||
->set_output(json_encode(AJAX_SUCCESS));
|
||||
$view = ['success' => true];
|
||||
}
|
||||
catch (Exception $exc)
|
||||
{
|
||||
$this->output
|
||||
->set_content_type('application/json')
|
||||
->set_output(json_encode(['exceptions' => [exceptionToJavaScript($exc)]]));
|
||||
$view = ['success' => false, 'exception' => $exc->getMessage()];
|
||||
}
|
||||
|
||||
$this->load->view('general/update', $view);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
78
src/application/views/general/update.php
Normal file
78
src/application/views/general/update.php
Normal file
|
@ -0,0 +1,78 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Easy!Appointments - Update</title>
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/ext/bootstrap/css/bootstrap.min.css') ?>">
|
||||
<link rel="icon" type="image/x-icon" href="<?= asset_url('assets/img/favicon.ico') ?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url ('assets/ext/jquery-ui/jquery-ui.min.css')?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
|
||||
|
||||
<style>
|
||||
html {
|
||||
position: relative;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.header {
|
||||
background: #DAFFEB;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
background-color: #f5f5f5;
|
||||
padding: 15px 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container-fluid header">
|
||||
<div>
|
||||
<a href="http://easyappointments.org" target="_blank">
|
||||
<img src="<?= base_url('assets/img/installation-banner.png') ?>"
|
||||
alt="Easy!Appointments Installation Banner">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container content">
|
||||
<?php if ($success): ?>
|
||||
<h3>
|
||||
The database was updated successfully!
|
||||
</h3>
|
||||
|
||||
<h3>
|
||||
You can now use the latest Easy!Appointments version.
|
||||
</h3>
|
||||
<?php else: ?>
|
||||
<h3>
|
||||
There was an error during the update process!
|
||||
</h3>
|
||||
|
||||
<h3>
|
||||
Please restore your database backup.
|
||||
</h3>
|
||||
|
||||
<div class="well text-left">
|
||||
Error Message: <?= $exception ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
Powered by <a href="http://easyappointments.org">Easy!Appointments</a>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue