wice_grid 3.0.4 → 3.2.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +24 -2
- data/README.rdoc +282 -316
- data/RELEASE_NOTES_3.2.pre1.rdoc +82 -0
- data/Rakefile +4 -2
- data/SAVED_QUERIES_HOWTO.rdoc +18 -31
- data/VERSION +1 -1
- data/lib/generators/wice_grid/add_migration_for_serialized_queries_generator.rb +22 -0
- data/lib/generators/wice_grid/install_generator.rb +20 -0
- data/lib/generators/wice_grid/templates/create_wice_grid_serialized_queries.rb +13 -0
- data/lib/generators/wice_grid/templates/wice_grid.css.scss +139 -0
- data/lib/generators/wice_grid/templates/wice_grid.yml +113 -19
- data/lib/generators/wice_grid/templates/wice_grid_config.rb +17 -41
- data/lib/grid_output_buffer.rb +3 -2
- data/lib/grid_renderer.rb +63 -102
- data/lib/helpers/js_calendar_helpers.rb +27 -157
- data/lib/helpers/wice_grid_misc_view_helpers.rb +1 -66
- data/lib/helpers/wice_grid_serialized_queries_view_helpers.rb +41 -32
- data/lib/helpers/wice_grid_view_helpers.rb +138 -274
- data/lib/table_column_matrix.rb +11 -11
- data/lib/view_columns.rb +41 -350
- data/lib/view_columns/action_view_column.rb +45 -0
- data/lib/view_columns/column_processor_index.rb +16 -0
- data/lib/view_columns/view_column_boolean.rb +23 -0
- data/lib/view_columns/view_column_custom_dropdown.rb +81 -0
- data/lib/view_columns/view_column_date.rb +17 -0
- data/lib/view_columns/view_column_datetime.rb +85 -0
- data/lib/view_columns/view_column_float.rb +7 -0
- data/lib/view_columns/view_column_integer.rb +38 -0
- data/lib/view_columns/view_column_string.rb +63 -0
- data/lib/wice_grid.rb +23 -26
- data/lib/wice_grid_controller.rb +14 -15
- data/lib/wice_grid_misc.rb +3 -3
- data/lib/wice_grid_serialized_queries_controller.rb +15 -18
- data/lib/wice_grid_spreadsheet.rb +2 -2
- data/lib/will_paginate_paginator.rb +31 -0
- data/test/readme.txt +1 -0
- data/{lib/generators/wice_grid/templates/icons → vendor/assets/images/icons/grid}/arrow_down.gif +0 -0
- data/{lib/generators/wice_grid/templates/icons → vendor/assets/images/icons/grid}/arrow_up.gif +0 -0
- data/{lib/generators/wice_grid/templates/icons → vendor/assets/images/icons/grid}/calendar_view_month.png +0 -0
- data/vendor/assets/images/icons/grid/collapse.gif +0 -0
- data/{lib/generators/wice_grid/templates/icons → vendor/assets/images/icons/grid}/delete.png +0 -0
- data/vendor/assets/images/icons/grid/expand.gif +0 -0
- data/{lib/generators/wice_grid/templates/icons → vendor/assets/images/icons/grid}/page_white_excel.png +0 -0
- data/{lib/generators/wice_grid/templates/icons → vendor/assets/images/icons/grid}/page_white_find.png +0 -0
- data/{lib/generators/wice_grid/templates/icons → vendor/assets/images/icons/grid}/table.png +0 -0
- data/{lib/generators/wice_grid/templates/icons → vendor/assets/images/icons/grid}/table_refresh.png +0 -0
- data/{lib/generators/wice_grid/templates/icons → vendor/assets/images/icons/grid}/tick_all.png +0 -0
- data/{lib/generators/wice_grid/templates/icons → vendor/assets/images/icons/grid}/untick_all.png +0 -0
- data/vendor/assets/javascripts/wice_grid.js +3 -0
- data/vendor/assets/javascripts/wice_grid_init.js.coffee +247 -0
- data/vendor/assets/javascripts/wice_grid_processor.js.coffee +128 -0
- data/vendor/assets/javascripts/wice_grid_saved_queries_init.js.coffee +103 -0
- data/wice_grid.gemspec +44 -50
- metadata +68 -94
- data/lib/generators/wice_grid/templates/calendarview.css +0 -107
- data/lib/generators/wice_grid/templates/calendarview.js +0 -1168
- data/lib/generators/wice_grid/templates/icons/expand.png +0 -0
- data/lib/generators/wice_grid/templates/wice_grid.css +0 -173
- data/lib/generators/wice_grid/templates/wice_grid_jquery.js +0 -162
- data/lib/generators/wice_grid/templates/wice_grid_prototype.js +0 -154
- data/lib/generators/wice_grid/wice_grid_assets_jquery_generator.rb +0 -32
- data/lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb +0 -34
- data/lib/js_adaptors/jquery_adaptor.rb +0 -157
- data/lib/js_adaptors/js_adaptor.rb +0 -12
- data/lib/js_adaptors/prototype_adaptor.rb +0 -179
- data/lib/tasks/wice_grid_tasks.rake +0 -28
- data/lib/views/create.rjs +0 -13
- data/lib/views/create_jq.rjs +0 -31
- data/lib/views/delete.rjs +0 -12
- data/lib/views/delete_jq.rjs +0 -26
- data/test/.gitignore +0 -2
- data/test/database.yml +0 -21
- data/test/schema.rb +0 -33
- data/test/test_helper.rb +0 -89
- data/test/views/projects_and_people_grid.html.erb +0 -12
- data/test/views/projects_and_people_grid_invalid.html.erb +0 -12
- data/test/views/simple_projects_grid.html.erb +0 -9
- data/test/wice_grid_core_ext_test.rb +0 -183
- data/test/wice_grid_functional_test.rb +0 -68
- data/test/wice_grid_misc_test.rb +0 -41
- data/test/wice_grid_test.rb +0 -42
- data/test/wice_grid_view_helper_test.rb +0 -12
@@ -0,0 +1,82 @@
|
|
1
|
+
1. Support for Prototype has been dropped. No hard feelings, Prototype, no matter what
|
2
|
+
others say, I liked you :)
|
3
|
+
|
4
|
+
2. All assets are in the asset pipeline. All javascript is now coffeescript. No more Rails
|
5
|
+
2 legacy in the form of obtrusive javascript in the HTML page. The styles file is copied
|
6
|
+
to the application asset directory by a generate task so that is it easy to modify it to
|
7
|
+
the application needs. The javascript and images are loaded from the plugin. Read the
|
8
|
+
Installation section in README for details. Thanks to the asset pipeline taking care of
|
9
|
+
loading assets for us, methods +include_wice_grid_assets+, +names_of_wice_grid_stylesheets+,
|
10
|
+
and +names_of_wice_grid_javascripts+ have been removed
|
11
|
+
|
12
|
+
3. ERB mode has been removed. It had never been used by anyone and is bad style anyway. In
|
13
|
+
case you have no idea what it was, here's what it was:
|
14
|
+
|
15
|
+
<% grid(@countries_grid, :erb_mode => true) do |g| %>
|
16
|
+
<% g.column :column_name => 'Name', :attribute_name => 'name' do |country| %>
|
17
|
+
<b>Name: <%= link_to(country.name, country_path(country)) %></b>
|
18
|
+
<% end %>
|
19
|
+
<% end -%>
|
20
|
+
|
21
|
+
4. WiceGrid is compatible with Twitter Bootstrap out of the box.
|
22
|
+
|
23
|
+
5. Paths to various images used by WiceGrid have been removed from the configuration file
|
24
|
+
and are now defined only in the css file. Developers are encouraged to modify
|
25
|
+
<tt>wice_grid.css.scss</tt> to use other images and to change the styles in general.
|
26
|
+
|
27
|
+
6. The markup and css classes that WiceGrid generates have changed, and CSS for older versions
|
28
|
+
of WiceGrid might not work. Inspect the source code.
|
29
|
+
|
30
|
+
7. Parameter names in the grid helper have been renamed:
|
31
|
+
* <tt>:table_html_attrs</tt> becomes <tt>:html</tt>
|
32
|
+
* <tt>:header_tr_html_attrs</tt> becomes <tt>:header_tr_html</tt>
|
33
|
+
|
34
|
+
8. Parameter names in column definitions have been renamed:
|
35
|
+
* <tt>:column_name</tt> becomes <tt>:name</tt>
|
36
|
+
* <tt>:attribute_name</tt> becomes <tt>:attribute</tt>
|
37
|
+
* <tt>:model_class</tt> becomes <tt>:model</tt>
|
38
|
+
* <tt>:allow_ordering</tt> becomes <tt>:ordering</tt>
|
39
|
+
* <tt>:td_html_attrs</tt> becomes <tt>:html</tt>
|
40
|
+
* Negation in the parameter name does not contribute to the simplicity of an API, so
|
41
|
+
<tt>:no_filter</tt> in becomes <tt>:filter</tt>. Consequently, <tt>:no_filter => true</tt>
|
42
|
+
becomes <tt>:filter => false</tt>
|
43
|
+
* <tt>:negation_in_filter</tt> becomes <tt>:negation</tt>
|
44
|
+
|
45
|
+
|
46
|
+
9. New configuration parameter <tt>DEFAULT_TABLE_CLASSES</tt> contains CSS classes added to
|
47
|
+
all WiceGrid tables by default.
|
48
|
+
|
49
|
+
10. In previous versions of WiceGrid in the jQuery mode DateTime filters used to automatically
|
50
|
+
fall back on Rails DateTime helpers due to absence of time controls in jQuery DatePicker.
|
51
|
+
In version 3.2 this behavior has been changed to always use jQuery DatePicker, even with
|
52
|
+
DateTime filters. Of course it is possible to force Rails DateTime with
|
53
|
+
<tt>:helper_style => :standard</tt> in the column definition.
|
54
|
+
|
55
|
+
11. The second variable injected into to <tt>before_row</tt> and <tt>after_row</tt> block,
|
56
|
+
and the first parameter injected into the <tt>last_row</tt> is the number of columns in
|
57
|
+
the current grid.
|
58
|
+
|
59
|
+
12. <tt>:csv_field_separator</tt> is a new parameter for +initialize_grid+ defining the field
|
60
|
+
separator in CSV files. The default separator is defined by +CSV_FIELD_SEPARATOR+ in the
|
61
|
+
config file.
|
62
|
+
|
63
|
+
13. New parameter +:confirm+ for +saved_queries_panel+ which turns on or off the JS confirm
|
64
|
+
dialogs when deleting saved queries.
|
65
|
+
|
66
|
+
14. Instead of the old rake task creating a table for serialized queries a generator has been
|
67
|
+
added which adds a migration file to +db/migrations+.
|
68
|
+
|
69
|
+
15. Instead of using helpers +submit_grid_javascript+ and +reset_grid_javascript+ to create
|
70
|
+
external Submit and Reset buttons all you have to do is add a button or any other
|
71
|
+
clickable HTML element with class +wg-external-submit-button+ or +wg-external-reset-button+,
|
72
|
+
and attribute +data-grid-name+ whose value is the name of the grid:
|
73
|
+
|
74
|
+
<button class="wg-external-submit-button" data-grid-name="grid">Submit</button>
|
75
|
+
<button class="wg-external-reset-button" data-grid-name="grid">Reset</button>
|
76
|
+
|
77
|
+
|
78
|
+
The same goes for the external CSV export button, only the CSS class is
|
79
|
+
+wg-external-csv-export-button+:
|
80
|
+
|
81
|
+
<button class="wg-external-csv-export-button" data-grid-name="grid">Export To CSV</button>
|
82
|
+
|
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'rake/testtask'
|
3
|
-
require '
|
3
|
+
require 'rdoc/task'
|
4
4
|
|
5
5
|
desc 'Default: run unit tests.'
|
6
6
|
task :default => :test
|
@@ -19,11 +19,13 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
19
19
|
rdoc.options << '--line-numbers' << '--inline-source'
|
20
20
|
rdoc.rdoc_files.include('README.rdoc')
|
21
21
|
rdoc.rdoc_files.include('SAVED_QUERIES_HOWTO.rdoc')
|
22
|
+
rdoc.rdoc_files.include('RELEASE_NOTES_3.2.pre1.rdoc')
|
22
23
|
rdoc.rdoc_files.include('CHANGELOG')
|
23
24
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
24
25
|
end
|
25
26
|
|
26
27
|
begin
|
28
|
+
require 'git'
|
27
29
|
require 'jeweler'
|
28
30
|
Jeweler::Tasks.new do |gem|
|
29
31
|
gem.name = "wice_grid"
|
@@ -32,7 +34,7 @@ begin
|
|
32
34
|
gem.email = "yuri.leikind@gmail.com"
|
33
35
|
gem.homepage = "http://github.com/lekind/wice_grid"
|
34
36
|
gem.authors = ["Yuri Leikind"]
|
35
|
-
gem.add_development_dependency "will_paginate", ">= 3.0.
|
37
|
+
gem.add_development_dependency "will_paginate", ">= 3.0.3"
|
36
38
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
37
39
|
end
|
38
40
|
Jeweler::GemcutterTasks.new
|
data/SAVED_QUERIES_HOWTO.rdoc
CHANGED
@@ -4,29 +4,13 @@ WiceGrid allows to save the state of filters as a custom query and later restore
|
|
4
4
|
|
5
5
|
=== Step 1: Create the database table to store queries
|
6
6
|
|
7
|
-
To get started
|
7
|
+
To get started create the database table to store queries. Run the following generator:
|
8
8
|
|
9
|
-
|
9
|
+
rails g wice_grid:add_migration_for_serialized_queries
|
10
10
|
|
11
|
-
This
|
11
|
+
This add a migration file with the definition of the table. Run the migrate task:
|
12
12
|
|
13
|
-
|
14
|
-
def self.up
|
15
|
-
create_table :wice_grid_serialized_queries do |t|
|
16
|
-
t.column :name, :string
|
17
|
-
t.column :grid_name, :string
|
18
|
-
t.column :query, :text
|
19
|
-
|
20
|
-
t.timestamps
|
21
|
-
end
|
22
|
-
add_index :wice_grid_serialized_queries, :grid_name
|
23
|
-
add_index :wice_grid_serialized_queries, [:grid_name, :id]
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.down
|
27
|
-
drop_table :wice_grid_serialized_queries
|
28
|
-
end
|
29
|
-
end
|
13
|
+
bundle 'rake db:migrate'
|
30
14
|
|
31
15
|
=== Step 2: Create the controller to handle AJAX queries.
|
32
16
|
|
@@ -58,11 +42,11 @@ Just like WiceGrid itself, the query panel contains no forms and is thus form-fr
|
|
58
42
|
*Important*: Saved queries of all grids in the application are stored in one table and differentiated by the name of the grid, thus, for all forms
|
59
43
|
with saved queries it is important to define different names! (use parameter <tt>:name</tt> in +initialize_grid+)
|
60
44
|
|
61
|
-
It is also possible to initialize a grid with an initial saved query providing the id of the query record or the ActiveRecord
|
45
|
+
It is also possible to initialize a grid with an initial saved query providing the id of the query record or the ActiveRecord
|
62
46
|
itself to parameter <tt>saved_query</tt>:
|
63
47
|
|
64
|
-
@products_grid = initialize_grid(Product,
|
65
|
-
:name => 'prod_grid',
|
48
|
+
@products_grid = initialize_grid(Product,
|
49
|
+
:name => 'prod_grid',
|
66
50
|
:saved_query => SavedQuery.find_by_id_and_grid_name(12, 'prod_grid') )
|
67
51
|
|
68
52
|
|
@@ -70,15 +54,17 @@ itself to parameter <tt>saved_query</tt>:
|
|
70
54
|
|
71
55
|
WiceGrid allows to add application specific logic to saving and restoring queries by substituting the default ActiveRecord model provided by WiceGrid with a custom model.
|
72
56
|
|
73
|
-
Copy <tt>
|
57
|
+
Copy <tt>lib/wice_grid_serialized_query.rb</tt> from the gem to <tt>app/models/</tt>, rename the file and the class to your liking.
|
74
58
|
|
75
|
-
|
59
|
+
After renaming the model to SavedQuery it looks like this:
|
76
60
|
|
77
61
|
class SavedQuery < ActiveRecord::Base #:nodoc:
|
78
62
|
serialize :query
|
79
63
|
|
80
|
-
validates_uniqueness_of :name, :scope => :grid_name, :on => :create,
|
81
|
-
|
64
|
+
validates_uniqueness_of :name, :scope => :grid_name, :on => :create,
|
65
|
+
:message => 'A query with this name already exists'
|
66
|
+
|
67
|
+
validates_presence_of :name, :message => 'Please submit the name of the custom query'
|
82
68
|
|
83
69
|
def self.list(name, controller)
|
84
70
|
conditions = {:grid_name => name}
|
@@ -93,9 +79,10 @@ store queries for each user, we could add +user_id+ to the table and modify the
|
|
93
79
|
class SavedQuery < ActiveRecord::Base
|
94
80
|
serialize :query
|
95
81
|
|
96
|
-
|
97
|
-
|
98
|
-
|
82
|
+
validates_uniqueness_of :name, :scope => :grid_name, :on => :create,
|
83
|
+
:message => 'A query with this name already exists'
|
84
|
+
|
85
|
+
validates_presence_of :name, :message => 'Please submit the name of the custom query'
|
99
86
|
|
100
87
|
belongs_to :identity # !
|
101
88
|
|
@@ -114,7 +101,7 @@ The following step is to make sure that a new query is saved with the correct +u
|
|
114
101
|
|
115
102
|
<%= saved_queries_panel(@identities_grid, :extra_parameters => {:user_id => @current_user.id}) %>
|
116
103
|
|
117
|
-
For every key in has :extra_parameters there must exist a field in the model - this hash will be used as a parameter to
|
104
|
+
For every key in has :extra_parameters there must exist a field in the model - this hash will be used as a parameter to
|
118
105
|
<tt>attributes=</tt> method of the query object.
|
119
106
|
|
120
107
|
Finally, let WiceGrid know which model to use for saving queries by changing constant +QUERY_STORE_MODEL+
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.2.0.pre1
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module WiceGrid #:nodoc:
|
2
|
+
module Generators #:nodoc:
|
3
|
+
|
4
|
+
class AddMigrationForSerializedQueriesGenerator < Rails::Generators::Base
|
5
|
+
|
6
|
+
include Rails::Generators::Migration
|
7
|
+
|
8
|
+
desc 'Add a migration which creates a table for serialized queries'
|
9
|
+
|
10
|
+
source_root File.expand_path('../templates', __FILE__)
|
11
|
+
|
12
|
+
def self.next_migration_number(path)
|
13
|
+
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
14
|
+
end
|
15
|
+
|
16
|
+
def create_model_file
|
17
|
+
migration_template "create_wice_grid_serialized_queries.rb", "db/migrate/create_wice_grid_serialized_queries.rb"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module WiceGrid #:nodoc:
|
2
|
+
module Generators #:nodoc:
|
3
|
+
class InstallGenerator < Rails::Generators::Base #:nodoc:
|
4
|
+
|
5
|
+
desc 'Copy WiceGrid wice_grid_config.rb to config/initializers, ' +
|
6
|
+
'wice_grid.yml to config/locales/, and wice_grid.css.scss to assets/stylesheets'
|
7
|
+
|
8
|
+
source_root File.expand_path('../templates', __FILE__)
|
9
|
+
|
10
|
+
def copy_stuff #:nodoc:
|
11
|
+
template 'wice_grid_config.rb', 'config/initializers/wice_grid_config.rb'
|
12
|
+
|
13
|
+
copy_file 'wice_grid.yml', 'config/locales/wice_grid.yml'
|
14
|
+
|
15
|
+
copy_file 'wice_grid.css.scss', 'app/assets/stylesheets/wice_grid.css.scss'
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class CreateWiceGridSerializedQueries < ::ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :wice_grid_serialized_queries do |t|
|
4
|
+
t.column :name, :string
|
5
|
+
t.column :grid_name, :string
|
6
|
+
t.column :query, :text
|
7
|
+
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
add_index :wice_grid_serialized_queries, :grid_name
|
11
|
+
add_index :wice_grid_serialized_queries, [:grid_name, :id]
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,139 @@
|
|
1
|
+
@mixin icon-dimensions {
|
2
|
+
width: 16px;
|
3
|
+
height: 16px;
|
4
|
+
}
|
5
|
+
|
6
|
+
.wg-detached-filter{
|
7
|
+
a.date-label {text-decoration: none;}
|
8
|
+
a.date-label:hover {text-decoration: line-through;}
|
9
|
+
}
|
10
|
+
|
11
|
+
.wice-grid{
|
12
|
+
|
13
|
+
.clickable{
|
14
|
+
cursor: pointer;
|
15
|
+
margin-bottom: 2px;
|
16
|
+
margin-right: 2px;
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
a.date-label {text-decoration: none;}
|
21
|
+
a.date-label:hover {text-decoration: line-through;}
|
22
|
+
|
23
|
+
.ui-datepicker-trigger, .wg-detached-filter .ui-datepicker-trigger{
|
24
|
+
cursor: pointer;
|
25
|
+
}
|
26
|
+
|
27
|
+
.desc, .asc{
|
28
|
+
padding-right: 18px;
|
29
|
+
text-decoration:none;
|
30
|
+
}
|
31
|
+
|
32
|
+
.desc {
|
33
|
+
background: transparent url(/assets/icons/grid/arrow_down.gif) right no-repeat
|
34
|
+
}
|
35
|
+
.asc {
|
36
|
+
background: transparent url(/assets/icons/grid/arrow_up.gif) right no-repeat
|
37
|
+
}
|
38
|
+
|
39
|
+
.submit.clickable{
|
40
|
+
background: transparent url(/assets/icons/grid/table_refresh.png) no-repeat;
|
41
|
+
@include icon-dimensions;
|
42
|
+
}
|
43
|
+
|
44
|
+
.reset.clickable{
|
45
|
+
background: transparent url(/assets/icons/grid/table.png) no-repeat;
|
46
|
+
@include icon-dimensions;
|
47
|
+
}
|
48
|
+
|
49
|
+
|
50
|
+
.wg-show-filter.clickable,
|
51
|
+
.wg-hide-filter.clickable{
|
52
|
+
background: transparent url(/assets/icons/grid/page_white_find.png) no-repeat;
|
53
|
+
@include icon-dimensions;
|
54
|
+
}
|
55
|
+
|
56
|
+
|
57
|
+
.export-to-csv-button.clickable{
|
58
|
+
background: transparent url(/assets/icons/grid/page_white_excel.png) no-repeat;
|
59
|
+
@include icon-dimensions;
|
60
|
+
}
|
61
|
+
|
62
|
+
.clickable.select-all{
|
63
|
+
background: transparent url(/assets/icons/grid/tick_all.png) no-repeat;
|
64
|
+
@include icon-dimensions;
|
65
|
+
float:left;
|
66
|
+
}
|
67
|
+
|
68
|
+
.clickable.deselect-all{
|
69
|
+
background: transparent url(/assets/icons/grid/untick_all.png) no-repeat;
|
70
|
+
@include icon-dimensions;
|
71
|
+
float:left;
|
72
|
+
}
|
73
|
+
|
74
|
+
.custom-dropdown-container {
|
75
|
+
position: relative;
|
76
|
+
padding-right: 18px;
|
77
|
+
|
78
|
+
|
79
|
+
.collapse-multi-select-icon, .expand-multi-select-icon{
|
80
|
+
width: 12px;
|
81
|
+
height: 12px;
|
82
|
+
position:absolute;
|
83
|
+
top:0;
|
84
|
+
right:0;
|
85
|
+
}
|
86
|
+
|
87
|
+
.collapse-multi-select-icon{
|
88
|
+
background: transparent url(/assets/icons/grid/collapse.gif) no-repeat;
|
89
|
+
}
|
90
|
+
|
91
|
+
.expand-multi-select-icon{
|
92
|
+
background: transparent url(/assets/icons/grid/expand.gif) no-repeat;
|
93
|
+
}
|
94
|
+
|
95
|
+
}
|
96
|
+
|
97
|
+
.text-filter-container {
|
98
|
+
position: relative; padding-right: 13px;
|
99
|
+
.negation-checkbox {
|
100
|
+
position:absolute;
|
101
|
+
top:0;
|
102
|
+
right:0;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
|
107
|
+
/* in case of twitter bootstrap :) */
|
108
|
+
thead th select{
|
109
|
+
width: auto;
|
110
|
+
}
|
111
|
+
|
112
|
+
.pagination{
|
113
|
+
margin: 0px;
|
114
|
+
float: left;
|
115
|
+
}
|
116
|
+
|
117
|
+
|
118
|
+
tr.wg-filter-row input[type=text] {
|
119
|
+
width: 100px;
|
120
|
+
}
|
121
|
+
|
122
|
+
.pagination_status {
|
123
|
+
font-weight: bold;
|
124
|
+
float: right;
|
125
|
+
}
|
126
|
+
|
127
|
+
}
|
128
|
+
|
129
|
+
.wice-grid-query-panel{
|
130
|
+
li {list-style-type: none; }
|
131
|
+
|
132
|
+
ul {margin-left: 0 }
|
133
|
+
|
134
|
+
a.wice-grid-delete-query .delete-icon{
|
135
|
+
background: transparent url(/assets/icons/grid/delete.png) no-repeat;
|
136
|
+
float: left;
|
137
|
+
@include icon-dimensions;
|
138
|
+
}
|
139
|
+
}
|
@@ -12,8 +12,8 @@ en:
|
|
12
12
|
reset_filter_tooltip: Reset
|
13
13
|
boolean_filter_true_label: "yes"
|
14
14
|
boolean_filter_false_label: "no"
|
15
|
-
previous_label: «
|
16
|
-
next_label:
|
15
|
+
previous_label: «
|
16
|
+
next_label: »
|
17
17
|
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
18
18
|
date_selector_tooltip_from: From
|
19
19
|
# Title of the icon clicking on which will show the calendar to set the TO date.
|
@@ -43,6 +43,8 @@ en:
|
|
43
43
|
query_saved_message: Query saved.
|
44
44
|
select_all: Select all
|
45
45
|
deselect_all: Remove selection
|
46
|
+
expand: Expand
|
47
|
+
collapse: Collapse
|
46
48
|
|
47
49
|
|
48
50
|
is:
|
@@ -59,8 +61,8 @@ is:
|
|
59
61
|
reset_filter_tooltip: Hreinsa
|
60
62
|
boolean_filter_true_label: Já
|
61
63
|
boolean_filter_false_label: Nei
|
62
|
-
previous_label: «
|
63
|
-
next_label:
|
64
|
+
previous_label: «
|
65
|
+
next_label: »
|
64
66
|
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
65
67
|
date_selector_tooltip_from: Frá
|
66
68
|
# Title of the icon clicking on which will show the calendar to set the TO date.
|
@@ -106,8 +108,8 @@ nl:
|
|
106
108
|
reset_filter_tooltip: Terugstellen
|
107
109
|
boolean_filter_true_label: ja
|
108
110
|
boolean_filter_false_label: neen
|
109
|
-
previous_label: «
|
110
|
-
next_label:
|
111
|
+
previous_label: «
|
112
|
+
next_label: »
|
111
113
|
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
112
114
|
date_selector_tooltip_from: Vanaf
|
113
115
|
# Title of the icon clicking on which will show the calendar to set the TO date.
|
@@ -152,8 +154,8 @@ fr:
|
|
152
154
|
reset_filter_tooltip: Effacer
|
153
155
|
boolean_filter_true_label: oui
|
154
156
|
boolean_filter_false_label: non
|
155
|
-
previous_label: «
|
156
|
-
next_label:
|
157
|
+
previous_label: «
|
158
|
+
next_label: »
|
157
159
|
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
158
160
|
date_selector_tooltip_from: De
|
159
161
|
# Title of the icon clicking on which will show the calendar to set the TO date.
|
@@ -198,8 +200,8 @@ ru:
|
|
198
200
|
reset_filter_tooltip: Сброс
|
199
201
|
boolean_filter_true_label: да
|
200
202
|
boolean_filter_false_label: нет
|
201
|
-
previous_label: «
|
202
|
-
next_label:
|
203
|
+
previous_label: «
|
204
|
+
next_label: »
|
203
205
|
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
204
206
|
date_selector_tooltip_from: С
|
205
207
|
# Title of the icon clicking on which will show the calendar to set the TO date.
|
@@ -245,8 +247,8 @@ pt:
|
|
245
247
|
reset_filter_tooltip: Reinicializar
|
246
248
|
boolean_filter_true_label: sim
|
247
249
|
boolean_filter_false_label: não
|
248
|
-
previous_label: «
|
249
|
-
next_label:
|
250
|
+
previous_label: «
|
251
|
+
next_label: »
|
250
252
|
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
251
253
|
date_selector_tooltip_from: De
|
252
254
|
# Title of the icon clicking on which will show the calendar to set the TO date.
|
@@ -291,8 +293,8 @@ pt-BR:
|
|
291
293
|
reset_filter_tooltip: Reinicializar
|
292
294
|
boolean_filter_true_label: sim
|
293
295
|
boolean_filter_false_label: não
|
294
|
-
previous_label: «
|
295
|
-
next_label:
|
296
|
+
previous_label: «
|
297
|
+
next_label: »
|
296
298
|
date_selector_tooltip_from: De
|
297
299
|
date_selector_tooltip_to: a
|
298
300
|
negation_checkbox_title: Excluir
|
@@ -329,8 +331,8 @@ sk:
|
|
329
331
|
reset_filter_tooltip: Zrušiť filtre
|
330
332
|
boolean_filter_true_label: "áno"
|
331
333
|
boolean_filter_false_label: "nie"
|
332
|
-
previous_label: «
|
333
|
-
next_label:
|
334
|
+
previous_label: «
|
335
|
+
next_label: »
|
334
336
|
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
335
337
|
date_selector_tooltip_from: Dátum od
|
336
338
|
# Title of the icon clicking on which will show the calendar to set the TO date.
|
@@ -375,8 +377,8 @@ cz:
|
|
375
377
|
reset_filter_tooltip: Zrušit filtr
|
376
378
|
boolean_filter_true_label: "áno"
|
377
379
|
boolean_filter_false_label: "ne"
|
378
|
-
previous_label: «
|
379
|
-
next_label:
|
380
|
+
previous_label: «
|
381
|
+
next_label: »
|
380
382
|
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
381
383
|
date_selector_tooltip_from: Dátum od
|
382
384
|
# Title of the icon clicking on which will show the calendar to set the TO date.
|
@@ -405,4 +407,96 @@ cz:
|
|
405
407
|
query_deleted_message: Uložený filtr byl smazán.
|
406
408
|
query_saved_message: Filtr byl uložen.
|
407
409
|
select_all: Vyber všechno
|
408
|
-
deselect_all: Zrušit výběr
|
410
|
+
deselect_all: Zrušit výběr
|
411
|
+
|
412
|
+
de:
|
413
|
+
date:
|
414
|
+
order:
|
415
|
+
- :year
|
416
|
+
- :month
|
417
|
+
- :day
|
418
|
+
wice_grid:
|
419
|
+
show_filter_tooltip: Filter einblenden
|
420
|
+
hide_filter_tooltip: Filter ausblenden
|
421
|
+
csv_export_tooltip: CSV Export
|
422
|
+
filter_tooltip: Filter
|
423
|
+
reset_filter_tooltip: Reset
|
424
|
+
boolean_filter_true_label: "Ja"
|
425
|
+
boolean_filter_false_label: "Nein"
|
426
|
+
previous_label: «
|
427
|
+
next_label: »
|
428
|
+
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
429
|
+
date_selector_tooltip_from: Von
|
430
|
+
# Title of the icon clicking on which will show the calendar to set the TO date.
|
431
|
+
date_selector_tooltip_to: Bis
|
432
|
+
# The title of the checkox to turn on negation
|
433
|
+
negation_checkbox_title: Ausschließen
|
434
|
+
# link to switch to show all records
|
435
|
+
show_all_records_label: Alle anzeigen
|
436
|
+
# tooltip for the link to switch to show all records
|
437
|
+
show_all_records_tooltip: Alle anzeigen
|
438
|
+
# Warning message shown when the user wants to switch to all-records mode
|
439
|
+
all_queries_warning: Wollen Sie wirkliche alle Einträge anzeigen?
|
440
|
+
# link to paginated view
|
441
|
+
switch_back_to_paginated_mode_label: Zurück zur seitenbasierten Ansicht
|
442
|
+
# tooltip for the link to paginated view
|
443
|
+
switch_back_to_paginated_mode_tooltip: Zurück zur seitenbasierten Ansicht
|
444
|
+
# Title of the date string.
|
445
|
+
date_string_tooltip: Löschen
|
446
|
+
saved_query_panel_title: Gespeicherte Abfragen
|
447
|
+
save_query_button_label: Filter speichern
|
448
|
+
saved_query_deletion_confirmation: Sind Sie sicher?
|
449
|
+
saved_query_deletion_link_title: Abfrage löschen
|
450
|
+
saved_query_link_title: Abfrage laden
|
451
|
+
validates_uniqueness_error: Eine Abfrage mit dieser Bezeichnung existiert bereits!
|
452
|
+
validates_presence_error: Bitte vergeben Sie einen Namen!
|
453
|
+
query_deleted_message: Abfrage gelöscht.
|
454
|
+
query_saved_message: Abfrage gespeichert.
|
455
|
+
select_all: Alle auswählen
|
456
|
+
deselect_all: Auswahl aufheben
|
457
|
+
|
458
|
+
zh:
|
459
|
+
date:
|
460
|
+
order:
|
461
|
+
- :year
|
462
|
+
- :month
|
463
|
+
- :day
|
464
|
+
wice_grid:
|
465
|
+
show_filter_tooltip: 显示过滤
|
466
|
+
hide_filter_tooltip: 隐藏过滤
|
467
|
+
csv_export_tooltip: 输出CSV档
|
468
|
+
filter_tooltip: 过滤
|
469
|
+
reset_filter_tooltip: 清除过滤
|
470
|
+
boolean_filter_true_label: "是"
|
471
|
+
boolean_filter_false_label: "否"
|
472
|
+
previous_label: «
|
473
|
+
next_label: »
|
474
|
+
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
475
|
+
date_selector_tooltip_from: 从
|
476
|
+
# Title of the icon clicking on which will show the calendar to set the TO date.
|
477
|
+
date_selector_tooltip_to: 至
|
478
|
+
# The title of the checkox to turn on negation
|
479
|
+
negation_checkbox_title: 排除
|
480
|
+
# link to switch to show all records
|
481
|
+
show_all_records_label: 显示全部
|
482
|
+
# tooltip for the link to switch to show all records
|
483
|
+
show_all_records_tooltip: 显示全部记录
|
484
|
+
# Warning message shown when the user wants to switch to all-records mode
|
485
|
+
all_queries_warning: 确定要显示全部记录?
|
486
|
+
# link to paginated view
|
487
|
+
switch_back_to_paginated_mode_label: 回到分页显示
|
488
|
+
# tooltip for the link to paginated view
|
489
|
+
switch_back_to_paginated_mode_tooltip: 切换到分页显示
|
490
|
+
# Title of the date string.
|
491
|
+
date_string_tooltip: 按下以清除
|
492
|
+
saved_query_panel_title: 查询存储
|
493
|
+
save_query_button_label: 储存查询状态
|
494
|
+
saved_query_deletion_confirmation: 确定删除?
|
495
|
+
saved_query_deletion_link_title: 删除查询
|
496
|
+
saved_query_link_title: 读取查询
|
497
|
+
validates_uniqueness_error: 已存在相同名称的查询
|
498
|
+
validates_presence_error: 请为此查询命名
|
499
|
+
query_deleted_message: 查询已删除
|
500
|
+
query_saved_message: 查询已储存
|
501
|
+
select_all: 全选
|
502
|
+
deselect_all: 全清
|