646 lines
14 KiB
PHTML
646 lines
14 KiB
PHTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title><?=$this->title ? $this->title : 'Crunchbutton'?></title>
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale = 1.0,maximum-scale = 1.0">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<link rel="shortcut icon" href="/favicon-admin.ico">
|
|
|
|
<style type="text/css">
|
|
@font-face {
|
|
font-family: 'Museo Slab';
|
|
src: url('/assets/fonts/museo_slab_500-webfont.eot');
|
|
src: url('/assets/fonts/museo_slab_500-webfont.eot?#iefix') format('embedded-opentype'),
|
|
url('/assets/fonts/museo_slab_500-webfont.woff') format('woff'),
|
|
url('/assets/fonts/museo_slab_500-webfont.ttf') format('truetype'),
|
|
url('/assets/fonts/museo_slab_500-webfont.svg#MuseoSlab500Regular') format('svg');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
body, table, td, tr, p, h1, h2, h3, h4, button {
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
font-family: Museo Slab, Helvetica, Lucida Grande, Arial, sans-serif;
|
|
}
|
|
|
|
input[type="submit"]:focus, input[type="button"]:focus, input[type="text"]:focus, button, :focus {
|
|
outline : none;
|
|
}
|
|
input[type="submit"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner, button::-moz-focus-inner {
|
|
border : 0;
|
|
}
|
|
|
|
|
|
@media(min-width:500px) {
|
|
body {
|
|
font-size: 12px;
|
|
}
|
|
|
|
}
|
|
@media(max-width:499px) {
|
|
body {
|
|
font-size: 10px;
|
|
}
|
|
}
|
|
.show-more{
|
|
font-size: 1.5em;
|
|
background: #F5F5F5;
|
|
margin-bottom: 10px !important;
|
|
}
|
|
.show-more a{
|
|
text-decoration: underline;
|
|
display: block;
|
|
margin: 5px;
|
|
}
|
|
|
|
.control {
|
|
background-image: -moz-linear-gradient( 90deg, rgb(203,203,203) 0%, rgb(232,232,232) 100%);
|
|
background-image: -webkit-linear-gradient( 90deg, rgb(203,203,203) 0%, rgb(232,232,232) 100%);
|
|
background-image: -ms-linear-gradient( 90deg, rgb(203,203,203) 0%, rgb(232,232,232) 100%);
|
|
box-shadow: 0px 1px 0px 0px rgb( 150, 150, 150 );
|
|
}
|
|
|
|
.control .buttons {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
text-align: right;
|
|
width: 100%;
|
|
}
|
|
|
|
.content {
|
|
|
|
}
|
|
|
|
.wrap {
|
|
padding: .5em;
|
|
max-width: 740px;
|
|
margin: 0 auto;
|
|
}
|
|
.header {
|
|
background-color: #f97e5c;
|
|
color: #fff;
|
|
font-size: 1.7em;
|
|
padding: .5em;
|
|
}
|
|
.divider {
|
|
clear: both;
|
|
}
|
|
.divider.dots {
|
|
border-top: 1px solid #eeede7;
|
|
}
|
|
|
|
.restaurant-name {
|
|
float: left;
|
|
}
|
|
|
|
.order-id {
|
|
float: right;
|
|
}
|
|
|
|
.order-icon {
|
|
font-size: 1.2em;
|
|
display: table-cell;
|
|
width: 3.2em;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
}
|
|
.order-info {
|
|
display: table-cell;
|
|
font-size: 1.3em;
|
|
vertical-align: middle;
|
|
line-height: 1.4em;
|
|
}
|
|
.order-item-block, .order-item-block-big, .order-item-block-bigger {
|
|
display: table;
|
|
float: left;
|
|
width: 15em;
|
|
margin: 1em 0 1em 0;
|
|
}
|
|
.order-item-block-big{
|
|
width: 30em;
|
|
}
|
|
.order-item-block-bigger{
|
|
width: 60em;
|
|
}
|
|
.order-map-block {
|
|
width: 100%;
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
.order-map {
|
|
width: 100%;
|
|
height: 15em;
|
|
background-size:cover !important;
|
|
}
|
|
|
|
[class*='icon-'] {
|
|
display: inline-block;
|
|
}
|
|
|
|
a {
|
|
color: #d74924;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
|
|
.order-comment-arrow {
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 7px solid transparent;
|
|
border-right: 7px solid transparent;
|
|
border-bottom: 7px solid #00957f;
|
|
margin-left: 1.2em;
|
|
}
|
|
|
|
.order-comment {
|
|
background: #00957f;
|
|
color: #fff;
|
|
padding: .9em .9em .8em 1em;
|
|
border-radius: 4px;
|
|
margin-bottom: .8em;
|
|
}
|
|
|
|
.icon-support {
|
|
background: url(http://dev.crunchr.co/assets/images/micro/icon-support.svg) no-repeat;
|
|
background-position: top center;
|
|
width: 2.4em;
|
|
height: 2.8em;
|
|
background-size: 100%;
|
|
}
|
|
|
|
.icon-chef {
|
|
background: url(http://dev.crunchr.co/assets/images/micro/icon-chef.svg) no-repeat;
|
|
background-position: top center;
|
|
width: 2.0em;
|
|
height: 2.6em;
|
|
background-size: 100%;
|
|
}
|
|
|
|
.icon-user {
|
|
background: url(http://dev.crunchr.co/assets/images/micro/icon-user.svg) no-repeat;
|
|
background-position: top center;
|
|
width: 1.9em;
|
|
height: 2.4em;
|
|
background-size: 100%;
|
|
}
|
|
|
|
.icon-delivery {
|
|
background: url(http://dev.crunchr.co/assets/images/micro/icon-delivery.svg) no-repeat;
|
|
background-position: top center;
|
|
width: 2.2em;
|
|
height: 1.6em;
|
|
background-size: 100%;
|
|
}
|
|
|
|
.icon-card {
|
|
background: url(http://dev.crunchr.co/assets/images/micro/icon-card.svg) no-repeat;
|
|
background-position: top center;
|
|
width: 2.3em;
|
|
height: 1.6em;
|
|
background-size: 100%;
|
|
}
|
|
|
|
.icon-clock {
|
|
background: url(http://dev.crunchr.co/assets/images/micro/icon-clock.svg) no-repeat;
|
|
background-position: top center;
|
|
width: 1.6em;
|
|
height: 2em;
|
|
background-size: 100%;
|
|
}
|
|
|
|
.icon-timer {
|
|
background: url(http://dev.crunchr.co/assets/images/micro/icon-timer.svg) no-repeat;
|
|
background-position: top center;
|
|
width: 1.6em;
|
|
height: 2.3em;
|
|
background-size: 100%;
|
|
}
|
|
|
|
.icon-map-home {
|
|
background: url(http://dev.crunchr.co/assets/images/micro/icon-map-home.svg) no-repeat;
|
|
background-position: top center;
|
|
width: 1.6em;
|
|
height: 2.41em;
|
|
background-size: 100%;
|
|
}
|
|
|
|
.icon-map-restaurant {
|
|
background: url(http://dev.crunchr.co/assets/images/micro/icon-map-restaurant.svg) no-repeat;
|
|
background-position: top center;
|
|
width: 1.6em;
|
|
height: 2.41em;
|
|
background-size: 100%;
|
|
}
|
|
|
|
.icon-cash {
|
|
background: url(http://dev.crunchr.co/assets/images/micro/icon-cash.svg) no-repeat;
|
|
background-position: top center;
|
|
width: 2.1em;
|
|
height: 1.6em;
|
|
background-size: 100%;
|
|
}
|
|
|
|
.icon-takeout {
|
|
background: url(http://dev.crunchr.co/assets/images/micro/icon-takeout.svg) no-repeat;
|
|
background-position: top center;
|
|
width: 1.5em;
|
|
height: 2.0em;
|
|
background-size: 100%;
|
|
}
|
|
|
|
.icon-phone {
|
|
background: url(http://dev.crunchr.co/assets/images/micro/icon-phone.svg) no-repeat;
|
|
background-position: top center;
|
|
width: 1.4em;
|
|
height: 1.4em;
|
|
background-size: 100%;
|
|
margin-top: .2em;
|
|
}
|
|
|
|
.icon-notes {
|
|
background: url(http://dev.crunchr.co/assets/images/micro/icon-notes.svg) no-repeat;
|
|
background-position: top center;
|
|
width: 1.9em;
|
|
height: 1.6em;
|
|
background-size: 100%;
|
|
}
|
|
|
|
.icon-credit {
|
|
background: url(http://dev.crunchr.co/assets/images/micro/icon-credit.svg) no-repeat;
|
|
background-position: top center;
|
|
width: 2.5em;
|
|
height: 1.9em;
|
|
background-size: 100%;
|
|
}
|
|
|
|
td {
|
|
border: 0;
|
|
padding: .5em;
|
|
}
|
|
|
|
.fooditem {
|
|
border-bottom: 1px solid #999;
|
|
}
|
|
|
|
.topitem {
|
|
border-bottom: 2px solid #999;
|
|
}
|
|
|
|
.control .wrap {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
display: table;
|
|
}
|
|
|
|
.control .message {
|
|
font-size: 1.3em;
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
text-shadow:1px 1px 0px #fff;
|
|
white-space:nowrap;
|
|
}
|
|
|
|
.button {
|
|
padding: .3em 1em .3em 1em;
|
|
margin: .2em 0 .2em .6em;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
font-size: 1.4em;
|
|
font-weight: bold;
|
|
border: 1px solid rgba(0,0,0,.2);
|
|
box-shadow: 0px 0px 3px rgba(0,0,0,.3);
|
|
text-shadow: 1px 1px 0 rgba(0,0,0,.4);
|
|
}
|
|
|
|
.button:active {
|
|
box-shadow: 0px 0px 1px rgba(0,0,0,.3);
|
|
}
|
|
|
|
.button-yes {
|
|
background: #7bca72;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.button-no {
|
|
background: #dc534b;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.order-status-delivered .status-control:not(.control-delivered) {
|
|
display: none !important;
|
|
}
|
|
|
|
.order-status-pickedup .status-control:not(.control-pickedup) {
|
|
display: none !important;
|
|
}
|
|
|
|
.order-status-rejected .status-control:not(.control-rejected) {
|
|
display: none !important;
|
|
}
|
|
|
|
.order-status-accepted .status-control:not(.control-accepted) {
|
|
display: none !important;
|
|
}
|
|
|
|
.order-status-accepted-other .status-control:not(.control-accepted-other) {
|
|
display: none !important;
|
|
}
|
|
|
|
.order-status-none .status-control:not(.control-accept-reject) {
|
|
display: none !important;
|
|
}
|
|
|
|
.order-status-init .status-control {
|
|
display: none !important;
|
|
}
|
|
|
|
|
|
.loader-wrap {
|
|
position: fixed;
|
|
bottom: -10px;
|
|
height: 0;
|
|
background: rgba(0,0,0,0);
|
|
z-index: 99;
|
|
overflow: hidden;
|
|
|
|
-webkit-transition: background .2s;
|
|
-moz-transition: background .2s;
|
|
-ms-transition: background .2s;
|
|
-o-transition: background .2s;
|
|
transition: background .2s;
|
|
}
|
|
|
|
.loader-frame {
|
|
border-radius: 10px;
|
|
background: rgba(0,0,0,.5);
|
|
padding: 2em;
|
|
width: 8em;
|
|
height: 8em;
|
|
margin: 0 auto;
|
|
margin-top: 16em;
|
|
opacity: .2;
|
|
|
|
-webkit-transform:translate3d(0,0,0);
|
|
|
|
-webkit-transform: scale(3);
|
|
-moz-transform: scale(3);
|
|
-ms-transform: scale(3);
|
|
-o-transform: scale(3);
|
|
transform: scale(3);
|
|
|
|
-webkit-transition: all .1s;
|
|
-moz-transition: all .1s;
|
|
-ms-transition: all .1s;
|
|
-o-transition: all .1s;
|
|
transition: all .1s;
|
|
}
|
|
|
|
.loader {
|
|
opacity: 1;
|
|
background: url(/assets/images/ajax_loader_orange_512.gif);
|
|
height: 8em;
|
|
width: 8em;
|
|
background-size: cover;
|
|
}
|
|
|
|
body.loading {
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
body.loading .loader-frame {
|
|
-webkit-transform: scale(1);
|
|
-moz-transform: scale(1);
|
|
-ms-transform: scale(1);
|
|
-o-transform: scale(1);
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
|
|
body.loading .loader-wrap {
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0,0,0,.5);
|
|
}
|
|
|
|
|
|
.warning{
|
|
color: #c09853;
|
|
font-family: 'Open Sans', HelveticaNeue, Helvetica, Arial;
|
|
font-size: 1.2em;
|
|
line-height: 1.4em;
|
|
margin-bottom:1.1em;
|
|
margin-top:1.1em;
|
|
border: 1px solid #f1d276;
|
|
background-color: #f7e6b4;
|
|
background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(249, 236, 196)), to(rgb(246, 225, 165)));
|
|
background-image: -webkit-linear-gradient(top, rgb(249, 236, 196), rgb(246, 225, 165));
|
|
background-image: -moz-linear-gradient(top, rgb(249, 236, 196), rgb(246, 225, 165));
|
|
background-image: -o-linear-gradient(top, rgb(249, 236, 196), rgb(246, 225, 165));
|
|
background-image: -ms-linear-gradient(top, rgb(249, 236, 196), rgb(246, 225, 165));
|
|
background-image: linear-gradient(top, rgb(249, 236, 196), rgb(246, 225, 165));
|
|
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#f9ecc4', EndColorStr='#f6e1a5');
|
|
-webkit-border-radius: .4em;
|
|
-moz-border-radius: .4em;
|
|
border-radius: .4em;
|
|
padding: .5em;
|
|
text-shadow: rgba(255, 255, 255, 0.498039) 0px 1px 0px;
|
|
box-shadow: rgb(249, 237, 201) 0px 1px 2px 0px inset, rgb(223, 223, 223) 0px 1px 1px 0px;
|
|
}
|
|
.order-list-item a{
|
|
color: #FFF;
|
|
text-decoration: none;
|
|
}
|
|
.no-orders{
|
|
font-size: 1.8em;
|
|
padding: 1em;
|
|
}
|
|
.order-list-item, .shifts-list-item{
|
|
color: #FFF;
|
|
font-size: 1.1em;
|
|
padding:0.5em;
|
|
-webkit-border-radius: .3em;
|
|
-moz-border-radius: .3em;
|
|
border-radius: .3em;
|
|
margin: .5em 0;
|
|
}
|
|
.new{ background: #e0463e; }
|
|
.accepted{ background: #1ebda0; }
|
|
.pickedup{ background: #505050; }
|
|
.delivered{ background: #6d6d6d; }
|
|
.other{ background: #6d6d6d; }
|
|
|
|
.order-list-date{
|
|
display: table;
|
|
float: left;
|
|
width: 4em;
|
|
font-size: .9em;
|
|
margin-right: 1em;
|
|
opacity:0.9;
|
|
}
|
|
.order-list-date .day{
|
|
font-size: 1em;
|
|
opacity:0.7;
|
|
}
|
|
.order-list-date .hour{
|
|
font-size: 2em;
|
|
font-weight: bold;
|
|
text-align: right;
|
|
}
|
|
.order-list-date .ampm{
|
|
font-size: .8em;
|
|
text-align: right;
|
|
text-transform: uppercase;
|
|
}
|
|
.order-list-customer-info{
|
|
display: table;
|
|
float: left;
|
|
}
|
|
.order-list-customer-info .restaurant{
|
|
font-weight: bold;
|
|
font-size: 1em;
|
|
line-height: 2em;
|
|
}
|
|
.order-list-customer-info .restaurant a{
|
|
text-decoration: underline;
|
|
}
|
|
.order-list-customer-info .customer{
|
|
font-size:0.9em;
|
|
}
|
|
.other .order-list-customer-info .restaurant{
|
|
font-size: 1.3em;
|
|
}
|
|
.other .order-list-customer-info .customer{
|
|
font-size: 1.2em;
|
|
}
|
|
.order-list-action{
|
|
display: table;
|
|
float: right;
|
|
font-size: 1em;
|
|
}
|
|
.order-list-action .button{
|
|
font-weight: bold;
|
|
border: 1px solid #FFF;
|
|
background: #FFF;
|
|
text-align: center;
|
|
-webkit-border-radius: .5em;
|
|
-moz-border-radius: .5em;
|
|
border-radius: .5em;
|
|
padding: .6em 1em;
|
|
margin-top: .3em;
|
|
font-size: 1.3em;
|
|
text-shadow: none;
|
|
}
|
|
.new .order-list-action .button{ color:#e0463e; }
|
|
.accepted .order-list-action .button{ color:#1ebda0; }
|
|
.pickedup .order-list-action .button{ color:#505050; }
|
|
|
|
.menu-bar{
|
|
font-size: 1.7em;
|
|
}
|
|
.shifts-list-item{
|
|
background: #6d6d6d;
|
|
}
|
|
.shifts-list-item.mine{
|
|
background: #00957f;
|
|
}
|
|
.shifts-list-item-date{
|
|
font-size: 1.7em;
|
|
}
|
|
.shifts-list-item-day{
|
|
opacity: 0.7;
|
|
}
|
|
.shifts-list-item-hour{
|
|
font-size: 1.2em;
|
|
}
|
|
.shifts-list-item-community{
|
|
font-size: 1.7em;
|
|
opacity: 0.5;
|
|
float: right;
|
|
text-align: right;
|
|
}
|
|
.menu-bar a.actual{
|
|
color: #666;
|
|
text-decoration: none;
|
|
}
|
|
.menu-bar ul{
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.menu-bar li{
|
|
display: inline-block;
|
|
margin: 0 0.2em;
|
|
padding: 0;
|
|
}
|
|
.menu-bar li.title{
|
|
margin-left: 0;
|
|
}
|
|
.menu-bar li.title.shifts{
|
|
margin-left: 1em;
|
|
}
|
|
.shifts-list-item .drivers{
|
|
margin: 0;
|
|
margin-top: 1em;
|
|
padding: 0;
|
|
list-style-type: none;
|
|
}
|
|
.shifts-list-item .drivers li{
|
|
font-size: 1.3em;
|
|
line-height: 1.5em;
|
|
}
|
|
.shifts-list-item .drivers li.no-drivers{
|
|
font-size: 1em;
|
|
opacity: .7;
|
|
font-style: italic;
|
|
}
|
|
.shifts-list-item a{
|
|
color: #FFF;
|
|
}
|
|
</style>
|
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
|
<script src="/assets/js/fastclick.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="loader-wrap">
|
|
<div class="loader-frame"><div class="loader"> </div></div>
|
|
</div>
|
|
<?php if( $this->menu ) { ?>
|
|
<div class="control">
|
|
<div class="wrap order-status-init menu-bar">
|
|
<ul>
|
|
<li class="title"><b>Orders</b></li>
|
|
<li>
|
|
<a class="<?php if( $this->actual == 'orders-all' ){ echo 'actual'; } ?>" href="/orders-list/all">all</a>
|
|
</li>
|
|
<li>
|
|
<a class="<?php if( $this->actual == 'orders-mine' ){ echo 'actual'; } ?>" href="/orders-list/mine/">mine</a>
|
|
</li>
|
|
<li class="title shifts"><b>Shifts</b></li>
|
|
<li>
|
|
<a class="<?php if( $this->actual == 'shifts-all' ){ echo 'actual'; } ?>" href="/shifts-list/all">all</a>
|
|
</li>
|
|
<li>
|
|
<a class="<?php if( $this->actual == 'shifts-mine' ){ echo 'actual'; } ?>" href="/shifts-list/mine">mine</a>
|
|
</li>
|
|
</ul>
|
|
<div class="divider"></div>
|
|
</div>
|
|
</div>
|
|
<?php } ?>
|
|
<?php echo $this->content; ?>
|
|
</body>
|
|
<script>
|
|
var makebusy = function() {
|
|
$( 'body' ).addClass( 'loading' );
|
|
};
|
|
</script>
|
|
</html>
|