wice_grid_mongoid 0.5.6
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/.gitignore +8 -0
- data/CHANGELOG +409 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +1172 -0
- data/Rakefile +42 -0
- data/SAVED_QUERIES_HOWTO.rdoc +123 -0
- data/VERSION +1 -0
- data/generators/common_templates/icons/arrow_down.gif +0 -0
- data/generators/common_templates/icons/arrow_up.gif +0 -0
- data/generators/common_templates/icons/calendar_view_month.png +0 -0
- data/generators/common_templates/icons/delete.png +0 -0
- data/generators/common_templates/icons/expand.png +0 -0
- data/generators/common_templates/icons/page_white_excel.png +0 -0
- data/generators/common_templates/icons/page_white_find.png +0 -0
- data/generators/common_templates/icons/table.png +0 -0
- data/generators/common_templates/icons/table_refresh.png +0 -0
- data/generators/common_templates/icons/tick_all.png +0 -0
- data/generators/common_templates/icons/untick_all.png +0 -0
- data/generators/common_templates/initializers/wice_grid_config.rb +215 -0
- data/generators/common_templates/locales/wice_grid.yml +269 -0
- data/generators/common_templates/stylesheets/wice_grid.css +173 -0
- data/generators/wice_grid_assets_jquery/templates/USAGE +6 -0
- data/generators/wice_grid_assets_jquery/templates/javascripts/wice_grid_jquery.js +161 -0
- data/generators/wice_grid_assets_jquery/wice_grid_assets_jquery_generator.rb +35 -0
- data/generators/wice_grid_assets_prototype/USAGE +8 -0
- data/generators/wice_grid_assets_prototype/templates/javascripts/calendarview.js +1168 -0
- data/generators/wice_grid_assets_prototype/templates/javascripts/wice_grid_prototype.js +153 -0
- data/generators/wice_grid_assets_prototype/templates/stylesheets/calendarview.css +107 -0
- data/generators/wice_grid_assets_prototype/wice_grid_assets_prototype_generator.rb +37 -0
- data/init.rb +1 -0
- data/install.rb +1 -0
- data/lib/grid_output_buffer.rb +52 -0
- data/lib/grid_renderer.rb +531 -0
- data/lib/helpers/js_calendar_helpers.rb +188 -0
- data/lib/helpers/wice_grid_misc_view_helpers.rb +113 -0
- data/lib/helpers/wice_grid_serialized_queries_view_helpers.rb +82 -0
- data/lib/helpers/wice_grid_view_helpers.rb +781 -0
- data/lib/js_adaptors/jquery_adaptor.rb +145 -0
- data/lib/js_adaptors/js_adaptor.rb +12 -0
- data/lib/js_adaptors/prototype_adaptor.rb +168 -0
- data/lib/table_column_matrix.rb +51 -0
- data/lib/view_columns.rb +469 -0
- data/lib/views/create.rjs +13 -0
- data/lib/views/delete.rjs +12 -0
- data/lib/wice_grid.rb +809 -0
- data/lib/wice_grid_controller.rb +165 -0
- data/lib/wice_grid_core_ext.rb +179 -0
- data/lib/wice_grid_misc.rb +99 -0
- data/lib/wice_grid_serialized_queries_controller.rb +77 -0
- data/lib/wice_grid_serialized_query.rb +14 -0
- data/lib/wice_grid_spreadsheet.rb +33 -0
- data/tasks/wice_grid_tasks.rake +28 -0
- data/test/.gitignore +2 -0
- data/test/database.yml +21 -0
- data/test/schema.rb +33 -0
- data/test/test_helper.rb +89 -0
- data/test/views/projects_and_people_grid.html.erb +12 -0
- data/test/views/projects_and_people_grid_invalid.html.erb +12 -0
- data/test/views/simple_projects_grid.html.erb +9 -0
- data/test/wice_grid_core_ext_test.rb +183 -0
- data/test/wice_grid_functional_test.rb +68 -0
- data/test/wice_grid_misc_test.rb +41 -0
- data/test/wice_grid_test.rb +42 -0
- data/test/wice_grid_view_helper_test.rb +12 -0
- data/uninstall.rb +1 -0
- data/wice_grid_mongoid.gemspec +111 -0
- metadata +141 -0
data/Rakefile
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/testtask'
|
3
|
+
require 'rake/rdoctask'
|
4
|
+
|
5
|
+
desc 'Default: run unit tests.'
|
6
|
+
task :default => :test
|
7
|
+
|
8
|
+
desc 'Test the wice_grid plugin.'
|
9
|
+
Rake::TestTask.new(:test) do |t|
|
10
|
+
t.libs << 'lib'
|
11
|
+
t.pattern = 'test/**/*_test.rb'
|
12
|
+
t.verbose = true
|
13
|
+
end
|
14
|
+
|
15
|
+
desc 'Generate documentation for the wice_grid plugin.'
|
16
|
+
Rake::RDocTask.new(:rdoc) do |rdoc|
|
17
|
+
rdoc.rdoc_dir = 'rdoc'
|
18
|
+
rdoc.title = 'WiceGrid for Mongoid'
|
19
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
20
|
+
rdoc.rdoc_files.include('README.rdoc')
|
21
|
+
rdoc.rdoc_files.include('SAVED_QUERIES_HOWTO.rdoc')
|
22
|
+
rdoc.rdoc_files.include('CHANGELOG')
|
23
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
24
|
+
end
|
25
|
+
|
26
|
+
begin
|
27
|
+
require 'jeweler'
|
28
|
+
Jeweler::Tasks.new do |gem|
|
29
|
+
gem.name = "wice_grid_mongoid"
|
30
|
+
gem.summary = %Q{Rails Grid Plugin}
|
31
|
+
gem.description = %Q{A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters }
|
32
|
+
gem.email = ["yuri.leikind@gmail.com", "aleksandr.furmanov@gmail.com"]
|
33
|
+
gem.homepage = "http://github.com/afurmanov/wice_grid"
|
34
|
+
gem.authors = ["Yuri Leikind", "Aleksandr Furmanov"]
|
35
|
+
#gem.add_development_dependency "will_paginate", ">= 2.3.2"
|
36
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
37
|
+
end
|
38
|
+
Jeweler::GemcutterTasks.new
|
39
|
+
rescue LoadError
|
40
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
41
|
+
end
|
42
|
+
|
@@ -0,0 +1,123 @@
|
|
1
|
+
== Saving Queries How-To
|
2
|
+
|
3
|
+
WiceGrid allows to save the state of filters as a custom query and later restore it from the list of saved queries.
|
4
|
+
|
5
|
+
=== Step 1: Create the database table to store queries
|
6
|
+
|
7
|
+
To get started really fast create the database table to store queries with the following command:
|
8
|
+
|
9
|
+
rake wice_grid:create_queries_table
|
10
|
+
|
11
|
+
This will create the table, but it is preferred to manually create and run a migration in <tt>db/migrate</tt>:
|
12
|
+
|
13
|
+
class CreateWiceGridSerializedQueriesTable < ActiveRecord::Migration
|
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
|
30
|
+
|
31
|
+
=== Step 2: Create the controller to handle AJAX queries.
|
32
|
+
|
33
|
+
Creation and deletion of queries is implemented as AJAX calls, and a controller is needed to handle these calls. Create an empty controller
|
34
|
+
with any name and add method +save_wice_grid_queries+ to it:
|
35
|
+
|
36
|
+
class QueriesController < ApplicationController
|
37
|
+
save_wice_grid_queries
|
38
|
+
end
|
39
|
+
|
40
|
+
This is it. The controller now has the required action methods.
|
41
|
+
|
42
|
+
=== Step 3: Add routes
|
43
|
+
|
44
|
+
If the name of the query controller is QueriesController, add the following to <tt>routes.rb</tt>:
|
45
|
+
|
46
|
+
Wice::define_routes(map, 'queries')
|
47
|
+
|
48
|
+
=== Step 4: Add the saved query panel to the view.
|
49
|
+
|
50
|
+
To show the list of saved queries and the form to create new queries in a view, add the following helper to the view:
|
51
|
+
|
52
|
+
<%= saved_queries_panel(@grid_object) %>
|
53
|
+
|
54
|
+
Voila!
|
55
|
+
|
56
|
+
Just like WiceGrid itself, the query panel contains no forms and is thus form-friendly.
|
57
|
+
|
58
|
+
*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
|
+
with saved queries it is important to define different names! (use parameter <tt>:name</tt> in +initialize_grid+)
|
60
|
+
|
61
|
+
It is also possible to initialize a grid with an initial saved query providing the id of the query record or the ActiveRecord
|
62
|
+
itself to parameter <tt>saved_query</tt>:
|
63
|
+
|
64
|
+
@products_grid = initialize_grid(Product,
|
65
|
+
:name => 'prod_grid',
|
66
|
+
:saved_query => SavedQuery.find_by_id_and_grid_name(12, 'prod_grid') )
|
67
|
+
|
68
|
+
|
69
|
+
== Adding Application Specific Logic to Saving/Restoring Queries
|
70
|
+
|
71
|
+
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
|
+
|
73
|
+
Copy <tt>vendor/plugins/wice_grid/lib/wice_grid_serialized_query.rb</tt> to <tt>app/models/</tt>, rename the file and the class to your liking.
|
74
|
+
|
75
|
+
Next, modify the model to suit your needs. Right after copying and renaming the model to SavedQuery it looks like this:
|
76
|
+
|
77
|
+
class SavedQuery < ActiveRecord::Base #:nodoc:
|
78
|
+
serialize :query
|
79
|
+
|
80
|
+
validates_uniqueness_of :name, :scope => :grid_name, :on => :create, :message => ::Wice::Defaults::VALIDATES_UNIQUENESS_ERROR
|
81
|
+
validates_presence_of :name, :message => ::Wice::Defaults::VALIDATES_PRESENCE_ERROR
|
82
|
+
|
83
|
+
def self.list(name, controller)
|
84
|
+
conditions = {:grid_name => name}
|
85
|
+
self.find(:all, :conditions => conditions)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
It is required that the model provides class method +list+ which accepts two parameters: the name of the WiceGrid instance and the controller
|
90
|
+
object, and returns a list of queries. The controller object is needed to provide the application context. For instance, if it is needed to
|
91
|
+
store queries for each user, we could add +user_id+ to the table and modify the code so it looks like the following:
|
92
|
+
|
93
|
+
class SavedQuery < ActiveRecord::Base
|
94
|
+
serialize :query
|
95
|
+
|
96
|
+
# the scope is changed to include user_id
|
97
|
+
validates_uniqueness_of :name, :scope => [:grid_name, :user_id], :on => :create, :message => 'A query with this name already exists'
|
98
|
+
validates_presence_of :name, :message => 'Please submit the name of the query'
|
99
|
+
|
100
|
+
belongs_to :identity # !
|
101
|
+
|
102
|
+
def self.list(name, controller)
|
103
|
+
conditions = {:grid_name => name}
|
104
|
+
if controller.current_user # !
|
105
|
+
conditions[:user_id] = controller.current_user.id # provided that method current_user is defined in ApplicationController and returns the currrent user.
|
106
|
+
end
|
107
|
+
self.find(:all, :conditions => conditions)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
The following step is to make sure that a new query is saved with the correct +user_id+. To do so, change the helper
|
112
|
+
<tt>saved_queries_panel(@grid_object)</tt> to the following:
|
113
|
+
|
114
|
+
|
115
|
+
<%= saved_queries_panel(@identities_grid, :extra_parameters => {:user_id => @current_user.id}) %>
|
116
|
+
|
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
|
118
|
+
<tt>attributes=</tt> method of the query object.
|
119
|
+
|
120
|
+
Finally, let WiceGrid know which model to use for saving queries by changing constant +QUERY_STORE_MODEL+
|
121
|
+
in <tt>lib/wice_grid_config.rb</tt> to the name of the custom model (as a string), in the above example this would look like the following:
|
122
|
+
|
123
|
+
QUERY_STORE_MODEL = 'SavedQuery'
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.5.6
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,215 @@
|
|
1
|
+
if defined?(Wice::Defaults)
|
2
|
+
|
3
|
+
Wice::Defaults::JS_FRAMEWORK = :<%= active_js_framework %>
|
4
|
+
# Wice::Defaults::JS_FRAMEWORK = :<%= inactive_js_framework %>
|
5
|
+
|
6
|
+
# Style of the view helper.
|
7
|
+
# +false+ is a usual view helper.
|
8
|
+
# +true+ will allow to embed erb content in column (cell) definitions.
|
9
|
+
Wice::Defaults::ERB_MODE = false
|
10
|
+
|
11
|
+
# Default number of rows to show per page.
|
12
|
+
Wice::Defaults::PER_PAGE = 20
|
13
|
+
|
14
|
+
# Default order direction
|
15
|
+
Wice::Defaults::ORDER_DIRECTION = 'asc'
|
16
|
+
|
17
|
+
# Default name for a grid. A grid name is the basis for a lot of
|
18
|
+
# names including parameter names, DOM IDs, etc
|
19
|
+
# The shorter the name is the shorter the request URI will be.
|
20
|
+
Wice::Defaults::GRID_NAME = 'grid'
|
21
|
+
|
22
|
+
# If REUSE_LAST_COLUMN_FOR_FILTER_ICONS is true and the last column doesn't have any filter and column name, it will be used
|
23
|
+
# for filter related icons (filter icon, reset icon, show/hide icon), otherwise an additional table column is added.
|
24
|
+
Wice::Defaults::REUSE_LAST_COLUMN_FOR_FILTER_ICONS = true
|
25
|
+
|
26
|
+
Wice::Defaults::SHOW_HIDE_FILTER_ICON = 'icons/grid/page_white_find.png'
|
27
|
+
|
28
|
+
|
29
|
+
# Icon to trigger filtering.
|
30
|
+
Wice::Defaults::FILTER_ICON = 'icons/grid/table_refresh.png'
|
31
|
+
|
32
|
+
# Icon to reset the filter.
|
33
|
+
Wice::Defaults::RESET_ICON = "icons/grid/table.png"
|
34
|
+
|
35
|
+
# Icon to reset the filter.
|
36
|
+
Wice::Defaults::TOGGLE_MULTI_SELECT_ICON = "/images/icons/grid/expand.png"
|
37
|
+
|
38
|
+
# CSV Export icon.
|
39
|
+
Wice::Defaults::CSV_EXPORT_ICON = "/images/icons/grid/page_white_excel.png"
|
40
|
+
|
41
|
+
# Tick-All icon for the action column.
|
42
|
+
Wice::Defaults::TICK_ALL_ICON = "/images/icons/grid/tick_all.png"
|
43
|
+
|
44
|
+
# Untick-All icon for the action column.
|
45
|
+
Wice::Defaults::UNTICK_ALL_ICON = "/images/icons/grid/untick_all.png"
|
46
|
+
|
47
|
+
# The label of the first option of a custom dropdown list meaning 'All items'
|
48
|
+
Wice::Defaults::CUSTOM_FILTER_ALL_LABEL = '--'
|
49
|
+
|
50
|
+
|
51
|
+
# Allow switching between a single and multiple selection modes in custom filters (dropdown boxes)
|
52
|
+
Wice::Defaults::ALLOW_MULTIPLE_SELECTION = true
|
53
|
+
|
54
|
+
# Show the upper pagination panel by default or not
|
55
|
+
Wice::Defaults::SHOW_UPPER_PAGINATION_PANEL = false
|
56
|
+
|
57
|
+
# Enabling CSV export by default
|
58
|
+
Wice::Defaults::ENABLE_EXPORT_TO_CSV = false
|
59
|
+
|
60
|
+
|
61
|
+
# The strategy when to show the filter.
|
62
|
+
# * <tt>:when_filtered</tt> - when the table is the result of filtering
|
63
|
+
# * <tt>:always</tt> - show the filter always
|
64
|
+
# * <tt>:no</tt> - never show the filter
|
65
|
+
Wice::Defaults::SHOW_FILTER = :always
|
66
|
+
|
67
|
+
# A boolean value specifying if a change in a filter triggers reloading of the grid.
|
68
|
+
Wice::Defaults::AUTO_RELOAD = false
|
69
|
+
|
70
|
+
|
71
|
+
# SQL operator used for matching strings in string filters.
|
72
|
+
Wice::Defaults::STRING_MATCHING_OPERATOR = 'LIKE'
|
73
|
+
# STRING_MATCHING_OPERATOR = 'ILIKE' # Use this for Postgresql case-insensitive matching.
|
74
|
+
|
75
|
+
|
76
|
+
# Defining one string matching operator globally for the whole application turns is not enough
|
77
|
+
# when you connect to two databases one of which is MySQL and the other is Postgresql.
|
78
|
+
# If the key for an adapter is missing it will fall back to Wice::Defaults::STRING_MATCHING_OPERATOR
|
79
|
+
Wice::Defaults::STRING_MATCHING_OPERATORS = {
|
80
|
+
'ActiveRecord::ConnectionAdapters::MysqlAdapter' => 'LIKE',
|
81
|
+
'ActiveRecord::ConnectionAdapters::PostgreSQLAdapter' => 'ILIKE'
|
82
|
+
}
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
87
|
+
# Advanced Filters #
|
88
|
+
|
89
|
+
# Switch of the negation checkbox in all text filters
|
90
|
+
Wice::Defaults::NEGATION_IN_STRING_FILTERS = false
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
95
|
+
# Showing All Queries #
|
96
|
+
|
97
|
+
# Enable or disable showing all queries (non-paginated table)
|
98
|
+
Wice::Defaults::ALLOW_SHOWING_ALL_QUERIES = true
|
99
|
+
|
100
|
+
# If number of all queries is more than this value, the user will be given a warning message
|
101
|
+
Wice::Defaults::START_SHOWING_WARNING_FROM = 100
|
102
|
+
|
103
|
+
|
104
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
105
|
+
# Saving Queries #
|
106
|
+
|
107
|
+
# Icon to delete a saved query
|
108
|
+
Wice::Defaults::DELETE_QUERY_ICON = 'icons/grid/delete.png'
|
109
|
+
|
110
|
+
# ActiveRecord model to store queries. Read the documentation for details
|
111
|
+
# QUERY_STORE_MODEL = 'WiceGridSerializedQuery'
|
112
|
+
Wice::Defaults::QUERY_STORE_MODEL = 'WiceGridSerializedQuery'
|
113
|
+
|
114
|
+
|
115
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
116
|
+
# Here go settings related to the calendar helpers #
|
117
|
+
|
118
|
+
# The default style of the date and datetime helper
|
119
|
+
# * <tt>:calendar</tt> - JS calendar
|
120
|
+
# * <tt>:standard</tt> - standard Rails date and datetime helpers
|
121
|
+
Wice::Defaults::HELPER_STYLE = :calendar
|
122
|
+
|
123
|
+
# Format of the datetime displayed.
|
124
|
+
# If you change the format, make sure to check if +DATETIME_PARSER+ can still parse this string.
|
125
|
+
Wice::Defaults::DATETIME_FORMAT = "%Y-%m-%d %H:%M"
|
126
|
+
|
127
|
+
# Format of the date displayed.
|
128
|
+
# If you change the format, make sure to check if +DATE_PARSER+ can still parse this string.
|
129
|
+
Wice::Defaults::DATE_FORMAT = "%Y-%m-%d"
|
130
|
+
|
131
|
+
# Format of the date displayed in jQuery's Datepicker
|
132
|
+
# If you change the format, make sure to check if +DATE_PARSER+ can still parse this string.
|
133
|
+
Wice::Defaults::DATE_FORMAT_JQUERY = "yy-mm-dd"
|
134
|
+
|
135
|
+
|
136
|
+
# With Calendar helpers enabled the parameter sent is the string displayed. This lambda will be given a date string in the
|
137
|
+
# format defined by +DATETIME_FORMAT+ and must generate a DateTime object.
|
138
|
+
# In many cases <tt>Time.zone.parse</tt> is enough, for instance, <tt>%Y-%m-%d</tt>. If you change the format, make sure to check this code
|
139
|
+
# and modify it if needed.
|
140
|
+
Wice::Defaults::DATETIME_PARSER = lambda{|datetime_string| Time.zone.parse(datetime_string) }
|
141
|
+
|
142
|
+
# With Calendar helpers enabled the parameter sent is the string displayed. This lambda will be given a date string in the
|
143
|
+
# format defined by +DATETIME+ and must generate a Date object.
|
144
|
+
# In many cases <tt>Date.parse</tt> is enough, for instance, <tt>%Y-%m-%d</tt>. If you change the format, make sure to check this code
|
145
|
+
# and modify it if needed.
|
146
|
+
Wice::Defaults::DATE_PARSER = lambda{|date_string| Date.parse(date_string) }
|
147
|
+
|
148
|
+
# Icon to popup the calendar.
|
149
|
+
Wice::Defaults::CALENDAR_ICON = "/images/icons/grid/calendar_view_month.png"
|
150
|
+
|
151
|
+
# popup calendar will be shown relative to the popup trigger element or to the mouse pointer
|
152
|
+
Wice::Defaults::POPUP_PLACEMENT_STRATEGY = :trigger # :pointer
|
153
|
+
|
154
|
+
######## Messages ########
|
155
|
+
|
156
|
+
Wice::Defaults::SHOW_FILTER_TOOLTIP = 'Show filter'
|
157
|
+
Wice::Defaults::HIDE_FILTER_TOOLTIP = 'Hide filter'
|
158
|
+
Wice::Defaults::CSV_EXPORT_TOOLTIP = 'Export to CSV'
|
159
|
+
|
160
|
+
Wice::Defaults::FILTER_TOOLTIP = "Filter"
|
161
|
+
Wice::Defaults::RESET_FILTER_TOOLTIP = "Reset"
|
162
|
+
|
163
|
+
Wice::Defaults::BOOLEAN_FILTER_TRUE_LABEL = 'yes'
|
164
|
+
Wice::Defaults::BOOLEAN_FILTER_FALSE_LABEL = 'no'
|
165
|
+
|
166
|
+
Wice::Defaults::PREVIOUS_LABEL = '« Previous'
|
167
|
+
Wice::Defaults::NEXT_LABEL = 'Next »'
|
168
|
+
|
169
|
+
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
170
|
+
Wice::Defaults::DATE_SELECTOR_TOOLTIP_FROM = 'From'
|
171
|
+
# Title of the icon clicking on which will show the calendar to set the TO date.
|
172
|
+
Wice::Defaults::DATE_SELECTOR_TOOLTIP_TO = 'To'
|
173
|
+
|
174
|
+
# The title of the checkox to turn on negation
|
175
|
+
Wice::Defaults::NEGATION_CHECKBOX_TITLE = 'Exclude'
|
176
|
+
|
177
|
+
# link to switch to "show all records"
|
178
|
+
Wice::Defaults::SHOW_ALL_RECORDS_LABEL = 'show all'
|
179
|
+
|
180
|
+
# tooltip for the link to switch to "show all records"
|
181
|
+
Wice::Defaults::SHOW_ALL_RECORDS_TOOLTIP = 'Show all records'
|
182
|
+
|
183
|
+
# Warning message shown when the user wants to switch to all-records mode
|
184
|
+
Wice::Defaults::ALL_QUERIES_WARNING = 'Are you sure you want to display all records?'
|
185
|
+
|
186
|
+
# link to paginated view
|
187
|
+
Wice::Defaults::SWITCH_BACK_TO_PAGINATED_MODE_LABEL = "back to paginated view"
|
188
|
+
|
189
|
+
# tooltip for the link to paginated view
|
190
|
+
Wice::Defaults::SWITCH_BACK_TO_PAGINATED_MODE_TOOLTIP = "Switch back to the view with pages"
|
191
|
+
|
192
|
+
# Title of the date string.
|
193
|
+
Wice::Defaults::DATE_STRING_TOOLTIP = 'Click to delete'
|
194
|
+
|
195
|
+
|
196
|
+
Wice::Defaults::SAVED_QUERY_PANEL_TITLE = 'Saved Queries'
|
197
|
+
Wice::Defaults::SAVE_QUERY_BUTTON_LABEL = 'Save the state of filters'
|
198
|
+
|
199
|
+
Wice::Defaults::SAVED_QUERY_DELETION_CONFIRMATION = 'Are you sure?'
|
200
|
+
Wice::Defaults::SAVED_QUERY_DELETION_LINK_TITLE = 'Delete query'
|
201
|
+
Wice::Defaults::SAVED_QUERY_LINK_TITLE = 'Load query'
|
202
|
+
|
203
|
+
Wice::Defaults::VALIDATES_UNIQUENESS_ERROR = "A query with this name already exists"
|
204
|
+
Wice::Defaults::VALIDATES_PRESENCE_ERROR = "Please sumbit the name of the custom query"
|
205
|
+
|
206
|
+
Wice::Defaults::QUERY_DELETED_MESSAGE = "Saved query deleted."
|
207
|
+
Wice::Defaults::QUERY_SAVED_MESSAGE = "Query saved."
|
208
|
+
|
209
|
+
Wice::Defaults::SELECT_ALL = "Select all"
|
210
|
+
Wice::Defaults::DESELECT_ALL = "Remove selection"
|
211
|
+
|
212
|
+
######## Messages END ########
|
213
|
+
|
214
|
+
|
215
|
+
end
|
@@ -0,0 +1,269 @@
|
|
1
|
+
en:
|
2
|
+
date:
|
3
|
+
order:
|
4
|
+
- :year
|
5
|
+
- :month
|
6
|
+
- :day
|
7
|
+
wice_grid:
|
8
|
+
show_filter_tooltip: Show filter
|
9
|
+
hide_filter_tooltip: Hide filter
|
10
|
+
csv_export_tooltip: Export to CSV
|
11
|
+
filter_tooltip: Filter
|
12
|
+
reset_filter_tooltip: Reset
|
13
|
+
boolean_filter_true_label: yes
|
14
|
+
boolean_filter_false_label: no
|
15
|
+
previous_label: « Previous
|
16
|
+
next_label: Next »
|
17
|
+
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
18
|
+
date_selector_tooltip_from: From
|
19
|
+
# Title of the icon clicking on which will show the calendar to set the TO date.
|
20
|
+
date_selector_tooltip_to: To
|
21
|
+
# The title of the checkox to turn on negation
|
22
|
+
negation_checkbox_title: Exclude
|
23
|
+
# link to switch to show all records
|
24
|
+
show_all_records_label: show all
|
25
|
+
# tooltip for the link to switch to show all records
|
26
|
+
show_all_records_tooltip: Show all records
|
27
|
+
# Warning message shown when the user wants to switch to all-records mode
|
28
|
+
all_queries_warning: Are you sure you want to display all records?
|
29
|
+
# link to paginated view
|
30
|
+
switch_back_to_paginated_mode_label: back to paginated view
|
31
|
+
# tooltip for the link to paginated view
|
32
|
+
switch_back_to_paginated_mode_tooltip: Switch back to the view with pages
|
33
|
+
# Title of the date string.
|
34
|
+
date_string_tooltip: Click to delete
|
35
|
+
saved_query_panel_title: Saved Queries
|
36
|
+
save_query_button_label: Save the state of filters
|
37
|
+
saved_query_deletion_confirmation: Are you sure?
|
38
|
+
saved_query_deletion_link_title: Delete query
|
39
|
+
saved_query_link_title: Load query
|
40
|
+
validates_uniqueness_error: A query with this name already exists
|
41
|
+
validates_presence_error: Please submit the name of the custom query
|
42
|
+
query_deleted_message: Saved query deleted.
|
43
|
+
query_saved_message: Query saved.
|
44
|
+
select_all: Select all
|
45
|
+
deselect_all: Remove selection
|
46
|
+
|
47
|
+
|
48
|
+
is:
|
49
|
+
date:
|
50
|
+
order:
|
51
|
+
- :year
|
52
|
+
- :month
|
53
|
+
- :day
|
54
|
+
wice_grid:
|
55
|
+
show_filter_tooltip: Sýna síumöguleika
|
56
|
+
hide_filter_tooltip: Fela síumoguleika
|
57
|
+
csv_export_tooltip: Flytja út CSV
|
58
|
+
filter_tooltip: Sía
|
59
|
+
reset_filter_tooltip: Hreinsa
|
60
|
+
boolean_filter_true_label: Já
|
61
|
+
boolean_filter_false_label: Nei
|
62
|
+
previous_label: « Fyrri síða
|
63
|
+
next_label: Næsta síða »
|
64
|
+
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
65
|
+
date_selector_tooltip_from: Frá
|
66
|
+
# Title of the icon clicking on which will show the calendar to set the TO date.
|
67
|
+
date_selector_tooltip_to: Til
|
68
|
+
# The title of the checkox to turn on negation
|
69
|
+
negation_checkbox_title: Undanskilja
|
70
|
+
# link to switch to show all records
|
71
|
+
show_all_records_label: Sýna allt
|
72
|
+
# tooltip for the link to switch to show all records
|
73
|
+
show_all_records_tooltip: Sýna öll gögn
|
74
|
+
# Warning message shown when the user wants to switch to all-records mode
|
75
|
+
all_queries_warning: Ertu viss um að þú viljir láta sýna öll gögn?
|
76
|
+
# link to paginated view
|
77
|
+
switch_back_to_paginated_mode_label: Aftur til síðuhorfs
|
78
|
+
# tooltip for the link to paginated view
|
79
|
+
switch_back_to_paginated_mode_tooltip: Aftur til síðuhorfs
|
80
|
+
# Title of the date string.
|
81
|
+
date_string_tooltip: Smella á til að eyða
|
82
|
+
saved_query_panel_title: Vistaðar leitarskipanir
|
83
|
+
save_query_button_label: Vista síuval
|
84
|
+
saved_query_deletion_confirmation: Ertu viss?
|
85
|
+
saved_query_deletion_link_title: Eyða leitarskipun
|
86
|
+
saved_query_link_title: Hlaða leitarskipun
|
87
|
+
validates_uniqueness_error: Leitarskipun með þessu nafni er þegar til
|
88
|
+
validates_presence_error: Vinsamlegast gefið heiti fyrir leitarskipun
|
89
|
+
query_deleted_message: Vistaðri leitarskipun hefur verið eytt
|
90
|
+
query_saved_message: leitaskipun hefur verið vistuð
|
91
|
+
|
92
|
+
nl:
|
93
|
+
date:
|
94
|
+
order:
|
95
|
+
- :year
|
96
|
+
- :month
|
97
|
+
- :day
|
98
|
+
wice_grid:
|
99
|
+
show_filter_tooltip: Filter tonen
|
100
|
+
hide_filter_tooltip: Filter verbergen
|
101
|
+
csv_export_tooltip: Als CSV exporteren
|
102
|
+
filter_tooltip: Filter
|
103
|
+
reset_filter_tooltip: Terugstellen
|
104
|
+
boolean_filter_true_label: ja
|
105
|
+
boolean_filter_false_label: neen
|
106
|
+
previous_label: « Vorige
|
107
|
+
next_label: Volgende »
|
108
|
+
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
109
|
+
date_selector_tooltip_from: Vanaf
|
110
|
+
# Title of the icon clicking on which will show the calendar to set the TO date.
|
111
|
+
date_selector_tooltip_to: Tot
|
112
|
+
# The title of the checkox to turn on negation
|
113
|
+
negation_checkbox_title: Uitsluiten
|
114
|
+
# link to switch to show all records
|
115
|
+
show_all_records_label: Alle rijen tonen
|
116
|
+
# tooltip for the link to switch to show all records
|
117
|
+
show_all_records_tooltip: Alle rijen tonen
|
118
|
+
# Warning message shown when the user wants to switch to all-records mode
|
119
|
+
all_queries_warning: Bent u zeker dat u alle rijen wilt tonen?
|
120
|
+
# link to paginated view
|
121
|
+
switch_back_to_paginated_mode_label: Terug naar pagina's
|
122
|
+
# tooltip for the link to paginated view
|
123
|
+
switch_back_to_paginated_mode_tooltip: Terug naar pagina's
|
124
|
+
# Title of the date string.
|
125
|
+
date_string_tooltip: Klik om te verwijderen
|
126
|
+
saved_query_panel_title: Opgeslagen query's
|
127
|
+
save_query_button_label: Query opslaan
|
128
|
+
saved_query_deletion_confirmation: Bent u zeker?
|
129
|
+
saved_query_deletion_link_title: Query verwijderen
|
130
|
+
saved_query_link_title: Query laden
|
131
|
+
validates_uniqueness_error: Deze query bestaat reeds
|
132
|
+
validates_presence_error: Gelieve de naam van de query in te vullen
|
133
|
+
query_deleted_message: Opgeslagen query verwijderd.
|
134
|
+
query_saved_message: Query opgeslagen
|
135
|
+
|
136
|
+
fr:
|
137
|
+
date:
|
138
|
+
order:
|
139
|
+
- :year
|
140
|
+
- :month
|
141
|
+
- :day
|
142
|
+
wice_grid:
|
143
|
+
show_filter_tooltip: Afficher le filtre
|
144
|
+
hide_filter_tooltip: Cacher le filtrer
|
145
|
+
csv_export_tooltip: Exporter en CSV
|
146
|
+
filter_tooltip: Filtrer
|
147
|
+
reset_filter_tooltip: Effacer
|
148
|
+
boolean_filter_true_label: oui
|
149
|
+
boolean_filter_false_label: non
|
150
|
+
previous_label: « Page précédente
|
151
|
+
next_label: Page suivante »
|
152
|
+
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
153
|
+
date_selector_tooltip_from: De
|
154
|
+
# Title of the icon clicking on which will show the calendar to set the TO date.
|
155
|
+
date_selector_tooltip_to: à
|
156
|
+
# The title of the checkox to turn on negation
|
157
|
+
negation_checkbox_title: Exclure
|
158
|
+
# link to switch to show all records
|
159
|
+
show_all_records_label: Voir tous
|
160
|
+
# tooltip for the link to switch to show all records
|
161
|
+
show_all_records_tooltip: Voir tous les enregistrements
|
162
|
+
# Warning message shown when the user wants to switch to all-records mode
|
163
|
+
all_queries_warning: Etes-vous certain de vouloir afficher tous les enregistrements?
|
164
|
+
# link to paginated view
|
165
|
+
switch_back_to_paginated_mode_label: Retour à la vue paginée
|
166
|
+
# tooltip for the link to paginated view
|
167
|
+
switch_back_to_paginated_mode_tooltip: Retour à la vue par pages
|
168
|
+
# Title of the date string.
|
169
|
+
date_string_tooltip: Cliquez pour effacer
|
170
|
+
saved_query_panel_title: Requêtes sauvées
|
171
|
+
save_query_button_label: Sauver l'état des filtres
|
172
|
+
saved_query_deletion_confirmation: Etes vous sûr?
|
173
|
+
saved_query_deletion_link_title: Effacer la requête
|
174
|
+
saved_query_link_title: Charger la requête
|
175
|
+
validates_uniqueness_error: Un requête existante porte déjà ce nom
|
176
|
+
validates_presence_error: Veuillez indiquer le nom de la requête que vous souhaitez sauver
|
177
|
+
query_deleted_message: La requête a été effacée.
|
178
|
+
query_saved_message: La requête a été sauvée.
|
179
|
+
|
180
|
+
ru:
|
181
|
+
date:
|
182
|
+
order:
|
183
|
+
- :year
|
184
|
+
- :month
|
185
|
+
- :day
|
186
|
+
wice_grid:
|
187
|
+
show_filter_tooltip: Показать фильтр
|
188
|
+
hide_filter_tooltip: Спрятать фильтр
|
189
|
+
csv_export_tooltip: Экспорт в CSV
|
190
|
+
filter_tooltip: Фильтровать
|
191
|
+
reset_filter_tooltip: Сброс
|
192
|
+
boolean_filter_true_label: да
|
193
|
+
boolean_filter_false_label: нет
|
194
|
+
previous_label: « Предыдущая
|
195
|
+
next_label: Следующая »
|
196
|
+
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
197
|
+
date_selector_tooltip_from: С
|
198
|
+
# Title of the icon clicking on which will show the calendar to set the TO date.
|
199
|
+
date_selector_tooltip_to: До
|
200
|
+
# The title of the checkox to turn on negation
|
201
|
+
negation_checkbox_title: Исключая строки
|
202
|
+
# link to switch to show all records
|
203
|
+
show_all_records_label: показать все
|
204
|
+
# tooltip for the link to switch to show all records
|
205
|
+
show_all_records_tooltip: Показать все записи
|
206
|
+
# Warning message shown when the user wants to switch to all-records mode
|
207
|
+
all_queries_warning: Вы уверены в том, что хотите отобразить все записи?
|
208
|
+
# link to paginated view
|
209
|
+
switch_back_to_paginated_mode_label: Назад к постраничному выводу
|
210
|
+
# tooltip for the link to paginated view
|
211
|
+
switch_back_to_paginated_mode_tooltip: Назад к постраничному выводу
|
212
|
+
# Title of the date string.
|
213
|
+
date_string_tooltip: Кликните, чтобы удалить дату
|
214
|
+
saved_query_panel_title: Сохранённые фильтры
|
215
|
+
save_query_button_label: Сохранить фильтр
|
216
|
+
saved_query_deletion_confirmation: Вы уверены?
|
217
|
+
saved_query_deletion_link_title: Удалить сохранённый фильтр
|
218
|
+
saved_query_link_title: Загрузить сохранённый фильтр
|
219
|
+
validates_uniqueness_error: Сохранённый фильтр с таким именем уже существует
|
220
|
+
validates_presence_error: Пожалуйста введите имя сохраняемого фильтра
|
221
|
+
query_deleted_message: Сохранённый фильтр удалён.
|
222
|
+
query_saved_message: Сохранённый фильтр сохранён.
|
223
|
+
select_all: Отметить все
|
224
|
+
deselect_all: Убрать выделение
|
225
|
+
|
226
|
+
|
227
|
+
pt:
|
228
|
+
date:
|
229
|
+
order:
|
230
|
+
- :year
|
231
|
+
- :month
|
232
|
+
- :day
|
233
|
+
wice_grid:
|
234
|
+
show_filter_tooltip: Mostrar o filtro
|
235
|
+
hide_filter_tooltip: Esconder o filtro
|
236
|
+
csv_export_tooltip: Exportar em CSV
|
237
|
+
filter_tooltip: Filtrar
|
238
|
+
reset_filter_tooltip: Reinicializar
|
239
|
+
boolean_filter_true_label: sim
|
240
|
+
boolean_filter_false_label: não
|
241
|
+
previous_label: « Página precedente
|
242
|
+
next_label: Página seguinte »
|
243
|
+
# Title of the icon clicking on which will show the calendar to set the FROM date.
|
244
|
+
date_selector_tooltip_from: De
|
245
|
+
# Title of the icon clicking on which will show the calendar to set the TO date.
|
246
|
+
date_selector_tooltip_to: a
|
247
|
+
# The title of the checkox to turn on negation
|
248
|
+
negation_checkbox_title: Excluir
|
249
|
+
# link to switch to show all records
|
250
|
+
show_all_records_label: Ver todos
|
251
|
+
# tooltip for the link to switch to show all records
|
252
|
+
show_all_records_tooltip: Ver todos os registos
|
253
|
+
# Warning message shown when the user wants to switch to all-records mode
|
254
|
+
all_queries_warning: Tem a certeza de querer visualizar todos os registos?
|
255
|
+
# link to paginated view
|
256
|
+
switch_back_to_paginated_mode_label: Retorno à vista paginada
|
257
|
+
# tooltip for the link to paginated view
|
258
|
+
switch_back_to_paginated_mode_tooltip: Retorno à vista por página
|
259
|
+
# Title of the date string.
|
260
|
+
date_string_tooltip: Cliquar para apagar
|
261
|
+
saved_query_panel_title: Queries gravadas
|
262
|
+
save_query_button_label: Gravar o estado dos filtros
|
263
|
+
saved_query_deletion_confirmation: Tem a certeza?
|
264
|
+
saved_query_deletion_link_title: Apagar a query
|
265
|
+
saved_query_link_title: Caregar a query
|
266
|
+
validates_uniqueness_error: Já existe uma query com o mesmo nome
|
267
|
+
validates_presence_error: Queira indicar o nome da query que deseja gravar
|
268
|
+
query_deleted_message: A query foi apagada.
|
269
|
+
query_saved_message: A query foi gravada.
|