log work
This commit is contained in:
parent
d18d3a14b0
commit
72fffcfbca
@ -14,6 +14,7 @@
|
|||||||
//= require jquery_ujs
|
//= require jquery_ujs
|
||||||
//= require turbolinks
|
//= require turbolinks
|
||||||
//= require bootstrap-sprockets
|
//= require bootstrap-sprockets
|
||||||
|
//= require bootstrap-datepicker
|
||||||
//= require cocoon
|
//= require cocoon
|
||||||
//= require typeahead
|
//= require typeahead
|
||||||
//= require autosize
|
//= require autosize
|
||||||
|
76
app/assets/javascripts/star_rating.js
Normal file
76
app/assets/javascripts/star_rating.js
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
|
||||||
|
(function ($) {
|
||||||
|
|
||||||
|
var pluginName = "starRating";
|
||||||
|
var defaultOptions = {
|
||||||
|
starCount: 5
|
||||||
|
};
|
||||||
|
|
||||||
|
var methods = {
|
||||||
|
initialize: function(opts) {
|
||||||
|
return this.each(function() {
|
||||||
|
var options = _.extend({}, defaultOptions, opts);
|
||||||
|
|
||||||
|
var $input = $(this);
|
||||||
|
options.$input = $input;
|
||||||
|
|
||||||
|
var $widget = $("<span />").addClass("star-rating");
|
||||||
|
|
||||||
|
for (var x = 1; x <= options.starCount; x++) {
|
||||||
|
$widget.append(
|
||||||
|
$("<span />").addClass("star").data("rating", x)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
$widget.data(pluginName + ".options", options);
|
||||||
|
|
||||||
|
$input.hide().after($widget);
|
||||||
|
|
||||||
|
privateMethods.updateStars($widget);
|
||||||
|
|
||||||
|
$widget.on("click." + pluginName, "span.star", function(e) {
|
||||||
|
var value = $(this).data("rating");
|
||||||
|
privateMethods.setValue($widget, value);
|
||||||
|
});
|
||||||
|
|
||||||
|
$input.on("change." + pluginName, function() {
|
||||||
|
privateMethods.updateStars($widget);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var privateMethods = {
|
||||||
|
updateStars: function($widget) {
|
||||||
|
var options = $widget.data(pluginName + ".options");
|
||||||
|
var value = parseInt(options.$input.val());
|
||||||
|
|
||||||
|
$widget.find(".star").each(function(idx, elem) {
|
||||||
|
var $star = $(elem);
|
||||||
|
$star.removeClass("empty full");
|
||||||
|
if ($star.data("rating") <= value) {
|
||||||
|
$star.addClass("full");
|
||||||
|
} else {
|
||||||
|
$star.addClass("empty");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
setValue: function($widget, value) {
|
||||||
|
var options = $widget.data(pluginName + ".options");
|
||||||
|
options.$input.val(value);
|
||||||
|
privateMethods.updateStars($widget);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$.fn[pluginName] = function(method) {
|
||||||
|
if (methods[method]) {
|
||||||
|
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
|
||||||
|
} else if (typeof method === 'object' || ! method) {
|
||||||
|
return methods.initialize.apply(this, arguments);
|
||||||
|
} else {
|
||||||
|
$.error('Method ' + method + ' does not exist on jQuery.' + pluginName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
})(jQuery);
|
@ -12,6 +12,7 @@
|
|||||||
*
|
*
|
||||||
*= require flash_messages
|
*= require flash_messages
|
||||||
*= require chosen
|
*= require chosen
|
||||||
|
*= require bootstrap-datepicker3
|
||||||
*= require font_references
|
*= require font_references
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -23,6 +24,7 @@
|
|||||||
|
|
||||||
@import "typeahead-bootstrap";
|
@import "typeahead-bootstrap";
|
||||||
@import "recipes";
|
@import "recipes";
|
||||||
|
@import "star_rating";
|
||||||
|
|
||||||
// Skin overrides
|
// Skin overrides
|
||||||
.has-error {
|
.has-error {
|
||||||
|
23
app/assets/stylesheets/star_rating.scss
Normal file
23
app/assets/stylesheets/star_rating.scss
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
|
||||||
|
|
||||||
|
span.star-rating {
|
||||||
|
|
||||||
|
display: block;
|
||||||
|
font-size: 30px;
|
||||||
|
color: gold;
|
||||||
|
cursor: default;
|
||||||
|
|
||||||
|
span.star {
|
||||||
|
|
||||||
|
@extend .glyphicon;
|
||||||
|
|
||||||
|
&.empty {
|
||||||
|
@extend .glyphicon-star-empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.full {
|
||||||
|
@extend .glyphicon-star;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -33,6 +33,7 @@ class LogsController < ApplicationController
|
|||||||
|
|
||||||
def new
|
def new
|
||||||
@log = Log.new
|
@log = Log.new
|
||||||
|
@log.date = Time.now
|
||||||
@log.user = current_user
|
@log.user = current_user
|
||||||
@log.source_recipe = @recipe
|
@log.source_recipe = @recipe
|
||||||
@log.recipe = @recipe.log_copy(current_user)
|
@log.recipe = @recipe.log_copy(current_user)
|
||||||
|
14
app/decorators/log_decorator.rb
Normal file
14
app/decorators/log_decorator.rb
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
class LogDecorator < BaseDecorator
|
||||||
|
|
||||||
|
def date
|
||||||
|
v = super
|
||||||
|
puts v
|
||||||
|
puts '================'
|
||||||
|
if v && v.respond_to?(:strftime)
|
||||||
|
v.strftime("%Y-%m-%d")
|
||||||
|
else
|
||||||
|
v
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
@ -1,16 +1,36 @@
|
|||||||
|
<% @log = decorate(@log, LogDecorator) %>
|
||||||
|
|
||||||
<%= form_for([@recipe, @log]) do |f| %>
|
<%= form_for([@recipe, @log]) do |f| %>
|
||||||
|
|
||||||
<%= render partial: 'shared/error_list', locals: {model: @log} %>
|
<%= render partial: 'shared/error_list', locals: {model: @log} %>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="row">
|
||||||
<%= f.label :date, class: 'control-label' %>
|
<div class="col-xs-6">
|
||||||
<%= f.text_field :date, class: 'form-control name', autofocus: true %>
|
<div class="form-group form-group-sm">
|
||||||
</div>
|
<%= f.label :date, class: 'control-label' %>
|
||||||
|
<%= f.text_field :date, class: 'form-control datepicker', value: @log.date %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="col-xs-6">
|
||||||
<%= f.label :rating, class: 'control-label' %>
|
<div class="form-group form-group-sm">
|
||||||
<%= f.text_field :rating, class: 'form-control name' %>
|
<%= f.label :rating, class: 'control-label' %>
|
||||||
|
<%= f.text_field :rating, class: 'form-control rating' %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="form-group form-group-sm">
|
||||||
|
<%= f.label :notes, 'Log Notes', class: 'control-label' %>
|
||||||
|
<%= f.text_area :notes, class: 'form-control' %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="actions">
|
||||||
|
<%= f.submit class: 'btn btn-primary' %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= f.fields_for(:recipe, include_id: false) do |rf| %>
|
<%= f.fields_for(:recipe, include_id: false) do |rf| %>
|
||||||
@ -23,3 +43,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
$(document).on("turbolinks:load", function() {
|
||||||
|
$("input.datepicker").datepicker({autoclose: true, todayBtn: "linked", format: "yyyy-mm-dd"});
|
||||||
|
$("input.rating").starRating();
|
||||||
|
});
|
||||||
|
</script>
|
0
app/views/logs/show.html.erb
Normal file
0
app/views/logs/show.html.erb
Normal file
5
db/migrate/20160812205919_add_notes_to_logs.rb
Normal file
5
db/migrate/20160812205919_add_notes_to_logs.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class AddNotesToLogs < ActiveRecord::Migration[5.0]
|
||||||
|
def change
|
||||||
|
add_column :logs, :notes, :text
|
||||||
|
end
|
||||||
|
end
|
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20160711170912) do
|
ActiveRecord::Schema.define(version: 20160812205919) do
|
||||||
|
|
||||||
create_table "ingredient_units", force: :cascade do |t|
|
create_table "ingredient_units", force: :cascade do |t|
|
||||||
t.integer "ingredient_id", null: false
|
t.integer "ingredient_id", null: false
|
||||||
@ -62,6 +62,7 @@ ActiveRecord::Schema.define(version: 20160711170912) do
|
|||||||
t.integer "rating"
|
t.integer "rating"
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
|
t.text "notes"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "recipe_ingredients", force: :cascade do |t|
|
create_table "recipe_ingredients", force: :cascade do |t|
|
||||||
|
2089
vendor/assets/javascripts/bootstrap-datepicker.js
vendored
Normal file
2089
vendor/assets/javascripts/bootstrap-datepicker.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
681
vendor/assets/stylesheets/bootstrap-datepicker3.css
vendored
Normal file
681
vendor/assets/stylesheets/bootstrap-datepicker3.css
vendored
Normal file
@ -0,0 +1,681 @@
|
|||||||
|
/*!
|
||||||
|
* Datepicker for Bootstrap v1.6.1 (https://github.com/eternicode/bootstrap-datepicker)
|
||||||
|
*
|
||||||
|
* Copyright 2012 Stefan Petre
|
||||||
|
* Improvements by Andrew Rowls
|
||||||
|
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
*/
|
||||||
|
.datepicker {
|
||||||
|
border-radius: 4px;
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
|
.datepicker-inline {
|
||||||
|
width: 220px;
|
||||||
|
}
|
||||||
|
.datepicker.datepicker-rtl {
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
.datepicker.datepicker-rtl table tr td span {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.datepicker-dropdown {
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
.datepicker-dropdown:before {
|
||||||
|
content: '';
|
||||||
|
display: inline-block;
|
||||||
|
border-left: 7px solid transparent;
|
||||||
|
border-right: 7px solid transparent;
|
||||||
|
border-bottom: 7px solid rgba(0, 0, 0, 0.15);
|
||||||
|
border-top: 0;
|
||||||
|
border-bottom-color: rgba(0, 0, 0, 0.2);
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
.datepicker-dropdown:after {
|
||||||
|
content: '';
|
||||||
|
display: inline-block;
|
||||||
|
border-left: 6px solid transparent;
|
||||||
|
border-right: 6px solid transparent;
|
||||||
|
border-bottom: 6px solid #ffffff;
|
||||||
|
border-top: 0;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
.datepicker-dropdown.datepicker-orient-left:before {
|
||||||
|
left: 6px;
|
||||||
|
}
|
||||||
|
.datepicker-dropdown.datepicker-orient-left:after {
|
||||||
|
left: 7px;
|
||||||
|
}
|
||||||
|
.datepicker-dropdown.datepicker-orient-right:before {
|
||||||
|
right: 6px;
|
||||||
|
}
|
||||||
|
.datepicker-dropdown.datepicker-orient-right:after {
|
||||||
|
right: 7px;
|
||||||
|
}
|
||||||
|
.datepicker-dropdown.datepicker-orient-bottom:before {
|
||||||
|
top: -7px;
|
||||||
|
}
|
||||||
|
.datepicker-dropdown.datepicker-orient-bottom:after {
|
||||||
|
top: -6px;
|
||||||
|
}
|
||||||
|
.datepicker-dropdown.datepicker-orient-top:before {
|
||||||
|
bottom: -7px;
|
||||||
|
border-bottom: 0;
|
||||||
|
border-top: 7px solid rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
.datepicker-dropdown.datepicker-orient-top:after {
|
||||||
|
bottom: -6px;
|
||||||
|
border-bottom: 0;
|
||||||
|
border-top: 6px solid #ffffff;
|
||||||
|
}
|
||||||
|
.datepicker > div {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.datepicker table {
|
||||||
|
margin: 0;
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
.datepicker table tr td,
|
||||||
|
.datepicker table tr th {
|
||||||
|
text-align: center;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
.table-striped .datepicker table tr td,
|
||||||
|
.table-striped .datepicker table tr th {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.old,
|
||||||
|
.datepicker table tr td.new {
|
||||||
|
color: #777777;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.day:hover,
|
||||||
|
.datepicker table tr td.focused {
|
||||||
|
background: #eeeeee;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.disabled,
|
||||||
|
.datepicker table tr td.disabled:hover {
|
||||||
|
background: none;
|
||||||
|
color: #777777;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.highlighted {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #d9edf7;
|
||||||
|
border-color: #85c5e5;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.highlighted:focus,
|
||||||
|
.datepicker table tr td.highlighted.focus {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #afd9ee;
|
||||||
|
border-color: #298fc2;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.highlighted:hover {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #afd9ee;
|
||||||
|
border-color: #52addb;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.highlighted:active,
|
||||||
|
.datepicker table tr td.highlighted.active {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #afd9ee;
|
||||||
|
border-color: #52addb;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.highlighted:active:hover,
|
||||||
|
.datepicker table tr td.highlighted.active:hover,
|
||||||
|
.datepicker table tr td.highlighted:active:focus,
|
||||||
|
.datepicker table tr td.highlighted.active:focus,
|
||||||
|
.datepicker table tr td.highlighted:active.focus,
|
||||||
|
.datepicker table tr td.highlighted.active.focus {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #91cbe8;
|
||||||
|
border-color: #298fc2;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.highlighted.disabled:hover,
|
||||||
|
.datepicker table tr td.highlighted[disabled]:hover,
|
||||||
|
fieldset[disabled] .datepicker table tr td.highlighted:hover,
|
||||||
|
.datepicker table tr td.highlighted.disabled:focus,
|
||||||
|
.datepicker table tr td.highlighted[disabled]:focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.highlighted:focus,
|
||||||
|
.datepicker table tr td.highlighted.disabled.focus,
|
||||||
|
.datepicker table tr td.highlighted[disabled].focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.highlighted.focus {
|
||||||
|
background-color: #d9edf7;
|
||||||
|
border-color: #85c5e5;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.highlighted.focused {
|
||||||
|
background: #afd9ee;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.highlighted.disabled,
|
||||||
|
.datepicker table tr td.highlighted.disabled:active {
|
||||||
|
background: #d9edf7;
|
||||||
|
color: #777777;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.today {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #ffdb99;
|
||||||
|
border-color: #ffb733;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.today:focus,
|
||||||
|
.datepicker table tr td.today.focus {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #ffc966;
|
||||||
|
border-color: #b37400;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.today:hover {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #ffc966;
|
||||||
|
border-color: #f59e00;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.today:active,
|
||||||
|
.datepicker table tr td.today.active {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #ffc966;
|
||||||
|
border-color: #f59e00;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.today:active:hover,
|
||||||
|
.datepicker table tr td.today.active:hover,
|
||||||
|
.datepicker table tr td.today:active:focus,
|
||||||
|
.datepicker table tr td.today.active:focus,
|
||||||
|
.datepicker table tr td.today:active.focus,
|
||||||
|
.datepicker table tr td.today.active.focus {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #ffbc42;
|
||||||
|
border-color: #b37400;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.today.disabled:hover,
|
||||||
|
.datepicker table tr td.today[disabled]:hover,
|
||||||
|
fieldset[disabled] .datepicker table tr td.today:hover,
|
||||||
|
.datepicker table tr td.today.disabled:focus,
|
||||||
|
.datepicker table tr td.today[disabled]:focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.today:focus,
|
||||||
|
.datepicker table tr td.today.disabled.focus,
|
||||||
|
.datepicker table tr td.today[disabled].focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.today.focus {
|
||||||
|
background-color: #ffdb99;
|
||||||
|
border-color: #ffb733;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.today.focused {
|
||||||
|
background: #ffc966;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.today.disabled,
|
||||||
|
.datepicker table tr td.today.disabled:active {
|
||||||
|
background: #ffdb99;
|
||||||
|
color: #777777;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #eeeeee;
|
||||||
|
border-color: #bbbbbb;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range:focus,
|
||||||
|
.datepicker table tr td.range.focus {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #d5d5d5;
|
||||||
|
border-color: #7c7c7c;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range:hover {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #d5d5d5;
|
||||||
|
border-color: #9d9d9d;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range:active,
|
||||||
|
.datepicker table tr td.range.active {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #d5d5d5;
|
||||||
|
border-color: #9d9d9d;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range:active:hover,
|
||||||
|
.datepicker table tr td.range.active:hover,
|
||||||
|
.datepicker table tr td.range:active:focus,
|
||||||
|
.datepicker table tr td.range.active:focus,
|
||||||
|
.datepicker table tr td.range:active.focus,
|
||||||
|
.datepicker table tr td.range.active.focus {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #c3c3c3;
|
||||||
|
border-color: #7c7c7c;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.disabled:hover,
|
||||||
|
.datepicker table tr td.range[disabled]:hover,
|
||||||
|
fieldset[disabled] .datepicker table tr td.range:hover,
|
||||||
|
.datepicker table tr td.range.disabled:focus,
|
||||||
|
.datepicker table tr td.range[disabled]:focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.range:focus,
|
||||||
|
.datepicker table tr td.range.disabled.focus,
|
||||||
|
.datepicker table tr td.range[disabled].focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.range.focus {
|
||||||
|
background-color: #eeeeee;
|
||||||
|
border-color: #bbbbbb;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.focused {
|
||||||
|
background: #d5d5d5;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.disabled,
|
||||||
|
.datepicker table tr td.range.disabled:active {
|
||||||
|
background: #eeeeee;
|
||||||
|
color: #777777;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.highlighted {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #e4eef3;
|
||||||
|
border-color: #9dc1d3;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.highlighted:focus,
|
||||||
|
.datepicker table tr td.range.highlighted.focus {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #c1d7e3;
|
||||||
|
border-color: #4b88a6;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.highlighted:hover {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #c1d7e3;
|
||||||
|
border-color: #73a6c0;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.highlighted:active,
|
||||||
|
.datepicker table tr td.range.highlighted.active {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #c1d7e3;
|
||||||
|
border-color: #73a6c0;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.highlighted:active:hover,
|
||||||
|
.datepicker table tr td.range.highlighted.active:hover,
|
||||||
|
.datepicker table tr td.range.highlighted:active:focus,
|
||||||
|
.datepicker table tr td.range.highlighted.active:focus,
|
||||||
|
.datepicker table tr td.range.highlighted:active.focus,
|
||||||
|
.datepicker table tr td.range.highlighted.active.focus {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #a8c8d8;
|
||||||
|
border-color: #4b88a6;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.highlighted.disabled:hover,
|
||||||
|
.datepicker table tr td.range.highlighted[disabled]:hover,
|
||||||
|
fieldset[disabled] .datepicker table tr td.range.highlighted:hover,
|
||||||
|
.datepicker table tr td.range.highlighted.disabled:focus,
|
||||||
|
.datepicker table tr td.range.highlighted[disabled]:focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.range.highlighted:focus,
|
||||||
|
.datepicker table tr td.range.highlighted.disabled.focus,
|
||||||
|
.datepicker table tr td.range.highlighted[disabled].focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.range.highlighted.focus {
|
||||||
|
background-color: #e4eef3;
|
||||||
|
border-color: #9dc1d3;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.highlighted.focused {
|
||||||
|
background: #c1d7e3;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.highlighted.disabled,
|
||||||
|
.datepicker table tr td.range.highlighted.disabled:active {
|
||||||
|
background: #e4eef3;
|
||||||
|
color: #777777;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.today {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #f7ca77;
|
||||||
|
border-color: #f1a417;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.today:focus,
|
||||||
|
.datepicker table tr td.range.today.focus {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #f4b747;
|
||||||
|
border-color: #815608;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.today:hover {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #f4b747;
|
||||||
|
border-color: #bf800c;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.today:active,
|
||||||
|
.datepicker table tr td.range.today.active {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #f4b747;
|
||||||
|
border-color: #bf800c;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.today:active:hover,
|
||||||
|
.datepicker table tr td.range.today.active:hover,
|
||||||
|
.datepicker table tr td.range.today:active:focus,
|
||||||
|
.datepicker table tr td.range.today.active:focus,
|
||||||
|
.datepicker table tr td.range.today:active.focus,
|
||||||
|
.datepicker table tr td.range.today.active.focus {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #f2aa25;
|
||||||
|
border-color: #815608;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.today.disabled:hover,
|
||||||
|
.datepicker table tr td.range.today[disabled]:hover,
|
||||||
|
fieldset[disabled] .datepicker table tr td.range.today:hover,
|
||||||
|
.datepicker table tr td.range.today.disabled:focus,
|
||||||
|
.datepicker table tr td.range.today[disabled]:focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.range.today:focus,
|
||||||
|
.datepicker table tr td.range.today.disabled.focus,
|
||||||
|
.datepicker table tr td.range.today[disabled].focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.range.today.focus {
|
||||||
|
background-color: #f7ca77;
|
||||||
|
border-color: #f1a417;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.range.today.disabled,
|
||||||
|
.datepicker table tr td.range.today.disabled:active {
|
||||||
|
background: #f7ca77;
|
||||||
|
color: #777777;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.selected,
|
||||||
|
.datepicker table tr td.selected.highlighted {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #777777;
|
||||||
|
border-color: #555555;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||||
|
}
|
||||||
|
.datepicker table tr td.selected:focus,
|
||||||
|
.datepicker table tr td.selected.highlighted:focus,
|
||||||
|
.datepicker table tr td.selected.focus,
|
||||||
|
.datepicker table tr td.selected.highlighted.focus {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #5e5e5e;
|
||||||
|
border-color: #161616;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.selected:hover,
|
||||||
|
.datepicker table tr td.selected.highlighted:hover {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #5e5e5e;
|
||||||
|
border-color: #373737;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.selected:active,
|
||||||
|
.datepicker table tr td.selected.highlighted:active,
|
||||||
|
.datepicker table tr td.selected.active,
|
||||||
|
.datepicker table tr td.selected.highlighted.active {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #5e5e5e;
|
||||||
|
border-color: #373737;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.selected:active:hover,
|
||||||
|
.datepicker table tr td.selected.highlighted:active:hover,
|
||||||
|
.datepicker table tr td.selected.active:hover,
|
||||||
|
.datepicker table tr td.selected.highlighted.active:hover,
|
||||||
|
.datepicker table tr td.selected:active:focus,
|
||||||
|
.datepicker table tr td.selected.highlighted:active:focus,
|
||||||
|
.datepicker table tr td.selected.active:focus,
|
||||||
|
.datepicker table tr td.selected.highlighted.active:focus,
|
||||||
|
.datepicker table tr td.selected:active.focus,
|
||||||
|
.datepicker table tr td.selected.highlighted:active.focus,
|
||||||
|
.datepicker table tr td.selected.active.focus,
|
||||||
|
.datepicker table tr td.selected.highlighted.active.focus {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #4c4c4c;
|
||||||
|
border-color: #161616;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.selected.disabled:hover,
|
||||||
|
.datepicker table tr td.selected.highlighted.disabled:hover,
|
||||||
|
.datepicker table tr td.selected[disabled]:hover,
|
||||||
|
.datepicker table tr td.selected.highlighted[disabled]:hover,
|
||||||
|
fieldset[disabled] .datepicker table tr td.selected:hover,
|
||||||
|
fieldset[disabled] .datepicker table tr td.selected.highlighted:hover,
|
||||||
|
.datepicker table tr td.selected.disabled:focus,
|
||||||
|
.datepicker table tr td.selected.highlighted.disabled:focus,
|
||||||
|
.datepicker table tr td.selected[disabled]:focus,
|
||||||
|
.datepicker table tr td.selected.highlighted[disabled]:focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.selected:focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.selected.highlighted:focus,
|
||||||
|
.datepicker table tr td.selected.disabled.focus,
|
||||||
|
.datepicker table tr td.selected.highlighted.disabled.focus,
|
||||||
|
.datepicker table tr td.selected[disabled].focus,
|
||||||
|
.datepicker table tr td.selected.highlighted[disabled].focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.selected.focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.selected.highlighted.focus {
|
||||||
|
background-color: #777777;
|
||||||
|
border-color: #555555;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.active,
|
||||||
|
.datepicker table tr td.active.highlighted {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #337ab7;
|
||||||
|
border-color: #2e6da4;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||||
|
}
|
||||||
|
.datepicker table tr td.active:focus,
|
||||||
|
.datepicker table tr td.active.highlighted:focus,
|
||||||
|
.datepicker table tr td.active.focus,
|
||||||
|
.datepicker table tr td.active.highlighted.focus {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #286090;
|
||||||
|
border-color: #122b40;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.active:hover,
|
||||||
|
.datepicker table tr td.active.highlighted:hover {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #286090;
|
||||||
|
border-color: #204d74;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.active:active,
|
||||||
|
.datepicker table tr td.active.highlighted:active,
|
||||||
|
.datepicker table tr td.active.active,
|
||||||
|
.datepicker table tr td.active.highlighted.active {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #286090;
|
||||||
|
border-color: #204d74;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.active:active:hover,
|
||||||
|
.datepicker table tr td.active.highlighted:active:hover,
|
||||||
|
.datepicker table tr td.active.active:hover,
|
||||||
|
.datepicker table tr td.active.highlighted.active:hover,
|
||||||
|
.datepicker table tr td.active:active:focus,
|
||||||
|
.datepicker table tr td.active.highlighted:active:focus,
|
||||||
|
.datepicker table tr td.active.active:focus,
|
||||||
|
.datepicker table tr td.active.highlighted.active:focus,
|
||||||
|
.datepicker table tr td.active:active.focus,
|
||||||
|
.datepicker table tr td.active.highlighted:active.focus,
|
||||||
|
.datepicker table tr td.active.active.focus,
|
||||||
|
.datepicker table tr td.active.highlighted.active.focus {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #204d74;
|
||||||
|
border-color: #122b40;
|
||||||
|
}
|
||||||
|
.datepicker table tr td.active.disabled:hover,
|
||||||
|
.datepicker table tr td.active.highlighted.disabled:hover,
|
||||||
|
.datepicker table tr td.active[disabled]:hover,
|
||||||
|
.datepicker table tr td.active.highlighted[disabled]:hover,
|
||||||
|
fieldset[disabled] .datepicker table tr td.active:hover,
|
||||||
|
fieldset[disabled] .datepicker table tr td.active.highlighted:hover,
|
||||||
|
.datepicker table tr td.active.disabled:focus,
|
||||||
|
.datepicker table tr td.active.highlighted.disabled:focus,
|
||||||
|
.datepicker table tr td.active[disabled]:focus,
|
||||||
|
.datepicker table tr td.active.highlighted[disabled]:focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.active:focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.active.highlighted:focus,
|
||||||
|
.datepicker table tr td.active.disabled.focus,
|
||||||
|
.datepicker table tr td.active.highlighted.disabled.focus,
|
||||||
|
.datepicker table tr td.active[disabled].focus,
|
||||||
|
.datepicker table tr td.active.highlighted[disabled].focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.active.focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td.active.highlighted.focus {
|
||||||
|
background-color: #337ab7;
|
||||||
|
border-color: #2e6da4;
|
||||||
|
}
|
||||||
|
.datepicker table tr td span {
|
||||||
|
display: block;
|
||||||
|
width: 23%;
|
||||||
|
height: 54px;
|
||||||
|
line-height: 54px;
|
||||||
|
float: left;
|
||||||
|
margin: 1%;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.datepicker table tr td span:hover,
|
||||||
|
.datepicker table tr td span.focused {
|
||||||
|
background: #eeeeee;
|
||||||
|
}
|
||||||
|
.datepicker table tr td span.disabled,
|
||||||
|
.datepicker table tr td span.disabled:hover {
|
||||||
|
background: none;
|
||||||
|
color: #777777;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
.datepicker table tr td span.active,
|
||||||
|
.datepicker table tr td span.active:hover,
|
||||||
|
.datepicker table tr td span.active.disabled,
|
||||||
|
.datepicker table tr td span.active.disabled:hover {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #337ab7;
|
||||||
|
border-color: #2e6da4;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||||
|
}
|
||||||
|
.datepicker table tr td span.active:focus,
|
||||||
|
.datepicker table tr td span.active:hover:focus,
|
||||||
|
.datepicker table tr td span.active.disabled:focus,
|
||||||
|
.datepicker table tr td span.active.disabled:hover:focus,
|
||||||
|
.datepicker table tr td span.active.focus,
|
||||||
|
.datepicker table tr td span.active:hover.focus,
|
||||||
|
.datepicker table tr td span.active.disabled.focus,
|
||||||
|
.datepicker table tr td span.active.disabled:hover.focus {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #286090;
|
||||||
|
border-color: #122b40;
|
||||||
|
}
|
||||||
|
.datepicker table tr td span.active:hover,
|
||||||
|
.datepicker table tr td span.active:hover:hover,
|
||||||
|
.datepicker table tr td span.active.disabled:hover,
|
||||||
|
.datepicker table tr td span.active.disabled:hover:hover {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #286090;
|
||||||
|
border-color: #204d74;
|
||||||
|
}
|
||||||
|
.datepicker table tr td span.active:active,
|
||||||
|
.datepicker table tr td span.active:hover:active,
|
||||||
|
.datepicker table tr td span.active.disabled:active,
|
||||||
|
.datepicker table tr td span.active.disabled:hover:active,
|
||||||
|
.datepicker table tr td span.active.active,
|
||||||
|
.datepicker table tr td span.active:hover.active,
|
||||||
|
.datepicker table tr td span.active.disabled.active,
|
||||||
|
.datepicker table tr td span.active.disabled:hover.active {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #286090;
|
||||||
|
border-color: #204d74;
|
||||||
|
}
|
||||||
|
.datepicker table tr td span.active:active:hover,
|
||||||
|
.datepicker table tr td span.active:hover:active:hover,
|
||||||
|
.datepicker table tr td span.active.disabled:active:hover,
|
||||||
|
.datepicker table tr td span.active.disabled:hover:active:hover,
|
||||||
|
.datepicker table tr td span.active.active:hover,
|
||||||
|
.datepicker table tr td span.active:hover.active:hover,
|
||||||
|
.datepicker table tr td span.active.disabled.active:hover,
|
||||||
|
.datepicker table tr td span.active.disabled:hover.active:hover,
|
||||||
|
.datepicker table tr td span.active:active:focus,
|
||||||
|
.datepicker table tr td span.active:hover:active:focus,
|
||||||
|
.datepicker table tr td span.active.disabled:active:focus,
|
||||||
|
.datepicker table tr td span.active.disabled:hover:active:focus,
|
||||||
|
.datepicker table tr td span.active.active:focus,
|
||||||
|
.datepicker table tr td span.active:hover.active:focus,
|
||||||
|
.datepicker table tr td span.active.disabled.active:focus,
|
||||||
|
.datepicker table tr td span.active.disabled:hover.active:focus,
|
||||||
|
.datepicker table tr td span.active:active.focus,
|
||||||
|
.datepicker table tr td span.active:hover:active.focus,
|
||||||
|
.datepicker table tr td span.active.disabled:active.focus,
|
||||||
|
.datepicker table tr td span.active.disabled:hover:active.focus,
|
||||||
|
.datepicker table tr td span.active.active.focus,
|
||||||
|
.datepicker table tr td span.active:hover.active.focus,
|
||||||
|
.datepicker table tr td span.active.disabled.active.focus,
|
||||||
|
.datepicker table tr td span.active.disabled:hover.active.focus {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #204d74;
|
||||||
|
border-color: #122b40;
|
||||||
|
}
|
||||||
|
.datepicker table tr td span.active.disabled:hover,
|
||||||
|
.datepicker table tr td span.active:hover.disabled:hover,
|
||||||
|
.datepicker table tr td span.active.disabled.disabled:hover,
|
||||||
|
.datepicker table tr td span.active.disabled:hover.disabled:hover,
|
||||||
|
.datepicker table tr td span.active[disabled]:hover,
|
||||||
|
.datepicker table tr td span.active:hover[disabled]:hover,
|
||||||
|
.datepicker table tr td span.active.disabled[disabled]:hover,
|
||||||
|
.datepicker table tr td span.active.disabled:hover[disabled]:hover,
|
||||||
|
fieldset[disabled] .datepicker table tr td span.active:hover,
|
||||||
|
fieldset[disabled] .datepicker table tr td span.active:hover:hover,
|
||||||
|
fieldset[disabled] .datepicker table tr td span.active.disabled:hover,
|
||||||
|
fieldset[disabled] .datepicker table tr td span.active.disabled:hover:hover,
|
||||||
|
.datepicker table tr td span.active.disabled:focus,
|
||||||
|
.datepicker table tr td span.active:hover.disabled:focus,
|
||||||
|
.datepicker table tr td span.active.disabled.disabled:focus,
|
||||||
|
.datepicker table tr td span.active.disabled:hover.disabled:focus,
|
||||||
|
.datepicker table tr td span.active[disabled]:focus,
|
||||||
|
.datepicker table tr td span.active:hover[disabled]:focus,
|
||||||
|
.datepicker table tr td span.active.disabled[disabled]:focus,
|
||||||
|
.datepicker table tr td span.active.disabled:hover[disabled]:focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td span.active:focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td span.active:hover:focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td span.active.disabled:focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td span.active.disabled:hover:focus,
|
||||||
|
.datepicker table tr td span.active.disabled.focus,
|
||||||
|
.datepicker table tr td span.active:hover.disabled.focus,
|
||||||
|
.datepicker table tr td span.active.disabled.disabled.focus,
|
||||||
|
.datepicker table tr td span.active.disabled:hover.disabled.focus,
|
||||||
|
.datepicker table tr td span.active[disabled].focus,
|
||||||
|
.datepicker table tr td span.active:hover[disabled].focus,
|
||||||
|
.datepicker table tr td span.active.disabled[disabled].focus,
|
||||||
|
.datepicker table tr td span.active.disabled:hover[disabled].focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td span.active.focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td span.active:hover.focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td span.active.disabled.focus,
|
||||||
|
fieldset[disabled] .datepicker table tr td span.active.disabled:hover.focus {
|
||||||
|
background-color: #337ab7;
|
||||||
|
border-color: #2e6da4;
|
||||||
|
}
|
||||||
|
.datepicker table tr td span.old,
|
||||||
|
.datepicker table tr td span.new {
|
||||||
|
color: #777777;
|
||||||
|
}
|
||||||
|
.datepicker .datepicker-switch {
|
||||||
|
width: 145px;
|
||||||
|
}
|
||||||
|
.datepicker .datepicker-switch,
|
||||||
|
.datepicker .prev,
|
||||||
|
.datepicker .next,
|
||||||
|
.datepicker tfoot tr th {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.datepicker .datepicker-switch:hover,
|
||||||
|
.datepicker .prev:hover,
|
||||||
|
.datepicker .next:hover,
|
||||||
|
.datepicker tfoot tr th:hover {
|
||||||
|
background: #eeeeee;
|
||||||
|
}
|
||||||
|
.datepicker .cw {
|
||||||
|
font-size: 10px;
|
||||||
|
width: 12px;
|
||||||
|
padding: 0 2px 0 5px;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
.input-group.date .input-group-addon {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.input-daterange {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.input-daterange input {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.input-daterange input:first-child {
|
||||||
|
border-radius: 3px 0 0 3px;
|
||||||
|
}
|
||||||
|
.input-daterange input:last-child {
|
||||||
|
border-radius: 0 3px 3px 0;
|
||||||
|
}
|
||||||
|
.input-daterange .input-group-addon {
|
||||||
|
width: auto;
|
||||||
|
min-width: 16px;
|
||||||
|
padding: 4px 5px;
|
||||||
|
line-height: 1.42857143;
|
||||||
|
text-shadow: 0 1px 0 #fff;
|
||||||
|
border-width: 1px 0;
|
||||||
|
margin-left: -5px;
|
||||||
|
margin-right: -5px;
|
||||||
|
}
|
||||||
|
/*# sourceMappingURL=bootstrap-datepicker3.css.map */
|
Loading…
Reference in New Issue
Block a user