adminpanel 3.2.1 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +2 -3
  4. data/Gemfile +1 -1
  5. data/adminpanel.gemspec +8 -7
  6. data/app/assets/javascripts/adminpanel/application.js +0 -2
  7. data/app/assets/javascripts/adminpanel/dropzone.js +81 -42
  8. data/app/assets/javascripts/adminpanel/filter-side-menu.coffee +1 -1
  9. data/app/assets/javascripts/adminpanel/gallery.js.coffee.erb +1 -1
  10. data/app/assets/javascripts/adminpanel/google_analytics_chart.js.coffee +1 -5
  11. data/app/assets/javascripts/adminpanel/jquery.dataTables.min.js +4 -4
  12. data/app/assets/javascripts/adminpanel/realm.js +2 -6
  13. data/app/assets/javascripts/adminpanel/sortable.js.coffee +1 -5
  14. data/app/assets/javascripts/adminpanel/spinner.js.coffee +3 -3
  15. data/app/assets/javascripts/adminpanel/tables.js +113 -108
  16. data/app/assets/stylesheets/adminpanel/alertify.css +4 -4
  17. data/app/assets/stylesheets/adminpanel/datepicker.min.css +1 -1
  18. data/app/assets/stylesheets/adminpanel/dropzone.css +2 -1
  19. data/app/assets/stylesheets/adminpanel/select2.css +8 -8
  20. data/app/assets/stylesheets/adminpanel/theme.css.scss.erb +1 -1
  21. data/app/assets/stylesheets/adminpanel/turbolinks_progress_load.css +4 -0
  22. data/app/controllers/concerns/adminpanel/gallery_actions.rb +3 -2
  23. data/app/helpers/adminpanel/adminpanel_form_builder.rb +9 -2
  24. data/app/helpers/adminpanel/shared_pages_helper.rb +3 -1
  25. data/app/models/adminpanel/section.rb +9 -16
  26. data/app/models/concerns/adminpanel/base.rb +1 -1
  27. data/app/models/concerns/adminpanel/sitemap.rb +2 -4
  28. data/app/views/adminpanel/form/_select.html.erb +2 -2
  29. data/config/routes.rb +8 -8
  30. data/lib/adminpanel/version.rb +1 -1
  31. data/lib/generators/adminpanel/gallery/templates/uploader.rb +1 -1
  32. data/lib/generators/adminpanel/initialize/templates/create_adminpanel_tables.rb +4 -3
  33. data/test/dummy/.gitignore +1 -2
  34. data/test/dummy/app/models/adminpanel/galleryfile.rb +10 -0
  35. data/test/dummy/config/environments/test.rb +3 -2
  36. data/test/dummy/db/schema.rb +0 -4
  37. data/test/dummy/test/fixtures/adminpanel/galleries.yml +3 -3
  38. data/test/dummy/test/fixtures/adminpanel/images.yml +8 -8
  39. data/test/features/shared/concerns/sortable_gallery_ui_test.rb +2 -1
  40. data/test/features/shared/resource/show_test.rb +1 -1
  41. data/test/features/shared/ui/dropzone_element_generation_test.rb +1 -1
  42. data/test/helpers/shared_pages_helper_test.rb +2 -1
  43. data/test/models/adminpanel/section_test.rb +0 -3
  44. data/test/test_helper.rb +2 -1
  45. metadata +39 -26
  46. data/app/assets/stylesheets/adminpanel/turbolinks_progress_load.css.scss +0 -5
@@ -1,130 +1,135 @@
1
1
  $.extend( $.fn.dataTableExt.oPagination, {
2
- "bootstrap": {
3
- "fnInit": function( oSettings, nPaging, fnDraw ) {
4
- var oLang = oSettings.oLanguage.oPaginate;
5
- var fnClickHandler = function ( e ) {
6
- e.preventDefault();
7
- if ( oSettings.oApi._fnPageChange(oSettings, e.data.action) ) {
8
- fnDraw( oSettings );
9
- }
10
- };
2
+ "bootstrap": {
3
+ "fnInit": function( oSettings, nPaging, fnDraw ) {
4
+ var oLang = oSettings.oLanguage.oPaginate;
5
+ var fnClickHandler = function ( e ) {
6
+ e.preventDefault();
7
+ if ( oSettings.oApi._fnPageChange(oSettings, e.data.action) ) {
8
+ fnDraw( oSettings );
9
+ }
10
+ };
11
11
 
12
- $(nPaging).addClass('pagination').append(
13
- '<ul>'+
14
- '<li class="prev disabled"><a href="#">&larr; '+oLang.sPrevious+'</a></li>'+
15
- '<li class="next disabled"><a href="#">'+oLang.sNext+' &rarr; </a></li>'+
16
- '</ul>'
17
- );
18
- var els = $('a', nPaging);
19
- $(els[0]).bind( 'click.DT', { action: "previous" }, fnClickHandler );
20
- $(els[1]).bind( 'click.DT', { action: "next" }, fnClickHandler );
21
- },
12
+ $(nPaging).addClass('pagination').append(
13
+ '<ul>'+
14
+ '<li class="prev disabled"><a href="#">&larr; '+oLang.sPrevious+'</a></li>'+
15
+ '<li class="next disabled"><a href="#">'+oLang.sNext+' &rarr; </a></li>'+
16
+ '</ul>'
17
+ );
18
+ var els = $('a', nPaging);
19
+ $(els[0]).bind( 'click.DT', { action: "previous" }, fnClickHandler );
20
+ $(els[1]).bind( 'click.DT', { action: "next" }, fnClickHandler );
21
+ },
22
22
 
23
- "fnUpdate": function ( oSettings, fnDraw ) {
24
- var iListLength = 5;
25
- var oPaging = oSettings.oInstance.fnPagingInfo();
26
- var an = oSettings.aanFeatures.p;
27
- var i, j, sClass, iStart, iEnd, iHalf=Math.floor(iListLength/2);
23
+ "fnUpdate": function ( oSettings, fnDraw ) {
24
+ var iListLength = 5;
25
+ var oPaging = oSettings.oInstance.fnPagingInfo();
26
+ var an = oSettings.aanFeatures.p;
27
+ var i, j, sClass, iStart, iEnd, iHalf=Math.floor(iListLength/2);
28
28
 
29
- if ( oPaging.iTotalPages < iListLength) {
30
- iStart = 1;
31
- iEnd = oPaging.iTotalPages;
32
- }
33
- else if ( oPaging.iPage <= iHalf ) {
34
- iStart = 1;
35
- iEnd = iListLength;
36
- } else if ( oPaging.iPage >= (oPaging.iTotalPages-iHalf) ) {
37
- iStart = oPaging.iTotalPages - iListLength + 1;
38
- iEnd = oPaging.iTotalPages;
39
- } else {
40
- iStart = oPaging.iPage - iHalf + 1;
41
- iEnd = iStart + iListLength - 1;
42
- }
29
+ if ( oPaging.iTotalPages < iListLength) {
30
+ iStart = 1;
31
+ iEnd = oPaging.iTotalPages;
32
+ }
33
+ else if ( oPaging.iPage <= iHalf ) {
34
+ iStart = 1;
35
+ iEnd = iListLength;
36
+ } else if ( oPaging.iPage >= (oPaging.iTotalPages-iHalf) ) {
37
+ iStart = oPaging.iTotalPages - iListLength + 1;
38
+ iEnd = oPaging.iTotalPages;
39
+ } else {
40
+ iStart = oPaging.iPage - iHalf + 1;
41
+ iEnd = iStart + iListLength - 1;
42
+ }
43
43
 
44
- for ( i=0, iLen=an.length ; i<iLen ; i++ ) {
45
- // Remove the middle elements
46
- $('li:gt(0)', an[i]).filter(':not(:last)').remove();
44
+ for ( i=0, iLen=an.length ; i<iLen ; i++ ) {
45
+ // Remove the middle elements
46
+ $('li:gt(0)', an[i]).filter(':not(:last)').remove();
47
47
 
48
- // Add the new list items and their event handlers
49
- for ( j=iStart ; j<=iEnd ; j++ ) {
50
- sClass = (j==oPaging.iPage+1) ? 'class="active"' : '';
51
- $('<li '+sClass+'><a href="#">'+j+'</a></li>')
52
- .insertBefore( $('li:last', an[i])[0] )
53
- .bind('click', function (e) {
54
- e.preventDefault();
55
- oSettings._iDisplayStart = (parseInt($('a', this).text(),10)-1) * oPaging.iLength;
56
- fnDraw( oSettings );
57
- } );
58
- }
48
+ // Add the new list items and their event handlers
49
+ for ( j=iStart ; j<=iEnd ; j++ ) {
50
+ sClass = (j==oPaging.iPage+1) ? 'class="active"' : '';
51
+ $('<li '+sClass+'><a href="#">'+j+'</a></li>')
52
+ .insertBefore( $('li:last', an[i])[0] )
53
+ .bind('click', function (e) {
54
+ e.preventDefault();
55
+ oSettings._iDisplayStart = (parseInt($('a', this).text(),10)-1) * oPaging.iLength;
56
+ fnDraw( oSettings );
57
+ } );
58
+ }
59
59
 
60
- // Add / remove disabled classes from the static elements
61
- if ( oPaging.iPage === 0 ) {
62
- $('li:first', an[i]).addClass('disabled');
63
- } else {
64
- $('li:first', an[i]).removeClass('disabled');
65
- }
60
+ // Add / remove disabled classes from the static elements
61
+ if ( oPaging.iPage === 0 ) {
62
+ $('li:first', an[i]).addClass('disabled');
63
+ } else {
64
+ $('li:first', an[i]).removeClass('disabled');
65
+ }
66
66
 
67
- if ( oPaging.iPage === oPaging.iTotalPages-1 || oPaging.iTotalPages === 0 ) {
68
- $('li:last', an[i]).addClass('disabled');
69
- } else {
70
- $('li:last', an[i]).removeClass('disabled');
71
- }
72
- }
73
- }
74
- }
75
- } );
67
+ if ( oPaging.iPage === oPaging.iTotalPages-1 || oPaging.iTotalPages === 0 ) {
68
+ $('li:last', an[i]).addClass('disabled');
69
+ } else {
70
+ $('li:last', an[i]).removeClass('disabled');
71
+ }
72
+ }
73
+ }
74
+ }
75
+ } );
76
76
  $.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings )
77
77
  {
78
- return {
79
- "iStart": oSettings._iDisplayStart,
80
- "iEnd": oSettings.fnDisplayEnd(),
81
- "iLength": oSettings._iDisplayLength,
82
- "iTotal": oSettings.fnRecordsTotal(),
83
- "iFilteredTotal": oSettings.fnRecordsDisplay(),
84
- "iPage": oSettings._iDisplayLength === -1 ?
85
- 0 : Math.ceil( oSettings._iDisplayStart / oSettings._iDisplayLength ),
86
- "iTotalPages": oSettings._iDisplayLength === -1 ?
87
- 0 : Math.ceil( oSettings.fnRecordsDisplay() / oSettings._iDisplayLength )
88
- };
78
+ return {
79
+ "iStart": oSettings._iDisplayStart,
80
+ "iEnd": oSettings.fnDisplayEnd(),
81
+ "iLength": oSettings._iDisplayLength,
82
+ "iTotal": oSettings.fnRecordsTotal(),
83
+ "iFilteredTotal": oSettings.fnRecordsDisplay(),
84
+ "iPage": oSettings._iDisplayLength === -1 ?
85
+ 0 : Math.ceil( oSettings._iDisplayStart / oSettings._iDisplayLength ),
86
+ "iTotalPages": oSettings._iDisplayLength === -1 ?
87
+ 0 : Math.ceil( oSettings.fnRecordsDisplay() / oSettings._iDisplayLength )
88
+ };
89
89
  };
90
90
 
91
91
  jQuery.fn.dataTableExt.aTypes.push(
92
- function ( sData ) {
93
- return 'html';
94
- }
92
+ function ( sData ) {
93
+ return 'html';
94
+ }
95
95
  );
96
96
 
97
97
  function SwitchCalendars(startCalendar, endCalendar, e) {
98
- var endCalendarDate = new Date(e.date),
99
- endCalendarInput = $('#end_date');
98
+ var endCalendarDate = new Date(e.date),
99
+ endCalendarInput = $('#end_date');
100
100
 
101
- startCalendar.datepicker('hide');
102
- endCalendarDate.setDate(endCalendarDate.getDate() + 1);
103
- endCalendar.datepicker('setStartDate', endCalendarDate);
104
- endCalendar.datepicker('update', endCalendarDate);
105
- endCalendar.focus();
106
- endCalendar.datepicker('show');
101
+ startCalendar.datepicker('hide');
102
+ endCalendarDate.setDate(endCalendarDate.getDate() + 1);
103
+ endCalendar.datepicker('setStartDate', endCalendarDate);
104
+ endCalendar.datepicker('update', endCalendarDate);
105
+ endCalendar.focus();
106
+ endCalendar.datepicker('show');
107
107
  }
108
108
 
109
109
  var ready = function() {
110
- $('#information-table').dataTable({
111
- "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
112
- "sPaginationType": "bootstrap",
113
- "oLanguage": {
114
- "sLengthMenu": "Registros: _MENU_ ",
115
- "sZeroRecords": "No se encontró ningún registro que coincida con su búsqueda",
116
- "sInfo": "Mostrando registros del _START_ al _END_ (_TOTAL_ registros en total)",
117
- "sInfoEmpty": "No hay entradas para mostrar",
118
- "sInfoFiltered": "(_MAX_ registros fueron filtrados)",
119
- "sSearch": "Buscar:",
120
- "oPaginate" : {
121
- "sPrevious": "Anterior",
122
- "sNext": "Siguiente"
123
- }
124
- },
125
- "bDestroy": true
126
- });
110
+ $('#information-table').dataTable({
111
+ "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
112
+ "sPaginationType": "bootstrap",
113
+ "oLanguage": {
114
+ "sLengthMenu": "Registros: _MENU_ ",
115
+ "sZeroRecords": "No se encontró ningún registro que coincida con su búsqueda",
116
+ "sInfo": "Mostrando registros del _START_ al _END_ (_TOTAL_ registros en total)",
117
+ "sInfoEmpty": "No hay entradas para mostrar",
118
+ "sInfoFiltered": "(_MAX_ registros fueron filtrados)",
119
+ "sSearch": "Buscar:",
120
+ "oPaginate" : {
121
+ "sPrevious": "Anterior",
122
+ "sNext": "Siguiente"
123
+ }
124
+ },
125
+ "bRetrieve": true
126
+ });
127
127
  }
128
128
 
129
- $(document).ready(ready);
130
- $(document).on('page:load', ready);
129
+ $(document).on('turbolinks:render', ready);
130
+ $(document).on('turbolinks:before-cache', function(){
131
+ if ($('#information-table').length) {
132
+ var dt = $('#information-table').dataTable({ "bRetrieve": true });
133
+ dt.fnDestroy();
134
+ }
135
+ });
@@ -186,11 +186,11 @@
186
186
  background-image: -moz-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
187
187
  background-image: -ms-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
188
188
  background-image: -o-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
189
- background-image: linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
189
+ background-image: linear-gradient(to bottom, rgba(255,255,255,.3), rgba(255,255,255,0));
190
190
  }
191
191
  .alertify-button:focus {
192
192
  outline: none;
193
- box-shadow: 0 0 5px #2B72D5;
193
+ box-shadow: 0 0 5px #2B72D5;
194
194
  }
