mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-29 11:23:10 +03:00
converted appointment manage mode display to responsive
This commit is contained in:
parent
9c10b29f46
commit
c01bfe464e
4 changed files with 47 additions and 48 deletions
|
@ -126,17 +126,21 @@
|
||||||
// ------------------------------------------------------
|
// ------------------------------------------------------
|
||||||
if ($manage_mode === TRUE) {
|
if ($manage_mode === TRUE) {
|
||||||
echo '
|
echo '
|
||||||
<div id="cancel-appointment-frame">
|
<div id="cancel-appointment-frame" class="row">
|
||||||
<p class="pull-left">' .
|
<div class="col-xs-12 col-sm-10">
|
||||||
|
<p>' .
|
||||||
$this->lang->line('cancel_appointment_hint') .
|
$this->lang->line('cancel_appointment_hint') .
|
||||||
'</p>
|
'</p>
|
||||||
<form id="cancel-appointment-form" method="post" class="pull-right"
|
</div>
|
||||||
|
<div class="col-xs-12 col-sm-2">
|
||||||
|
<form id="cancel-appointment-form" method="post"
|
||||||
action="' . $this->config->item('base_url')
|
action="' . $this->config->item('base_url')
|
||||||
. '/appointments/cancel/' . $appointment_data['hash'] . '">
|
. '/appointments/cancel/' . $appointment_data['hash'] . '">
|
||||||
<textarea name="cancel_reason" style="display:none"></textarea>
|
<textarea name="cancel_reason" style="display:none"></textarea>
|
||||||
<button id="cancel-appointment" class="btn btn-inverse">' .
|
<button id="cancel-appointment" class="btn btn-inverse">' .
|
||||||
$this->lang->line('cancel') . '</button>
|
$this->lang->line('cancel') . '</button>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
</div>';
|
</div>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -1,55 +1,49 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title><?php echo $this->lang->line('appointment_cancelled_title'); ?></title>
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
<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 $this->lang->line('appointment_cancelled_title'); ?></title>
|
||||||
|
|
||||||
<?php // INCLUDE JS FILES ?>
|
<?php
|
||||||
|
// ------------------------------------------------------------
|
||||||
|
// INCLUDE JS FILES
|
||||||
|
// ------------------------------------------------------------ ?>
|
||||||
<script
|
<script
|
||||||
type="text/javascript"
|
type="text/javascript"
|
||||||
src="<?php echo $this->config->base_url(); ?>/assets/js/libs/jquery/jquery.min.js"></script>
|
src="<?php echo $this->config->base_url(); ?>/assets/js/libs/jquery/jquery.min.js"></script>
|
||||||
|
|
||||||
<?php // INCLUDE CSS FILES ?>
|
<?php
|
||||||
|
// ------------------------------------------------------------
|
||||||
|
// INCLUDE CSS FILES
|
||||||
|
// ------------------------------------------------------------ ?>
|
||||||
<link rel="stylesheet" type="text/css"
|
<link rel="stylesheet" type="text/css"
|
||||||
href="<?php echo $this->config->base_url(); ?>/assets/ext/bootstrap/css/bootstrap.css">
|
href="<?php echo $this->config->base_url(); ?>/assets/ext/bootstrap/css/bootstrap.css">
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css"
|
||||||
|
href="<?php echo $this->config->base_url(); ?>/assets/css/frontend.css">
|
||||||
|
|
||||||
<?php // SET FAVICON FOR PAGE ?>
|
|
||||||
|
<?php
|
||||||
|
// ------------------------------------------------------------
|
||||||
|
// SET PAGE FAVICON
|
||||||
|
// ------------------------------------------------------------ ?>
|
||||||
<link rel="icon" type="image/x-icon"
|
<link rel="icon" type="image/x-icon"
|
||||||
href="<?php echo $this->config->base_url(); ?>/assets/img/favicon.ico">
|
href="<?php echo $this->config->base_url(); ?>/assets/img/favicon.ico">
|
||||||
|
|
||||||
<link rel="icon" sizes="192x192"
|
<link rel="icon" sizes="192x192"
|
||||||
href="<?php echo $this->config->base_url(); ?>/assets/img/logo.png">
|
href="<?php echo $this->config->base_url(); ?>/assets/img/logo.png">
|
||||||
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
background-color: #CAEDF3;
|
|
||||||
}
|
|
||||||
|
|
||||||
#success-frame {
|
|
||||||
width: 650px;
|
|
||||||
margin: 150px auto 0 auto;
|
|
||||||
background: #FFF;
|
|
||||||
border: 1px solid #DDDADA;
|
|
||||||
padding: 70px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#success-icon {
|
|
||||||
float: right;
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="success-frame" class="frame-container">
|
<div id="success-frame" class="frame-container">
|
||||||
|
|
||||||
<img id="success-icon" src="<?php echo $this->config->base_url(); ?>/assets/img/success.png" />
|
<img id="success-icon" src="<?php echo $this->config->base_url(); ?>/assets/img/success.png" />
|
||||||
|
|
||||||
<h3><?php echo $this->lang->line('appointment_cancelled'); ?></h3>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
echo '<h3>' . $this->lang->line('appointment_cancelled') . '</h3>';
|
||||||
|
|
||||||
// Display exceptions (if any).
|
// Display exceptions (if any).
|
||||||
if (isset($exceptions)) {
|
if (isset($exceptions)) {
|
||||||
echo '<div style="margin: 10px">';
|
echo '<div style="margin: 10px">';
|
||||||
|
|
|
@ -215,20 +215,14 @@ body {
|
||||||
/* CANCEL APPOINTMENT
|
/* CANCEL APPOINTMENT
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
#cancel-appointment-frame {
|
#cancel-appointment-frame {
|
||||||
padding: 15px;
|
padding: 15px 0;
|
||||||
|
margin: 0;
|
||||||
background: #FAFAFA;
|
background: #FAFAFA;
|
||||||
border-bottom: 1px solid #E2E2E2;
|
border-bottom: 1px solid #E2E2E2;
|
||||||
overflow: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#cancel-appointment-frame p {
|
#cancel-appointment-frame p {
|
||||||
display: inline-block;
|
margin-top: 8px;
|
||||||
margin: 6px 10px 0;
|
|
||||||
width: 515px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#cancel-appointment-frame form {
|
|
||||||
display: inline;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* MOBILE DEVICES
|
/* MOBILE DEVICES
|
||||||
|
@ -343,4 +337,11 @@ body {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
float: none !important;
|
float: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CANCEL APPOINTMENT
|
||||||
|
*/
|
||||||
|
#cancel-appointment-frame {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -231,7 +231,7 @@ var FrontendBook = {
|
||||||
EALang['write_appointment_removal_reason'], dialogButtons);
|
EALang['write_appointment_removal_reason'], dialogButtons);
|
||||||
|
|
||||||
$('#message_box').append('<textarea id="cancel-reason" rows="3"></textarea>');
|
$('#message_box').append('<textarea id="cancel-reason" rows="3"></textarea>');
|
||||||
$('#cancel-reason').css('width', '353px');
|
$('#cancel-reason').css('width', '100%');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue