// fix datepicker
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@
|
||||
@import "admin-theme/_bootstrap-init"
|
||||
@import "admin-theme/_font-awesome"
|
||||
|
||||
|
||||
@import url(http://fonts.googleapis.com/css?family=Josefin+Sans:200,400,700)
|
||||
|
||||
html, body
|
||||
min-height: 100%
|
||||
height: 100%
|
||||
@@ -100,6 +103,10 @@ fieldset > .row
|
||||
@import "admin-theme/admin-toolbar"
|
||||
@import "admin-theme/admin-date-range-picker"
|
||||
|
||||
@import "admin-theme/ladda"
|
||||
@import "admin-theme/ladda-theme"
|
||||
|
||||
|
||||
//page specific
|
||||
@import "admin-theme/admin-carrier-wizard"
|
||||
@import "admin-theme/admin-modules"
|
||||
|
||||
@@ -1,232 +1,229 @@
|
||||
@import url(http://fonts.googleapis.com/css?family=Josefin+Sans:200,400,700)
|
||||
@import compass
|
||||
|
||||
$color-bright: #F0E9DC
|
||||
$color-bright: white
|
||||
$font-family: 'Josefin Sans', sans-serif
|
||||
$color-calendar: #4FA2D4
|
||||
$color-calendar: $brand-primary
|
||||
|
||||
$color-calendar-compare: #E18E70
|
||||
$color-calendar-day: $color-bright
|
||||
$color-calendar-outrange: darken($color-calendar,15%)
|
||||
$color-calendar-day-selected: darken($color-calendar,25%)
|
||||
$color-calendar-range: darken($color-calendar,15%)
|
||||
|
||||
|
||||
#datepicker
|
||||
input[type="text"]
|
||||
padding: 6px
|
||||
background-color: darken($color-calendar,20%)
|
||||
.input-selected
|
||||
margin: 0
|
||||
#date-start.input-selected
|
||||
border: solid 3px $color-calendar-day-selected
|
||||
#date-end.input-selected
|
||||
border: solid 3px $color-calendar-day-selected
|
||||
.datepickers-container
|
||||
width: 60%
|
||||
float: left
|
||||
margin: 0
|
||||
font-size: 16px
|
||||
height: 16.8em
|
||||
form#datepicker-form
|
||||
width: 40%
|
||||
float: left
|
||||
+border-radius(0)
|
||||
border: none
|
||||
#date-range .form-date-heading
|
||||
background-color: darken($color-calendar-compare,5%)
|
||||
#date-compare .form-date-heading
|
||||
background-color: darken($color-calendar-compare,5%)
|
||||
.form-date-heading
|
||||
font-family: $font-family
|
||||
font-size: 1.15em
|
||||
padding: 6px
|
||||
color: $color-bright
|
||||
font-weight: 200
|
||||
text-transform: uppercase
|
||||
.btn-default
|
||||
background-color: rgba($color-bright,0.3)
|
||||
font-weight: 700
|
||||
color: $color-bright
|
||||
border: none
|
||||
.form-date-body
|
||||
padding: 10px
|
||||
.form-date-group
|
||||
+box-shadow(darken($color-calendar,30%) 0 0 4px)
|
||||
background-color: $color-bright
|
||||
width: 100%
|
||||
margin: 0 auto 6px auto
|
||||
label, input
|
||||
float: left
|
||||
margin-right: 6px
|
||||
label
|
||||
line-height: 3.2em
|
||||
font-weight: 700
|
||||
font-size: 0.8em
|
||||
margin-bottom: 0
|
||||
input[type='text']
|
||||
width: 35%
|
||||
.actions
|
||||
+box-shadow(darken($color-calendar,30%) 0 0 4px)
|
||||
padding: 0
|
||||
background-color: $color-calendar
|
||||
.btn-primary
|
||||
padding: 12px
|
||||
text-transform: uppercase
|
||||
background-color: $color-bright
|
||||
color: $color-calendar-day-selected
|
||||
border: none
|
||||
.btn-default
|
||||
padding: 12px
|
||||
text-transform: uppercase
|
||||
color: $color-calendar-day-selected
|
||||
background: transparent
|
||||
border: none
|
||||
label
|
||||
font-family: $font-family
|
||||
font-weight: 700
|
||||
text-transform: uppercase
|
||||
color: #666
|
||||
.datepicker
|
||||
+box-shadow(darken($color-calendar,30%) 0 0 4px)
|
||||
position: relative
|
||||
float: left
|
||||
margin-right: 1%
|
||||
width: 49%
|
||||
height: 100%
|
||||
background-color: $color-calendar
|
||||
font-family: $font-family
|
||||
table
|
||||
width: 100%
|
||||
margin: 0
|
||||
thead
|
||||
tr th:after
|
||||
content: ""
|
||||
border-top: 1px solid darken($color-calendar,10%)
|
||||
width: 100%
|
||||
display: block
|
||||
tr th
|
||||
background-color: darken($color-calendar,5%)
|
||||
color: lighten($color-calendar,25%)
|
||||
font-size: 0.7em
|
||||
font-weight: 700
|
||||
border-bottom: solid 1px lighten($color-calendar,7%)
|
||||
text-transform: uppercase
|
||||
tr:first-child th
|
||||
background-color: $color-bright
|
||||
font-weight: 200
|
||||
font-size: 1.4em
|
||||
color: $color-calendar-day-selected
|
||||
td, th
|
||||
text-align: center
|
||||
height: 2em
|
||||
line-height: 2em
|
||||
padding: 0
|
||||
color: $color-calendar-day
|
||||
position: relative
|
||||
td
|
||||
font-weight: 400
|
||||
padding: 0 10px
|
||||
border-bottom: solid 1px $color-calendar
|
||||
&.day:after
|
||||
content: ""
|
||||
position: absolute
|
||||
display: block
|
||||
top: 0
|
||||
left: 0
|
||||
width: 100%
|
||||
height: 100%
|
||||
z-index: 0
|
||||
background-color: transparent
|
||||
&.day:hover
|
||||
cursor: pointer
|
||||
&.day.disabled
|
||||
color: $color-calendar-outrange
|
||||
&.old, &.new
|
||||
color: $color-calendar-outrange
|
||||
&.start-selected:not(.old):not(.new):not(.end-selected)
|
||||
font-weight: 700
|
||||
background-color: $color-calendar-day-selected
|
||||
+border-left-radius(15px)
|
||||
@extend .chevron-left
|
||||
&.end-selected:not(.old):not(.new):not(.start-selected)
|
||||
font-weight: 700
|
||||
background-color: $color-calendar-day-selected
|
||||
@extend .chevron-right
|
||||
+border-right-radius(15px)
|
||||
&.end-selected.start-selected
|
||||
+border-radius(15px)
|
||||
font-weight: 700
|
||||
background-color: $color-calendar-day-selected
|
||||
&.range
|
||||
color: lighten($color-calendar-range,35%)
|
||||
background-color: $color-calendar-range
|
||||
&.today
|
||||
background-color: $color-bright
|
||||
input[type="text"]
|
||||
padding: 6px
|
||||
background-color: darken($color-calendar,10%)
|
||||
.input-selected
|
||||
margin: 0
|
||||
#date-start.input-selected
|
||||
border: solid 3px $color-calendar-day-selected
|
||||
#date-end.input-selected
|
||||
border: solid 3px $color-calendar-day-selected
|
||||
.datepickers-container
|
||||
width: 60%
|
||||
float: left
|
||||
margin: 0
|
||||
font-size: 16px
|
||||
height: 16.8em
|
||||
form#datepicker-form
|
||||
width: 40%
|
||||
float: left
|
||||
+border-radius(0)
|
||||
border: none
|
||||
#date-range .form-date-heading
|
||||
background-color: darken($color-calendar-compare,5%)
|
||||
#date-compare .form-date-heading
|
||||
background-color: darken($color-calendar-compare,5%)
|
||||
.form-date-heading
|
||||
font-family: $font-family
|
||||
font-size: 1.15em
|
||||
padding: 6px
|
||||
color: $color-bright
|
||||
font-weight: 200
|
||||
text-transform: uppercase
|
||||
.btn-default
|
||||
background-color: rgba($color-bright,0.3)
|
||||
font-weight: 700
|
||||
color: $color-bright
|
||||
border: none
|
||||
.form-date-body
|
||||
padding: 10px
|
||||
.form-date-group
|
||||
+box-shadow(darken($color-calendar,30%) 0 0 4px)
|
||||
background-color: $color-bright
|
||||
width: 100%
|
||||
margin: 0 auto 6px auto
|
||||
label, input
|
||||
float: left
|
||||
margin-right: 6px
|
||||
label
|
||||
line-height: 3.2em
|
||||
font-weight: 700
|
||||
font-size: 0.8em
|
||||
margin-bottom: 0
|
||||
input[type='text']
|
||||
width: 35%
|
||||
.actions
|
||||
+box-shadow(darken($color-calendar,30%) 0 0 4px)
|
||||
padding: 0
|
||||
background-color: $color-calendar
|
||||
.btn-primary
|
||||
padding: 12px
|
||||
text-transform: uppercase
|
||||
background-color: $color-bright
|
||||
color: $color-calendar-day-selected
|
||||
border: none
|
||||
.btn-default
|
||||
padding: 12px
|
||||
text-transform: uppercase
|
||||
color: $color-calendar-day-selected
|
||||
background: transparent
|
||||
border: none
|
||||
label
|
||||
font-family: $font-family
|
||||
font-weight: 700
|
||||
text-transform: uppercase
|
||||
color: #666
|
||||
.datepicker
|
||||
//+box-shadow(darken($color-calendar,30%) 0 0 4px)
|
||||
position: relative
|
||||
float: left
|
||||
margin-right: 1%
|
||||
width: 49%
|
||||
height: 100%
|
||||
background-color: $color-calendar
|
||||
font-family: $font-family
|
||||
table
|
||||
width: 100%
|
||||
margin: 0
|
||||
thead
|
||||
tr th:after
|
||||
content: ""
|
||||
border-top: 1px solid darken($color-calendar,10%)
|
||||
width: 100%
|
||||
display: block
|
||||
tr th
|
||||
background-color: darken($color-calendar,5%)
|
||||
color: lighten($color-calendar,25%)
|
||||
font-size: 0.7em
|
||||
font-weight: 700
|
||||
border-bottom: solid 1px lighten($color-calendar,7%)
|
||||
text-transform: uppercase
|
||||
tr:first-child th
|
||||
background-color: $color-bright
|
||||
font-weight: 200
|
||||
font-size: 1.4em
|
||||
color: $color-calendar-day-selected
|
||||
td, th
|
||||
text-align: center
|
||||
height: 2em
|
||||
line-height: 2em
|
||||
padding: 0
|
||||
color: $color-calendar-day
|
||||
position: relative
|
||||
td
|
||||
font-weight: 400
|
||||
padding: 0 10px
|
||||
border-bottom: solid 1px $color-calendar
|
||||
&.day:after
|
||||
content: ""
|
||||
position: absolute
|
||||
display: block
|
||||
top: 0
|
||||
left: 0
|
||||
width: 100%
|
||||
height: 100%
|
||||
z-index: 0
|
||||
background-color: transparent
|
||||
&.day:hover
|
||||
cursor: pointer
|
||||
&.day.disabled
|
||||
color: $color-calendar-outrange
|
||||
&.old, &.new
|
||||
color: $color-calendar-outrange
|
||||
&.start-selected:not(.old):not(.new):not(.end-selected)
|
||||
font-weight: 700
|
||||
background-color: $color-calendar-day-selected
|
||||
+border-left-radius(15px)
|
||||
@extend .chevron-left
|
||||
&.end-selected:not(.old):not(.new):not(.start-selected)
|
||||
font-weight: 700
|
||||
background-color: $color-calendar-day-selected
|
||||
@extend .chevron-right
|
||||
+border-right-radius(15px)
|
||||
&.end-selected.start-selected
|
||||
+border-radius(15px)
|
||||
font-weight: 700
|
||||
background-color: $color-calendar-day-selected
|
||||
&.range
|
||||
color: lighten($color-calendar-range,35%)
|
||||
background-color: $color-calendar-range
|
||||
&.today
|
||||
background-color: $color-bright
|
||||
|
||||
span
|
||||
padding: 0
|
||||
display: block
|
||||
width: 33.333%
|
||||
height: 3em
|
||||
line-height: 3em
|
||||
font-weight: 400
|
||||
float: left
|
||||
text-transform: uppercase
|
||||
cursor: pointer
|
||||
&:hover
|
||||
background-color: $color-calendar-day-selected
|
||||
&.active
|
||||
background-color: $color-calendar-day-selected
|
||||
color: #fff
|
||||
&.old
|
||||
color: $color-calendar-outrange
|
||||
th
|
||||
&.switch
|
||||
width: 145px
|
||||
&.next, &.prev
|
||||
font-size: 1.3em
|
||||
thead tr:first-child th
|
||||
cursor: pointer
|
||||
span
|
||||
padding: 0
|
||||
display: block
|
||||
width: 33.333%
|
||||
height: 3em
|
||||
line-height: 3em
|
||||
font-weight: 400
|
||||
float: left
|
||||
text-transform: uppercase
|
||||
cursor: pointer
|
||||
&:hover
|
||||
background-color: $color-calendar-day-selected
|
||||
&.active
|
||||
background-color: $color-calendar-day-selected
|
||||
color: #fff
|
||||
&.old
|
||||
color: $color-calendar-outrange
|
||||
th
|
||||
&.switch
|
||||
width: 145px
|
||||
&.next, &.prev
|
||||
font-size: 1.3em
|
||||
thead tr:first-child th
|
||||
cursor: pointer
|
||||
|
||||
|
||||
.chevron-left, .chevron-right
|
||||
position: relative
|
||||
position: relative
|
||||
.chevron-left:before, .chevron-right:before
|
||||
display: block
|
||||
content: ""
|
||||
width: 0
|
||||
height: 0
|
||||
border-style: solid
|
||||
position: absolute
|
||||
display: block
|
||||
content: ""
|
||||
width: 0
|
||||
height: 0
|
||||
border-style: solid
|
||||
position: absolute
|
||||
.chevron-left:before
|
||||
right: 0px
|
||||
top: 0
|
||||
border-width: 1em 0 1em 0.5em
|
||||
border-color: transparent transparent transparent $color-calendar-day-selected
|
||||
background-color: $color-calendar-range
|
||||
right: 0px
|
||||
top: 0
|
||||
border-width: 1em 0 1em 0.5em
|
||||
border-color: transparent transparent transparent $color-calendar-day-selected
|
||||
background-color: $color-calendar-range
|
||||
.chevron-right:before
|
||||
left: 0px
|
||||
top: 0
|
||||
border-width: 1em 0 1em 0.5em
|
||||
border-color: transparent transparent transparent $color-calendar-range
|
||||
background-color: $color-calendar-day-selected
|
||||
left: 0px
|
||||
top: 0
|
||||
border-width: 1em 0 1em 0.5em
|
||||
border-color: transparent transparent transparent $color-calendar-range
|
||||
background-color: $color-calendar-day-selected
|
||||
|
||||
.input-complete
|
||||
-webkit-animation: one 0.2s ease-in-out
|
||||
-moz-animation: one 0.2s ease-in-out
|
||||
-ms-animation: one 0.2s ease-in-out
|
||||
-o-animation: one 0.2s ease-in-out
|
||||
animation: one 0.2s ease-in-out
|
||||
|
||||
-webkit-animation: one 0.2s ease-in-out
|
||||
-moz-animation: one 0.2s ease-in-out
|
||||
-ms-animation: one 0.2s ease-in-out
|
||||
-o-animation: one 0.2s ease-in-out
|
||||
animation: one 0.2s ease-in-out
|
||||
|
||||
@-webkit-keyframes one
|
||||
0%
|
||||
background-color: $color-calendar
|
||||
100%
|
||||
background-color: $color-bright
|
||||
0%
|
||||
background-color: $color-calendar
|
||||
100%
|
||||
background-color: $color-bright
|
||||
|
||||
@-webkit-keyframes two
|
||||
0%
|
||||
+box-shadow($color-calendar 0 0 0 20px inset)
|
||||
100%
|
||||
+box-shadow($color-calendar 0 0 0 inset)
|
||||
|
||||
0%
|
||||
+box-shadow($color-calendar 0 0 0 20px inset)
|
||||
100%
|
||||
+box-shadow($color-calendar 0 0 0 inset)
|
||||
|
||||
@@ -228,7 +228,7 @@
|
||||
switch(target[0].nodeName.toLowerCase()) {
|
||||
case 'th':
|
||||
switch(target[0].className) {
|
||||
case 'switch':
|
||||
case 'month-switch':
|
||||
this.showMode(1);
|
||||
break;
|
||||
case 'prev':
|
||||
@@ -284,7 +284,7 @@
|
||||
target.addClass("start-selected");
|
||||
start = target.data("val");
|
||||
$("#date-start").val(start);
|
||||
!switched ? click = 1 : click = 2;
|
||||
if(!switched) {click = 1;} else {click = 2;}
|
||||
if(!switched){
|
||||
$("#date-end").val(null).focus().addClass("input-selected");
|
||||
target.addClass("start-selected").addClass("end-selected");
|
||||
@@ -412,7 +412,7 @@
|
||||
if (!data) {
|
||||
$this.data('datepicker', (data = new Datepicker(this, $.extend({}, $.fn.datepicker.defaults,options))));
|
||||
}
|
||||
if (typeof option === 'string') { data[option](val) }
|
||||
if (typeof option === 'string') { data[option](val);}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -516,7 +516,7 @@
|
||||
headTemplate: '<thead>'+
|
||||
'<tr>'+
|
||||
'<th class="prev"><i class="icon-angle-left"></i></th>'+
|
||||
'<th colspan="5" class="switch"></th>'+
|
||||
'<th colspan="5" class="month-switch"></th>'+
|
||||
'<th class="next"><i class="icon-angle-right"</th>'+
|
||||
'</tr>'+
|
||||
'</thead>',
|
||||
|
||||
@@ -1,46 +1,55 @@
|
||||
<div id="datepicker" class="datepicker-days">
|
||||
<div class="datepickers-container">
|
||||
<div class="datepicker1" data-date="{$from_date}" data-date-format="{$date_format}"></div>
|
||||
<div class="datepicker2" data-date="{$to_date}" data-date-format="{$date_format}"></div>
|
||||
</div>
|
||||
<form class='form-inline' id='datepicker-form'>
|
||||
<fieldset class='form-date-group' id='date-range'>
|
||||
<div class='form-date-heading'>
|
||||
{l s='Date range'}
|
||||
{if isset($actions) && $actions|count > 0}
|
||||
{if $actions|count > 1}
|
||||
<div class='btn btn-default btn-xs pull-right dropdown-toggle' data-toggle='dropdown'>
|
||||
{l s='Custom'}
|
||||
<i class='icon-angle-down'></i>
|
||||
<ul class='dropdown-menu'>
|
||||
{foreach from=$actions item=action}
|
||||
<li><a{if isset($action.href)} href="{$action.href}"{/if}{if isset($action.class)} class="{$action.class}"{/if}>{if isset($action.icon)}<i class="{$action.icon}"> {/if}{$action.label}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{else}
|
||||
<a{if isset($actions[0].href)} href="{$actions[0].href}"{/if} class="btn btn-default btn-xs pull-right{if isset($actions[0].class)} {$actions[0].class}{/if}">{if isset($actions[0].icon)}<i class="{$actions[0].icon}"></i> {/if}{$actions[0].label}</a>
|
||||
{/if}
|
||||
{/if}
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
<div class="datepickers-container">
|
||||
<div class="datepicker1" data-date="{$from_date}" data-date-format="{$date_format}"></div>
|
||||
<div class="datepicker2" data-date="{$to_date}" data-date-format="{$date_format}"></div>
|
||||
</div>
|
||||
<div class='form-date-body form-group'>
|
||||
<label>{l s='From'}</label>
|
||||
<input class='date-input form-control' id='date-start' placeholder='Start' type='text'>
|
||||
<label>{l s='to'}</label>
|
||||
<input class='date-input form-control' id='date-end' placeholder='End' type='text'>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class='actions'>
|
||||
<button class='btn-default' type='button'>
|
||||
<i class='icon-remove'></i>
|
||||
{l s='Cancel'}
|
||||
</button>
|
||||
<button class='btn-primary pull-right' type='submit'>
|
||||
<i class='icon-ok'></i>
|
||||
{l s='Apply'}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
<div class="col-lg-4">
|
||||
<form class='form-inline' id='datepicker-form'>
|
||||
<fieldset class='form-date-group' id='date-range'>
|
||||
<div class='form-date-heading'>
|
||||
{l s='Date range'}
|
||||
{if isset($actions) && $actions|count > 0}
|
||||
{if $actions|count > 1}
|
||||
<div class='btn btn-default btn-xs pull-right dropdown-toggle' data-toggle='dropdown'>
|
||||
{l s='Custom'}
|
||||
<i class='icon-angle-down'></i>
|
||||
<ul class='dropdown-menu'>
|
||||
{foreach from=$actions item=action}
|
||||
<li><a{if isset($action.href)} href="{$action.href}"{/if}{if isset($action.class)} class="{$action.class}"{/if}>{if isset($action.icon)}<i class="{$action.icon}"> {/if}{$action.label}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{else}
|
||||
<a{if isset($actions[0].href)} href="{$actions[0].href}"{/if} class="btn btn-default btn-xs pull-right{if isset($actions[0].class)} {$actions[0].class}{/if}">{if isset($actions[0].icon)}<i class="{$actions[0].icon}"></i> {/if}{$actions[0].label}</a>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
<div class='form-date-body form-group'>
|
||||
<label>{l s='From'}</label>
|
||||
<input class='date-input form-control' id='date-start' placeholder='Start' type='text'>
|
||||
<label>{l s='to'}</label>
|
||||
<input class='date-input form-control' id='date-end' placeholder='End' type='text'>
|
||||
</div>
|
||||
<hr/>
|
||||
<div class='form-group'>
|
||||
<button class='btn btn-default' type='button'>
|
||||
<i class='icon-remove text-danger'></i>
|
||||
{l s='Cancel'}
|
||||
</button>
|
||||
|
||||
<button class='btn btn-default' type='submit'>
|
||||
<i class='icon-ok text-success'></i>
|
||||
{l s='Apply'}
|
||||
</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<hr/>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
|
||||
Reference in New Issue
Block a user