wice_grid 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,3 +1,11 @@
1
+ 4.0.1
2
+
3
+ Support for Bootstrap 3
4
+
5
+ 4.0.0
6
+
7
+ Support for Rails 4
8
+
1
9
  3.2.2
2
10
 
3
11
  improvement of the javascript calendar control: if the FROM field is set to a value after TO, TO is set to the value of FROM.
@@ -1,6 +1,6 @@
1
1
  <%= paginator.render do %>
2
2
  <div class="pagination">
3
- <ul>
3
+ <ul class="pagination">
4
4
  <% unless current_page.first? %>
5
5
  <%= prev_page_tag %>
6
6
  <% end %>
@@ -5,6 +5,14 @@
5
5
 
6
6
  .wg-detached-filter, .wice-grid{
7
7
 
8
+ .text-filter-container {
9
+ input{
10
+ width:auto;
11
+ margin-right: 10px;
12
+ display: inline;
13
+ }
14
+ }
15
+
8
16
  a.date-label {text-decoration: none;}
9
17
  a.date-label:hover {text-decoration: line-through;}
10
18
 
@@ -19,16 +27,13 @@
19
27
  }
20
28
 
21
29
  .custom-dropdown-container {
22
- position: relative;
23
- padding-right: 18px;
24
-
25
30
 
26
- .collapse-multi-select-icon, .expand-multi-select-icon{
27
- width: 12px;
28
- height: 12px;
29
- position:absolute;
30
- top:0;
31
- right:0;
31
+ .expand-multi-select-icon, .collapse-multi-select-icon{
32
+ width: 10px;
33
+ height: 10px;
34
+ display: inline-block;
35
+ margin-left: 5px;
36
+ vertical-align: top;
32
37
  }
33
38
 
34
39
  .collapse-multi-select-icon{
@@ -40,20 +45,8 @@
40
45
  }
41
46
 
42
47
  }
43
-
44
- .text-filter-container {
45
- position: relative; padding-right: 13px;
46
- .negation-checkbox {
47
- position:absolute;
48
- top:0;
49
- right:0;
50
- }
51
- }
52
-
53
-
54
48
  }
55
49
 
56
-
57
50
  .wice-grid{
58
51
 
59
52
 
@@ -138,3 +131,10 @@
138
131
  @include icon-dimensions;
139
132
  }
140
133
  }
134
+
135
+ input.wice-grid-save-query-field{
136
+ width: auto;
137
+ display: inline-block;
138
+ margin-right: 10px;
139
+ }
140
+
@@ -12,6 +12,8 @@ module Wice
12
12
 
13
13
  opts = {:size => 3, :id => @dom_id, :class => 'range-start'}
14
14
 
15
+ opts[:class] += ' form-control input-sm'
16
+
15
17
  if auto_reload
16
18
  opts[:class] += ' auto-reload'
17
19
  end
@@ -8,18 +8,21 @@ module Wice
8
8
  def render_filter_internal(params) #:nodoc:
9
9
  @contains_a_text_input = true
10
10
 
11
- @query, _, parameter_name, @dom_id = form_parameter_name_id_and_query(:fr => '')
11
+ @query, _, parameter_name, @dom_id = form_parameter_name_id_and_query(:fr => '')
12
12
  @query2, _, parameter_name2, @dom_id2 = form_parameter_name_id_and_query(:to => '')
13
13
 
14
- opts1 = {:size => 3, :id => @dom_id, :class => 'range-start'}
15
- opts2 = {:size => 3, :id => @dom_id2, :class => 'range-end'}
14
+ opts1 = {:size => 2, :id => @dom_id, :class => 'form-control input-sm range-start'}
15
+ opts2 = {:size => 2, :id => @dom_id2, :class => 'form-control input-sm range-end'}
16
16
 
17
17
  if auto_reload
18
18
  opts1[:class] += ' auto-reload'
19
19
  opts2[:class] += ' auto-reload'
20
20
  end
21
21
 
22
- text_field_tag(parameter_name, params[:fr], opts1) + text_field_tag(parameter_name2, params[:to], opts2)
22
+ content_tag(
23
+ :div,
24
+ text_field_tag(parameter_name, params[:fr], opts1) + text_field_tag(parameter_name2, params[:to], opts2),
25
+ :class => 'form-inline')
23
26
  end
24
27
 
25
28
  def yield_declaration_of_column_filter #:nodoc:
@@ -9,7 +9,7 @@ module Wice
9
9
 
10
10
  def render_filter_internal(params) #:nodoc:
11
11
  @contains_a_text_input = true
12
- css_class = auto_reload ? 'auto-reload' : nil
12
+ css_class = 'form-control input-sm ' + (auto_reload ? 'auto-reload' : '')
13
13
 
14
14
  if negation
15
15
  self.auto_reloading_input_with_negation_checkbox = true if auto_reload
@@ -39,10 +39,10 @@ module Wice
39
39
 
40
40
  '<div class="form-horizontal"><div class="wg-saved-query-input-controls input-append">'+
41
41
 
42
- text_field_tag(input_field_name, '', :onkeydown=>'', :class => 'wice-grid-save-query-field span4') +
42
+ text_field_tag(input_field_name, '', :onkeydown=>'', :class => 'wice-grid-save-query-field form-control ') +
43
43
  button_tag(
44
44
  NlMessage['save_query_button_label'],
45
- :class => 'wice-grid-save-query-button btn',
45
+ :class => 'wice-grid-save-query-button btn btn-primary',
46
46
  'data-grid-name' => grid_name,
47
47
  'data-base-path-to-query-controller' => base_path_to_query_controller,
48
48
  'data-parameters' => parameters.to_json,
@@ -9,7 +9,7 @@ class WiceGridSerializedQuery < ActiveRecord::Base #:nodoc:
9
9
 
10
10
  def self.list(name, controller)
11
11
  conditions = {:grid_name => name}
12
- self.where(conditions).load
12
+ self.where(conditions).all
13
13
  end
14
14
 
15
15
  end
data/lib/wice_grid.rb CHANGED
@@ -549,7 +549,7 @@ module Wice
549
549
 
550
550
  def resultset_without_paging_with_user_filters #:nodoc:
551
551
  @klass.unscoped do
552
- active_relation_for_resultset_without_paging_with_user_filters.load
552
+ active_relation_for_resultset_without_paging_with_user_filters.all
553
553
  end
554
554
  end
555
555
 
data/wice_grid.gemspec CHANGED
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'wice_grid'
3
- s.version = '3.4.0'
3
+ s.version = '3.4.1'
4
4
  s.homepage = 'https://github.com/leikind/wice_grid'
5
- s.date = '2013-10-11'
5
+ s.date = '2013-10-17'
6
6
  s.summary = 'A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters.'
7
7
  s.description = 'A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters.' +
8
8
  'One of the goals of this plugin was to allow the programmer to define the contents of the cell by himself, ' +
metadata CHANGED
@@ -1,27 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wice_grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.4.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Yuri Leikind
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-10-11 00:00:00.000000000 Z
12
+ date: 2013-10-17 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: kaminari
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 0.13.0
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: 0.13.0
27
30
  description: A Rails grid plugin to create grids with sorting, pagination, and (automatically
@@ -104,24 +107,25 @@ files:
104
107
  homepage: https://github.com/leikind/wice_grid
105
108
  licenses:
106
109
  - MIT
107
- metadata: {}
108
110
  post_install_message:
109
111
  rdoc_options: []
110
112
  require_paths:
111
113
  - lib
112
114
  required_ruby_version: !ruby/object:Gem::Requirement
115
+ none: false
113
116
  requirements:
114
- - - '>='
117
+ - - ! '>='
115
118
  - !ruby/object:Gem::Version
116
119
  version: '0'
117
120
  required_rubygems_version: !ruby/object:Gem::Requirement
121
+ none: false
118
122
  requirements:
119
- - - '>='
123
+ - - ! '>='
120
124
  - !ruby/object:Gem::Version
121
125
  version: '0'
122
126
  requirements: []
123
127
  rubyforge_project:
124
- rubygems_version: 2.0.3
128
+ rubygems_version: 1.8.23
125
129
  signing_key:
126
130
  specification_version: 3
127
131
  summary: A Rails grid plugin to create grids with sorting, pagination, and (automatically
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 092a576a254b1d6d2e661f6f5b87f708c858f640
4
- data.tar.gz: b742d69270656e4f21e56c0b30b79504da23b015
5
- SHA512:
6
- metadata.gz: 4e65ab3eecc3cbeb363fc3d2cbaf7a36638ef84ed305fb1f4e489f4094613ad5c100dff281a73216392269327f4da7e921daa7bc385381e2fb295fad9b99c923
7
- data.tar.gz: e1be30d9b58d59bd9f4c03a000276921c1f56cacf85d1ed9a595533dbbf6516c516943aa29458e57d708ed5f40eae3e0e6e9d192dd6e37ed15ced71579f978c9