195
195
  .alertify-button:active {
196
196
  position: relative;
@@ -205,7 +205,7 @@
205
205
  background-image: -moz-linear-gradient(top, #FFF, #E6E6E6);
206
206
  background-image: -ms-linear-gradient(top, #FFF, #E6E6E6);
207
207
  background-image: -o-linear-gradient(top, #FFF, #E6E6E6);
208
- background-image: linear-gradient(top, #FFF, #E6E6E6);
208
+ background-image: linear-gradient(to bottom, #FFF, #E6E6E6);
209
209
  }
210
210
  .alertify-button-cancel:hover {
211
211
  background: #E6E6E6;
@@ -239,4 +239,4 @@
239
239
  color: #468847;
240
240
  background: #DFF0D8;
241
241
  border: 1px solid #D6E9C6;
242
- }
242
+ }
@@ -6,4 +6,4 @@
6
6
  * Licensed under the Apache License v2.0
7
7
  * http://www.apache.org/licenses/LICENSE-2.0
8
8
  *
9
- */.datepicker{padding:4px;-webkit-border-radius:4px;-moz-border-radius:4px;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}.datepicker-dropdown:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,0.2);position:absolute;top:-7px;left:6px}.datepicker-dropdown:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;top:-6px;left:7px}.datepicker>div{display:none}.datepicker.days div.datepicker-days{display:block}.datepicker.months div.datepicker-months{display:block}.datepicker.years div.datepicker-years{display:block}.datepicker table{margin:0}.datepicker td,.datepicker th{text-align:center;width:20px;height:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:none}.table-striped .datepicker table tr td,.table-striped .datepicker table tr th{background-color:transparent}.datepicker table tr td.day:hover{background:#eeeeee;cursor:pointer}.datepicker table tr td.old,.datepicker table tr td.new{color:#999999}.datepicker table tr td.disabled,.datepicker table tr td.disabled:hover{background:none;color:#999999;cursor:default}.datepicker table tr td.today,.datepicker table tr td.today:hover,.datepicker table tr td.today.disabled,.datepicker table tr td.today.disabled:hover{background-color:#fde19a;background-image:-moz-linear-gradient(top, #fdd49a, #fdf59a);background-image:-ms-linear-gradient(top, #fdd49a, #fdf59a);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));background-image:-webkit-linear-gradient(top, #fdd49a, #fdf59a);background-image:-o-linear-gradient(top, #fdd49a, #fdf59a);background-image:linear-gradient(top, #fdd49a,#fdf59a);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);border-color:#fdf59a #fdf59a #fbed50;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);color:#000 !important}.datepicker table tr td.today:hover,.datepicker table tr td.today:hover:hover,.datepicker table tr td.today.disabled:hover,.datepicker table tr td.today.disabled:hover:hover,.datepicker table tr td.today:active,.datepicker table tr td.today:hover:active,.datepicker table tr td.today.disabled:active,.datepicker table tr td.today.disabled:hover:active,.datepicker table tr td.today.active,.datepicker table tr td.today:hover.active,.datepicker table tr td.today.disabled.active,.datepicker table tr td.today.disabled:hover.active,.datepicker table tr td.today.disabled,.datepicker table tr td.today:hover.disabled,.datepicker table tr td.today.disabled.disabled,.datepicker table tr td.today.disabled:hover.disabled,.datepicker table tr td.today[disabled],.datepicker table tr td.today:hover[disabled],.datepicker table tr td.today.disabled[disabled],.datepicker table tr td.today.disabled:hover[disabled]{background-color:#fdf59a}.datepicker table tr td.today:active,.datepicker table tr td.today:hover:active,.datepicker table tr td.today.disabled:active,.datepicker table tr td.today.disabled:hover:active,.datepicker table tr td.today.active,.datepicker table tr td.today:hover.active,.datepicker table tr td.today.disabled.active,.datepicker table tr td.today.disabled:hover.active{background-color:#fbf069 \9}.datepicker table tr td.range,.datepicker table tr td.range:hover,.datepicker table tr td.range.disabled,.datepicker table tr td.range.disabled:hover{background:#eeeeee;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.datepicker table tr td.range.today,.datepicker table tr td.range.today:hover,.datepicker table tr td.range.today.disabled,.datepicker table tr td.range.today.disabled:hover{background-color:#f3d17a;background-image:-moz-linear-gradient(top, #f3c17a, #f3e97a);background-image:-ms-linear-gradient(top, #f3c17a, #f3e97a);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#f3c17a), to(#f3e97a));background-image:-webkit-linear-gradient(top, #f3c17a, #f3e97a);background-image:-o-linear-gradient(top, #f3c17a, #f3e97a);background-image:linear-gradient(top, #f3c17a,#f3e97a);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3c17a', endColorstr='#f3e97a', GradientType=0);border-color:#f3e97a #f3e97a #edde34;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.datepicker table tr td.range.today:hover,.datepicker table tr td.range.today:hover:hover,.datepicker table tr td.range.today.disabled:hover,.datepicker table tr td.range.today.disabled:hover:hover,.datepicker table tr td.range.today:active,.datepicker table tr td.range.today:hover:active,.datepicker table tr td.range.today.disabled:active,.datepicker table tr td.range.today.disabled:hover:active,.datepicker table tr td.range.today.active,.datepicker table tr td.range.today:hover.active,.datepicker table tr td.range.today.disabled.active,.datepicker table tr td.range.today.disabled:hover.active,.datepicker table tr td.range.today.disabled,.datepicker table tr td.range.today:hover.disabled,.datepicker table tr td.range.today.disabled.disabled,.datepicker table tr td.range.today.disabled:hover.disabled,.datepicker table tr td.range.today[disabled],.datepicker table tr td.range.today:hover[disabled],.datepicker table tr td.range.today.disabled[disabled],.datepicker table tr td.range.today.disabled:hover[disabled]{background-color:#f3e97a}.datepicker table tr td.range.today:active,.datepicker table tr td.range.today:hover:active,.datepicker table tr td.range.today.disabled:active,.datepicker table tr td.range.today.disabled:hover:active,.datepicker table tr td.range.today.active,.datepicker table tr td.range.today:hover.active,.datepicker table tr td.range.today.disabled.active,.datepicker table tr td.range.today.disabled:hover.active{background-color:#efe24b \9}.datepicker table tr td.selected,.datepicker table tr td.selected:hover,.datepicker table tr td.selected.disabled,.datepicker table tr td.selected.disabled:hover{background-color:#9e9e9e;background-image:-moz-linear-gradient(top, #b3b3b3, gray);background-image:-ms-linear-gradient(top, #b3b3b3, gray);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#b3b3b3), to(gray));background-image:-webkit-linear-gradient(top, #b3b3b3, gray);background-image:-o-linear-gradient(top, #b3b3b3, gray);background-image:linear-gradient(top, #b3b3b3,#808080);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3b3b3', endColorstr='#808080', GradientType=0);border-color:gray gray #595959;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.datepicker table tr td.selected:hover,.datepicker table tr td.selected:hover:hover,.datepicker table tr td.selected.disabled:hover,.datepicker table tr td.selected.disabled:hover:hover,.datepicker table tr td.selected:active,.datepicker table tr td.selected:hover:active,.datepicker table tr td.selected.disabled:active,.datepicker table tr td.selected.disabled:hover:active,.datepicker table tr td.selected.active,.datepicker table tr td.selected:hover.active,.datepicker table tr td.selected.disabled.active,.datepicker table tr td.selected.disabled:hover.active,.datepicker table tr td.selected.disabled,.datepicker table tr td.selected:hover.disabled,.datepicker table tr td.selected.disabled.disabled,.datepicker table tr td.selected.disabled:hover.disabled,.datepicker table tr td.selected[disabled],.datepicker table tr td.selected:hover[disabled],.datepicker table tr td.selected.disabled[disabled],.datepicker table tr td.selected.disabled:hover[disabled]{background-color:#808080}.datepicker table tr td.selected:active,.datepicker table tr td.selected:hover:active,.datepicker table tr td.selected.disabled:active,.datepicker table tr td.selected.disabled:hover:active,.datepicker table tr td.selected.active,.datepicker table tr td.selected:hover.active,.datepicker table tr td.selected.disabled.active,.datepicker table tr td.selected.disabled:hover.active{background-color:#666 \9}.datepicker table tr td.active,.datepicker table tr td.active:hover,.datepicker table tr td.active.disabled,.datepicker table tr td.active.disabled:hover{background-color:#006dcc;background-image:-moz-linear-gradient(top, #08c, #04c);background-image:-ms-linear-gradient(top, #08c, #04c);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#08c), to(#04c));background-image:-webkit-linear-gradient(top, #08c, #04c);background-image:-o-linear-gradient(top, #08c, #04c);background-image:linear-gradient(top, #0088cc,#0044cc);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.datepicker table tr td.active:hover,.datepicker table tr td.active:hover:hover,.datepicker table tr td.active.disabled:hover,.datepicker table tr td.active.disabled:hover:hover,.datepicker table tr td.active:active,.datepicker table tr td.active:hover:active,.datepicker table tr td.active.disabled:active,.datepicker table tr td.active.disabled:hover:active,.datepicker table tr td.active.active,.datepicker table tr td.active:hover.active,.datepicker table tr td.active.disabled.active,.datepicker table tr td.active.disabled:hover.active,.datepicker table tr td.active.disabled,.datepicker table tr td.active:hover.disabled,.datepicker table tr td.active.disabled.disabled,.datepicker table tr td.active.disabled:hover.disabled,.datepicker table tr td.active[disabled],.datepicker table tr td.active:hover[disabled],.datepicker table tr td.active.disabled[disabled],.datepicker table tr td.active.disabled:hover[disabled]{background-color:#0044cc}.datepicker table tr td.active:active,.datepicker table tr td.active:hover:active,.datepicker table tr td.active.disabled:active,.datepicker table tr td.active.disabled:hover:active,.datepicker table tr td.active.active,.datepicker table tr td.active:hover.active,.datepicker table tr td.active.disabled.active,.datepicker table tr td.active.disabled:hover.active{background-color:#039 \9}.datepicker table tr td span{display:block;width:23%;height:54px;line-height:54px;float:left;margin:1%;cursor:pointer;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.datepicker table tr td span:hover{background:#eeeeee}.datepicker table tr td span.disabled,.datepicker table tr td span.disabled:hover{background:none;color:#999999;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{background-color:#006dcc;background-image:-moz-linear-gradient(top, #08c, #04c);background-image:-ms-linear-gradient(top, #08c, #04c);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#08c), to(#04c));background-image:-webkit-linear-gradient(top, #08c, #04c);background-image:-o-linear-gradient(top, #08c, #04c);background-image:linear-gradient(top, #0088cc,#0044cc);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.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,.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,.datepicker table tr td span.active.disabled,.datepicker table tr td span.active:hover.disabled,.datepicker table tr td span.active.disabled.disabled,.datepicker table tr td span.active.disabled:hover.disabled,.datepicker table tr td span.active[disabled],.datepicker table tr td span.active:hover[disabled],.datepicker table tr td span.active.disabled[disabled],.datepicker table tr td span.active.disabled:hover[disabled]{background-color:#0044cc}.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{background-color:#039 \9}.datepicker table tr td span.old{color:#999999}.datepicker th.datepicker-switch{width:145px}.datepicker thead tr:first-child th,.datepicker tfoot tr:first-child th{cursor:pointer}.datepicker thead tr:first-child th:hover,.datepicker tfoot tr:first-child th:hover{background:#eeeeee}.datepicker .cw{font-size:10px;width:12px;padding:0 2px 0 5px;vertical-align:middle}.datepicker thead tr:first-child th.cw{cursor:default;background-color:transparent}.input-append.date .add-on i,.input-prepend.date .add-on i{display:block;cursor:pointer;width:16px;height:16px}.input-daterange input{text-align:center}.input-daterange input:first-child{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.input-daterange input:last-child{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.input-daterange .add-on{display:inline-block;width:auto;min-width:16px;height:18px;padding:4px 5px;font-weight:normal;line-height:18px;text-align:center;text-shadow:0 1px 0 #fff;vertical-align:middle;background-color:#eeeeee;border:1px solid #ccc;margin-left:-5px;margin-right:-5px}.datepicker.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;float:left;display:none;min-width:160px;list-style:none;background-color:#ffffff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;*border-right-width:2px;*border-bottom-width:2px;color:#333333;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;line-height:18px}.datepicker.dropdown-menu th,.datepicker.dropdown-menu td{padding:4px 5px}.datepicker .prev,.datepicker .next{font-style:normal;}
9
+ */.datepicker{padding:4px;-webkit-border-radius:4px;-moz-border-radius:4px;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}.datepicker-dropdown:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,0.2);position:absolute;top:-7px;left:6px}.datepicker-dropdown:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;top:-6px;left:7px}.datepicker>div{display:none}.datepicker.days div.datepicker-days{display:block}.datepicker.months div.datepicker-months{display:block}.datepicker.years div.datepicker-years{display:block}.datepicker table{margin:0}.datepicker td,.datepicker th{text-align:center;width:20px;height:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:none}.table-striped .datepicker table tr td,.table-striped .datepicker table tr th{background-color:transparent}.datepicker table tr td.day:hover{background:#eeeeee;cursor:pointer}.datepicker table tr td.old,.datepicker table tr td.new{color:#999999}.datepicker table tr td.disabled,.datepicker table tr td.disabled:hover{background:none;color:#999999;cursor:default}.datepicker table tr td.today,.datepicker table tr td.today:hover,.datepicker table tr td.today.disabled,.datepicker table tr td.today.disabled:hover{background-color:#fde19a;background-image:-moz-linear-gradient(top, #fdd49a, #fdf59a);background-image:-ms-linear-gradient(top, #fdd49a, #fdf59a);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));background-image:-webkit-linear-gradient(top, #fdd49a, #fdf59a);background-image:-o-linear-gradient(top, #fdd49a, #fdf59a);background-image:linear-gradient(to bottom, #fdd49a,#fdf59a);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);border-color:#fdf59a #fdf59a #fbed50;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);color:#000 !important}.datepicker table tr td.today:hover,.datepicker table tr td.today:hover:hover,.datepicker table tr td.today.disabled:hover,.datepicker table tr td.today.disabled:hover:hover,.datepicker table tr td.today:active,.datepicker table tr td.today:hover:active,.datepicker table tr td.today.disabled:active,.datepicker table tr td.today.disabled:hover:active,.datepicker table tr td.today.active,.datepicker table tr td.today:hover.active,.datepicker table tr td.today.disabled.active,.datepicker table tr td.today.disabled:hover.active,.datepicker table tr td.today.disabled,.datepicker table tr td.today:hover.disabled,.datepicker table tr td.today.disabled.disabled,.datepicker table tr td.today.disabled:hover.disabled,.datepicker table tr td.today[disabled],.datepicker table tr td.today:hover[disabled],.datepicker table tr td.today.disabled[disabled],.datepicker table tr td.today.disabled:hover[disabled]{background-color:#fdf59a}.datepicker table tr td.today:active,.datepicker table tr td.today:hover:active,.datepicker table tr td.today.disabled:active,.datepicker table tr td.today.disabled:hover:active,.datepicker table tr td.today.active,.datepicker table tr td.today:hover.active,.datepicker table tr td.today.disabled.active,.datepicker table tr td.today.disabled:hover.active{background-color:#fbf069 \9}.datepicker table tr td.range,.datepicker table tr td.range:hover,.datepicker table tr td.range.disabled,.datepicker table tr td.range.disabled:hover{background:#eeeeee;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.datepicker table tr td.range.today,.datepicker table tr td.range.today:hover,.datepicker table tr td.range.today.disabled,.datepicker table tr td.range.today.disabled:hover{background-color:#f3d17a;background-image:-moz-linear-gradient(top, #f3c17a, #f3e97a);background-image:-ms-linear-gradient(top, #f3c17a, #f3e97a);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#f3c17a), to(#f3e97a));background-image:-webkit-linear-gradient(top, #f3c17a, #f3e97a);background-image:-o-linear-gradient(top, #f3c17a, #f3e97a);background-image:linear-gradient(to bottom, #f3c17a,#f3e97a);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3c17a', endColorstr='#f3e97a', GradientType=0);border-color:#f3e97a #f3e97a #edde34;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.datepicker table tr td.range.today:hover,.datepicker table tr td.range.today:hover:hover,.datepicker table tr td.range.today.disabled:hover,.datepicker table tr td.range.today.disabled:hover:hover,.datepicker table tr td.range.today:active,.datepicker table tr td.range.today:hover:active,.datepicker table tr td.range.today.disabled:active,.datepicker table tr td.range.today.disabled:hover:active,.datepicker table tr td.range.today.active,.datepicker table tr td.range.today:hover.active,.datepicker table tr td.range.today.disabled.active,.datepicker table tr td.range.today.disabled:hover.active,.datepicker table tr td.range.today.disabled,.datepicker table tr td.range.today:hover.disabled,.datepicker table tr td.range.today.disabled.disabled,.datepicker table tr td.range.today.disabled:hover.disabled,.datepicker table tr td.range.today[disabled],.datepicker table tr td.range.today:hover[disabled],.datepicker table tr td.range.today.disabled[disabled],.datepicker table tr td.range.today.disabled:hover[disabled]{background-color:#f3e97a}.datepicker table tr td.range.today:active,.datepicker table tr td.range.today:hover:active,.datepicker table tr td.range.today.disabled:active,.datepicker table tr td.range.today.disabled:hover:active,.datepicker table tr td.range.today.active,.datepicker table tr td.range.today:hover.active,.datepicker table tr td.range.today.disabled.active,.datepicker table tr td.range.today.disabled:hover.active{background-color:#efe24b \9}.datepicker table tr td.selected,.datepicker table tr td.selected:hover,.datepicker table tr td.selected.disabled,.datepicker table tr td.selected.disabled:hover{background-color:#9e9e9e;background-image:-moz-linear-gradient(top, #b3b3b3, gray);background-image:-ms-linear-gradient(top, #b3b3b3, gray);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#b3b3b3), to(gray));background-image:-webkit-linear-gradient(top, #b3b3b3, gray);background-image:-o-linear-gradient(top, #b3b3b3, gray);background-image:linear-gradient(to bottom, #b3b3b3,#808080);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3b3b3', endColorstr='#808080', GradientType=0);border-color:gray gray #595959;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.datepicker table tr td.selected:hover,.datepicker table tr td.selected:hover:hover,.datepicker table tr td.selected.disabled:hover,.datepicker table tr td.selected.disabled:hover:hover,.datepicker table tr td.selected:active,.datepicker table tr td.selected:hover:active,.datepicker table tr td.selected.disabled:active,.datepicker table tr td.selected.disabled:hover:active,.datepicker table tr td.selected.active,.datepicker table tr td.selected:hover.active,.datepicker table tr td.selected.disabled.active,.datepicker table tr td.selected.disabled:hover.active,.datepicker table tr td.selected.disabled,.datepicker table tr td.selected:hover.disabled,.datepicker table tr td.selected.disabled.disabled,.datepicker table tr td.selected.disabled:hover.disabled,.datepicker table tr td.selected[disabled],.datepicker table tr td.selected:hover[disabled],.datepicker table tr td.selected.disabled[disabled],.datepicker table tr td.selected.disabled:hover[disabled]{background-color:#808080}.datepicker table tr td.selected:active,.datepicker table tr td.selected:hover:active,.datepicker table tr td.selected.disabled:active,.datepicker table tr td.selected.disabled:hover:active,.datepicker table tr td.selected.active,.datepicker table tr td.selected:hover.active,.datepicker table tr td.selected.disabled.active,.datepicker table tr td.selected.disabled:hover.active{background-color:#666 \9}.datepicker table tr td.active,.datepicker table tr td.active:hover,.datepicker table tr td.active.disabled,.datepicker table tr td.active.disabled:hover{background-color:#006dcc;background-image:-moz-linear-gradient(top, #08c, #04c);background-image:-ms-linear-gradient(top, #08c, #04c);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#08c), to(#04c));background-image:-webkit-linear-gradient(top, #08c, #04c);background-image:-o-linear-gradient(top, #08c, #04c);background-image:linear-gradient(to bottom, #0088cc,#0044cc);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.datepicker table tr td.active:hover,.datepicker table tr td.active:hover:hover,.datepicker table tr td.active.disabled:hover,.datepicker table tr td.active.disabled:hover:hover,.datepicker table tr td.active:active,.datepicker table tr td.active:hover:active,.datepicker table tr td.active.disabled:active,.datepicker table tr td.active.disabled:hover:active,.datepicker table tr td.active.active,.datepicker table tr td.active:hover.active,.datepicker table tr td.active.disabled.active,.datepicker table tr td.active.disabled:hover.active,.datepicker table tr td.active.disabled,.datepicker table tr td.active:hover.disabled,.datepicker table tr td.active.disabled.disabled,.datepicker table tr td.active.disabled:hover.disabled,.datepicker table tr td.active[disabled],.datepicker table tr td.active:hover[disabled],.datepicker table tr td.active.disabled[disabled],.datepicker table tr td.active.disabled:hover[disabled]{background-color:#0044cc}.datepicker table tr td.active:active,.datepicker table tr td.active:hover:active,.datepicker table tr td.active.disabled:active,.datepicker table tr td.active.disabled:hover:active,.datepicker table tr td.active.active,.datepicker table tr td.active:hover.active,.datepicker table tr td.active.disabled.active,.datepicker table tr td.active.disabled:hover.active{background-color:#039 \9}.datepicker table tr td span{display:block;width:23%;height:54px;line-height:54px;float:left;margin:1%;cursor:pointer;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.datepicker table tr td span:hover{background:#eeeeee}.datepicker table tr td span.disabled,.datepicker table tr td span.disabled:hover{background:none;color:#999999;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{background-color:#006dcc;background-image:-moz-linear-gradient(top, #08c, #04c);background-image:-ms-linear-gradient(top, #08c, #04c);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#08c), to(#04c));background-image:-webkit-linear-gradient(top, #08c, #04c);background-image:-o-linear-gradient(top, #08c, #04c);background-image:linear-gradient(to bottom, #0088cc,#0044cc);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.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,.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,.datepicker table tr td span.active.disabled,.datepicker table tr td span.active:hover.disabled,.datepicker table tr td span.active.disabled.disabled,.datepicker table tr td span.active.disabled:hover.disabled,.datepicker table tr td span.active[disabled],.datepicker table tr td span.active:hover[disabled],.datepicker table tr td span.active.disabled[disabled],.datepicker table tr td span.active.disabled:hover[disabled]{background-color:#0044cc}.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{background-color:#039 \9}.datepicker table tr td span.old{color:#999999}.datepicker th.datepicker-switch{width:145px}.datepicker thead tr:first-child th,.datepicker tfoot tr:first-child th{cursor:pointer}.datepicker thead tr:first-child th:hover,.datepicker tfoot tr:first-child th:hover{background:#eeeeee}.datepicker .cw{font-size:10px;width:12px;padding:0 2px 0 5px;vertical-align:middle}.datepicker thead tr:first-child th.cw{cursor:default;background-color:transparent}.input-append.date .add-on i,.input-prepend.date .add-on i{display:block;cursor:pointer;width:16px;height:16px}.input-daterange input{text-align:center}.input-daterange input:first-child{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.input-daterange input:last-child{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.input-daterange .add-on{display:inline-block;width:auto;min-width:16px;height:18px;padding:4px 5px;font-weight:normal;line-height:18px;text-align:center;text-shadow:0 1px 0 #fff;vertical-align:middle;background-color:#eeeeee;border:1px solid #ccc;margin-left:-5px;margin-right:-5px}.datepicker.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;float:left;display:none;min-width:160px;list-style:none;background-color:#ffffff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;*border-right-width:2px;*border-bottom-width:2px;color:#333333;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;line-height:18px}.datepicker.dropdown-menu th,.datepicker.dropdown-menu td{padding:4px 5px}.datepicker .prev,.datepicker .next{font-style:normal;}
@@ -283,7 +283,8 @@
283
283
  .zone .dz-preview .dz-image {
284
284
  border-radius: 20px;
285
285
  overflow: hidden;
286
- width: 120px;
286
+ min-width: 120px;
287
+ min-height: 120px;
287
288
  position: relative;
288
289
  display: block;
289
290
  z-index: 10;
@@ -35,7 +35,7 @@ Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012
35
35
  background-image: -o-linear-gradient(bottom, #eeeeee 0%, #ffffff 50%);
36
36
  background-image: -ms-linear-gradient(top, #eeeeee 0%, #ffffff 50%);
37
37
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#ffffff', GradientType = 0);
38
- background-image: linear-gradient(top, #eeeeee 0%, #ffffff 50%);
38
+ background-image: linear-gradient(to bottom, #eeeeee 0%, #ffffff 50%);
39
39
  -webkit-border-radius: 4px;
40
40
  -moz-border-radius: 4px;
41
41
  border-radius: 4px;
@@ -66,7 +66,7 @@ Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012
66
66
  background-image: -o-linear-gradient(bottom, #eeeeee 0%, white 90%);
67
67
  background-image: -ms-linear-gradient(top, #eeeeee 0%,#ffffff 90%);
68
68
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=0 );
69
- background-image: linear-gradient(top, #eeeeee 0%,#ffffff 90%);
69
+ background-image: linear-gradient(to bottom, #eeeeee 0%,#ffffff 90%);
70
70
  }
71
71
 
72
72
  .select2-container .select2-choice span {
@@ -146,7 +146,7 @@ Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012
146
146
  background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%);
147
147
  background-image: -ms-linear-gradient(top, #cccccc 0%, #eeeeee 60%);
148
148
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#cccccc', endColorstr = '#eeeeee', GradientType = 0);
149
- background-image: linear-gradient(top, #cccccc 0%, #eeeeee 60%);
149
+ background-image: linear-gradient(to bottom, #cccccc 0%, #eeeeee 60%);
150
150
  border-left: 1px solid #aaa;
151
151
  position: absolute;
152
152
  right: 0;
@@ -187,7 +187,7 @@ Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012
187
187
  background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
188
188
  background: url('select2.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
189
189
  background: url('select2.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
190
- background: url('select2.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
190
+ background: url('select2.png') no-repeat 100% -22px, linear-gradient(to bottom, #ffffff 85%, #eeeeee 99%);
191
191
  padding: 4px 20px 4px 5px;
192
192
  outline: 0;
193
193
  border: 1px solid #aaa;
@@ -217,7 +217,7 @@ Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012
217
217
  background: url('spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
218
218
  background: url('spinner.gif') no-repeat 100%, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
219
219
  background: url('spinner.gif') no-repeat 100%, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
220
- background: url('spinner.gif') no-repeat 100%, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
220
+ background: url('spinner.gif') no-repeat 100%, linear-gradient(to bottom, #ffffff 85%, #eeeeee 99%);
221
221
  }
222
222
 
223
223
 
@@ -245,7 +245,7 @@ Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012
245
245
  background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
246
246
  background-image: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 50%);
247
247
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 );
248
- background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%);
248
+ background-image: linear-gradient(to bottom, #ffffff 0%,#eeeeee 50%);
249
249
  -webkit-border-bottom-left-radius : 0;
250
250
  -webkit-border-bottom-right-radius: 0;
251
251
  -moz-border-radius-bottomleft : 0;
@@ -369,7 +369,7 @@ disabled look for already selected choices in the results dropdown
369
369
  background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
370
370
  background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
371
371
  background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
372
- background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
372
+ background-image: linear-gradient(to bottom, #eeeeee 1%, #ffffff 15%);
373
373
  border: 1px solid #aaa;
374
374
  margin: 0;
375
375
  padding: 0;
@@ -440,7 +440,7 @@ disabled look for already selected choices in the results dropdown
440
440
  background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
441
441
  background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
442
442
  background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
443
- background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
443
+ background-image: linear-gradient(to bottom, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
444
444
  -webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
445
445
  -moz-box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
446
446
  box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
@@ -276,7 +276,7 @@ select, textarea, input[type="text"], input[type="password"], input[type="dateti
276
276
  display: none;
277
277
  }
278
278
  .top-menu li a[data-notification]:after {
279
- background-image: linear-gradient(bottom, rgb(199,24,33) 0%, rgb(245,71,71) 100%);
279
+ background-image: linear-gradient(to top, rgb(199,24,33) 0%, rgb(245,71,71) 100%);
280
280
  background-image: -o-linear-gradient(bottom, rgb(199,24,33) 0%, rgb(245,71,71) 100%);
281
281
  background-image: -moz-linear-gradient(bottom, rgb(199,24,33) 0%, rgb(245,71,71) 100%);
282
282
  background-image: -webkit-linear-gradient(bottom, rgb(199,24,33) 0%, rgb(245,71,71) 100%);
@@ -0,0 +1,4 @@
1
+ .turbolinks-progress-bar {
2
+ height: 5px;
3
+ background-color: #6DD0F7;
4
+ }
@@ -3,7 +3,7 @@ module Adminpanel
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  def add_to_gallery
6
- image_class = params[:model].constantize
6
+ image_class = params[:model].camelize.constantize
7
7
  image = image_class.new(file: params[:file], model_type: params[:parent_object_class])
8
8
  image.model_id = params[:resource_id] if params[:resource_id]
9
9
 
@@ -13,7 +13,8 @@ module Adminpanel
13
13
  id: image.id,
14
14
  image_url: image.file_url(:thumb)
15
15
  }
16
-
16
+ p 'jaja'
17
+ p response
17
18
  respond_to do |f|
18
19
  f.json{ render status: :ok, json: response.to_json }
19
20
  end
@@ -8,6 +8,7 @@ module Adminpanel
8
8
  alias_method :number_field_original, :number_field
9
9
  alias_method :email_field_original, :email_field
10
10
  alias_method :file_field_original, :file_field
11
+ alias_method :time_select_original, :time_select
11
12
 
12
13
  def body(&block)
13
14
  @template.content_tag :div, class: 'widget-body' do
@@ -55,9 +56,10 @@ module Adminpanel
55
56
 
56
57
  options = args.extract_options!
57
58
 
59
+ options[:trix_id] = "trix-#{method}-#{self.object.object_id}"
58
60
  hidden_field(
59
61
  method,
60
- id: "#{self.object.class.to_s.demodulize}-trix-#{method}"
62
+ id: options[:trix_id]
61
63
  ) + base_layout(
62
64
  method,
63
65
  options,
@@ -152,6 +154,10 @@ module Adminpanel
152
154
  base_layout( method, *args, 'datepickerize_base' )
153
155
  end
154
156
 
157
+ def hours_select(method, *args)
158
+ base_layout( method, *args, 'time_select_original' )
159
+ end
160
+
155
161
  # def prepend_field(name, *args)
156
162
  #
157
163
  # options = args.extract_options!
@@ -207,9 +213,10 @@ module Adminpanel
207
213
  # end
208
214
 
209
215
  protected
216
+
210
217
  def trix_field(method, *args)
211
218
  options = args.extract_options!
212
- options.reverse_merge! input: "#{self.object.class.to_s.demodulize}-trix-#{method}", id: "#{method}-trix-editor"
219
+ options.reverse_merge! input: options[:trix_id], id: "#{method}-trix-editor"
213
220
  options[:class] << ' trix-content'
214
221
  options[:data] ||= {}
215
222
  editor_images = []
@@ -65,7 +65,7 @@ module Adminpanel
65
65
  li_tags.html_safe
66
66
  end
67
67
  when 'file_field'
68
- object[attribute]
68
+ link_to(object[attribute], object.try(:send, "#{attribute}_url")) unless object[attribute].nil?
69
69
  when 'image_field'
70
70
  content_tag :ul do
71
71
  image_tag(object.send("#{attribute}_url", :thumb))
@@ -80,6 +80,8 @@ module Adminpanel
80
80
  I18n.t("#{object.class.name.demodulize.downcase}.#{object.send(attribute)}")
81
81
  when 'adminpanel_file_field'
82
82
  object.send(attribute).count
83
+ when 'wysiwyg_field'
84
+ strip_tags(object.send(attribute).to_s).truncate(120)
83
85
  else
84
86
  object.send(attribute)
85
87
  end