mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-14 03:52:21 +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) {
|
||||
echo '
|
||||
<div id="cancel-appointment-frame">
|
||||
<p class="pull-left">' .
|
||||
<div id="cancel-appointment-frame" class="row">
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<p>' .
|
||||
$this->lang->line('cancel_appointment_hint') .
|
||||
'</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')
|
||||
. '/appointments/cancel/' . $appointment_data['hash'] . '">
|
||||
<textarea name="cancel_reason" style="display:none"></textarea>
|
||||
<button id="cancel-appointment" class="btn btn-inverse">' .
|
||||
$this->lang->line('cancel') . '</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>';
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -1,55 +1,49 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo $this->lang->line('appointment_cancelled_title'); ?></title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta charset="utf-8" />
|
||||
<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 $this->lang->line('appointment_cancelled_title'); ?></title>
|
||||
|
||||
<?php // INCLUDE JS FILES ?>
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// INCLUDE JS FILES
|
||||
// ------------------------------------------------------------ ?>
|
||||
<script
|
||||
type="text/javascript"
|
||||
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"
|
||||
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"
|
||||
href="<?php echo $this->config->base_url(); ?>/assets/img/favicon.ico">
|
||||
|
||||
<link rel="icon" sizes="192x192"
|
||||
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>
|
||||
<body>
|
||||
<div id="success-frame" class="frame-container">
|
||||
|
||||
<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
|
||||
echo '<h3>' . $this->lang->line('appointment_cancelled') . '</h3>';
|
||||
|
||||
// Display exceptions (if any).
|
||||
if (isset($exceptions)) {
|
||||
echo '<div style="margin: 10px">';
|
||||
|
|
|
@ -215,20 +215,14 @@ body {
|
|||
/* CANCEL APPOINTMENT
|
||||
------------------------------------------------------------------------- */
|
||||
#cancel-appointment-frame {
|
||||
padding: 15px;
|
||||
padding: 15px 0;
|
||||
margin: 0;
|
||||
background: #FAFAFA;
|
||||
border-bottom: 1px solid #E2E2E2;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#cancel-appointment-frame p {
|
||||
display: inline-block;
|
||||
margin: 6px 10px 0;
|
||||
width: 515px;
|
||||
}
|
||||
|
||||
#cancel-appointment-frame form {
|
||||
display: inline;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
/* MOBILE DEVICES
|
||||
|
@ -343,4 +337,11 @@ body {
|
|||
margin: auto;
|
||||
float: none !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* CANCEL APPOINTMENT
|
||||
*/
|
||||
#cancel-appointment-frame {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
|
@ -231,7 +231,7 @@ var FrontendBook = {
|
|||
EALang['write_appointment_removal_reason'], dialogButtons);
|
||||
|
||||
$('#message_box').append('<textarea id="cancel-reason" rows="3"></textarea>');
|
||||
$('#cancel-reason').css('width', '353px');
|
||||
$('#cancel-reason').css('width', '100%');
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue