forked from mirrors/easyappointments
Modify CSS so that book_success.php is responsive.
This commit is contained in:
parent
f822779a95
commit
56f02ae40b
2 changed files with 104 additions and 56 deletions
|
@ -1,12 +1,16 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title><?php echo $this->lang->line('appointment_registered') . ' - ' . $company_name; ?></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_registered') . ' - ' . $company_name; ?></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>
|
||||||
|
@ -16,38 +20,39 @@
|
||||||
<script
|
<script
|
||||||
type="text/javascript"
|
type="text/javascript"
|
||||||
src="<?php echo $this->config->base_url(); ?>/assets/js/libs/date.js"></script>
|
src="<?php echo $this->config->base_url(); ?>/assets/js/libs/date.js"></script>
|
||||||
|
|
||||||
|
<script
|
||||||
|
type="text/javascript"
|
||||||
|
src="<?php echo $this->config->base_url(); ?>/assets/js/general_functions.js"></script>
|
||||||
|
|
||||||
|
<script
|
||||||
|
type="text/javascript"
|
||||||
|
src="https://apis.google.com/js/client.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.min.css">
|
href="<?php echo $this->config->base_url(); ?>/assets/ext/bootstrap/css/bootstrap.min.css">
|
||||||
|
<link rel="stylesheet" type="text/css"
|
||||||
<?php // SET FAVICON FOR PAGE ?>
|
href="<?php echo $this->config->base_url(); ?>/assets/css/frontend.css">
|
||||||
|
|
||||||
|
|
||||||
|
<?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>
|
<?php
|
||||||
body {
|
// ------------------------------------------------------------
|
||||||
background-color: #CAEDF3;
|
// CUSTOM PAGE JS
|
||||||
}
|
// ------------------------------------------------------------ ?>
|
||||||
|
|
||||||
#success-frame {
|
|
||||||
width: 630px;
|
|
||||||
margin: 150px auto 0 auto;
|
|
||||||
background: #FFF;
|
|
||||||
border: 1px solid #DDDADA;
|
|
||||||
padding: 70px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#success-icon {
|
|
||||||
float: right;
|
|
||||||
margin-top: 17px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<script src="https://apis.google.com/js/client.js"></script>
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var GlobalVariables = {
|
var GlobalVariables = {
|
||||||
'appointmentData' : <?php echo json_encode($appointment_data); ?>,
|
'appointmentData' : <?php echo json_encode($appointment_data); ?>,
|
||||||
|
@ -176,33 +181,43 @@
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="success-frame" class="frame-container">
|
<div id="main" class="container">
|
||||||
<img id="success-icon" src="<?php echo $this->config->base_url(); ?>/assets/img/success.png" />
|
<div class="wrapper row">
|
||||||
|
<div id="success-frame" class="frame-container
|
||||||
|
col-xs-12
|
||||||
|
col-sm-offset-1 col-sm-10
|
||||||
|
col-md-offset-2 col-md-8
|
||||||
|
col-lg-offset-2 col-lg-8">
|
||||||
|
|
||||||
|
<div class="col-xs-12 col-sm-2">
|
||||||
|
<img id="success-icon" class="pull-right" src="<?php echo $this->config->base_url(); ?>/assets/img/success.png" />
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-12 col-sm-10">
|
||||||
|
<?php
|
||||||
|
echo '<h3>' . $this->lang->line('appointment_registered') . '</h3>';
|
||||||
|
echo '<p>' . $this->lang->line('appointment_details_was_sent_to_you') . '</p>';
|
||||||
|
|
||||||
<h3><?php echo $this->lang->line('appointment_registered'); ?></h3>
|
if ($this->config->item('ea_google_sync_feature')) {
|
||||||
<p><?php echo $this->lang->line('appointment_details_was_sent_to_you'); ?></p>
|
echo '
|
||||||
|
<button id="add-to-google-calendar" class="btn btn-primary">
|
||||||
<?php if ($this->config->item('ea_google_sync_feature')) { ?>
|
<i class="icon-plus icon-white"></i>
|
||||||
<button id="add-to-google-calendar" class="btn btn-primary">
|
' . $this->lang->line('add_to_google_calendar') . '
|
||||||
<i class="icon-plus icon-white"></i>
|
</button>';
|
||||||
<?php echo $this->lang->line('add_to_google_calendar'); ?>
|
}
|
||||||
</button>
|
|
||||||
<?php } ?>
|
// Display exceptions (if any).
|
||||||
|
if (isset($exceptions)) {
|
||||||
<?php
|
echo '<div style="margin:10px">';
|
||||||
// Display exceptions (if any).
|
echo '<h4>Unexpected Errors</h4>';
|
||||||
if (isset($exceptions)) {
|
foreach($exceptions as $exc) {
|
||||||
echo '<div style="margin: 10px">';
|
echo exceptionToHtml($exc);
|
||||||
echo '<h4>Unexpected Errors</h4>';
|
}
|
||||||
foreach($exceptions as $exc) {
|
echo '</div>';
|
||||||
echo exceptionToHtml($exc);
|
}
|
||||||
}
|
?>
|
||||||
echo '</div>';
|
</div>
|
||||||
}
|
</div>
|
||||||
?>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script
|
|
||||||
type="text/javascript"
|
|
||||||
src="<?php echo $this->config->base_url(); ?>/assets/js/general_functions.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -195,6 +195,18 @@ body {
|
||||||
padding-left: 0px;
|
padding-left: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* BOOK SUCCESS
|
||||||
|
------------------------------------------------------------------------- */
|
||||||
|
#success-frame {
|
||||||
|
background: #FFF;
|
||||||
|
border: 1px solid #DDDADA;
|
||||||
|
padding: 70px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#success-frame #success-icon {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* CANCEL APPOINTMENT
|
/* CANCEL APPOINTMENT
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
|
@ -215,20 +227,24 @@ body {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Mobile Devices
|
/* MOBILE DEVICES
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
@media(max-width:400px) {
|
@media(max-width:768px) {
|
||||||
|
/**
|
||||||
|
* BOOKING WIZARD
|
||||||
|
*/
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
height: auto;
|
min-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main {
|
#main {
|
||||||
|
min-height: 100%;
|
||||||
display: block; /* reset display */
|
display: block; /* reset display */
|
||||||
}
|
}
|
||||||
|
|
||||||
#main .wrapper {
|
#main .wrapper {
|
||||||
height: auto;
|
min-height: 100%;
|
||||||
display: block; /* reset display */
|
display: block; /* reset display */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -306,4 +322,21 @@ body {
|
||||||
.popover .popover-content #language-list .language {
|
.popover .popover-content #language-list .language {
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* BOOK SUCCESS
|
||||||
|
*/
|
||||||
|
#success-frame {
|
||||||
|
text-align: center;
|
||||||
|
height: 100%;
|
||||||
|
border: none;
|
||||||
|
padding: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#success-frame #success-icon {
|
||||||
|
width: 64px;
|
||||||
|
display: block;
|
||||||
|
margin: auto;
|
||||||
|
float: none !important;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue