active_scaffold 3.0.12 → 3.0.21
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/README +21 -11
- data/frontends/default/images/close_touch.png +0 -0
- data/frontends/default/javascripts/jquery/active_scaffold.js +187 -99
- data/frontends/default/javascripts/prototype/active_scaffold.js +105 -33
- data/frontends/default/javascripts/prototype/dhtml_history.js +80 -77
- data/frontends/default/stylesheets/stylesheet.css +121 -2
- data/frontends/default/views/_action_group.html.erb +6 -2
- data/frontends/default/views/_base_form.html.erb +11 -5
- data/frontends/default/views/_base_form.html.erb~ +42 -0
- data/frontends/default/views/_field_search.html.erb +1 -1
- data/frontends/default/views/_form.html.erb +9 -7
- data/frontends/default/views/_form_association.html.erb +8 -3
- data/frontends/default/views/_form_association_footer.html.erb +10 -3
- data/frontends/default/views/_form_attribute.html.erb +8 -3
- data/frontends/default/views/_horizontal_subform.html.erb +12 -2
- data/frontends/default/views/_horizontal_subform_header.html.erb +1 -1
- data/frontends/default/views/_horizontal_subform_record.html.erb +5 -4
- data/frontends/default/views/_list_messages.html.erb +1 -1
- data/frontends/default/views/_list_with_header.html.erb +1 -1
- data/frontends/default/views/_render_field.js.rjs +4 -6
- data/frontends/default/views/_vertical_subform.html.erb +1 -1
- data/frontends/default/views/_vertical_subform_record.html.erb +2 -2
- data/frontends/default/views/on_action_update.js.rjs +3 -1
- data/frontends/default/views/on_mark_all.js.rjs +12 -0
- data/frontends/default/views/on_update.js.rjs +1 -1
- data/frontends/default/views/render_field.js.rjs +1 -0
- data/frontends/default/views/update_column.js.rjs +1 -1
- data/lib/active_scaffold.rb +60 -21
- data/lib/active_scaffold/actions/common_search.rb +2 -2
- data/lib/active_scaffold/actions/core.rb +30 -9
- data/lib/active_scaffold/actions/create.rb +14 -10
- data/lib/active_scaffold/actions/field_search.rb +6 -6
- data/lib/active_scaffold/actions/list.rb +22 -12
- data/lib/active_scaffold/actions/mark.rb +34 -9
- data/lib/active_scaffold/actions/nested.rb +12 -16
- data/lib/active_scaffold/actions/show.rb +2 -2
- data/lib/active_scaffold/actions/subform.rb +15 -8
- data/lib/active_scaffold/actions/update.rb +14 -4
- data/lib/active_scaffold/attribute_params.rb +15 -10
- data/lib/active_scaffold/bridges/bridge.rb +21 -12
- data/lib/active_scaffold/bridges/calendar_date_select/bridge.rb +3 -3
- data/lib/active_scaffold/bridges/cancan/bridge.rb +12 -0
- data/lib/active_scaffold/bridges/cancan/lib/cancan_bridge.rb +107 -0
- data/lib/active_scaffold/bridges/carrierwave/bridge.rb +1 -1
- data/lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge.rb +3 -8
- data/lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge_helpers.rb +1 -15
- data/lib/active_scaffold/bridges/carrierwave/lib/form_ui.rb +23 -13
- data/lib/active_scaffold/bridges/carrierwave/lib/list_ui.rb +1 -1
- data/lib/active_scaffold/bridges/country_helper/bridge.rb +9 -0
- data/lib/active_scaffold/bridges/country_helper/lib/country_helper_bridge.rb +358 -0
- data/lib/active_scaffold/bridges/date_picker/bridge.rb +5 -3
- data/lib/active_scaffold/bridges/date_picker/lib/datepicker_bridge.rb +9 -0
- data/lib/active_scaffold/bridges/dragonfly/bridge.rb +9 -0
- data/lib/active_scaffold/bridges/dragonfly/bridge.rb~ +12 -0
- data/lib/active_scaffold/bridges/dragonfly/lib/dragonfly_bridge.rb +36 -0
- data/lib/active_scaffold/bridges/dragonfly/lib/dragonfly_bridge.rb~ +36 -0
- data/lib/active_scaffold/bridges/dragonfly/lib/dragonfly_bridge_helpers.rb +12 -0
- data/lib/active_scaffold/bridges/dragonfly/lib/dragonfly_bridge_helpers.rb~ +12 -0
- data/lib/active_scaffold/bridges/dragonfly/lib/form_ui.rb +27 -0
- data/lib/active_scaffold/bridges/dragonfly/lib/form_ui.rb~ +27 -0
- data/lib/active_scaffold/bridges/dragonfly/lib/list_ui.rb +16 -0
- data/lib/active_scaffold/bridges/dragonfly/lib/list_ui.rb~ +16 -0
- data/lib/active_scaffold/bridges/paperclip/bridge.rb +1 -1
- data/lib/active_scaffold/bridges/record_select/bridge.rb +5 -0
- data/lib/active_scaffold/bridges/record_select/lib/record_select_bridge.rb +87 -0
- data/lib/active_scaffold/bridges/record_select/lib/record_select_bridge.rb~ +84 -0
- data/lib/active_scaffold/bridges/shared/date_bridge.rb +56 -34
- data/lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb +19 -3
- data/lib/active_scaffold/config/base.rb +4 -4
- data/lib/active_scaffold/config/core.rb +4 -0
- data/lib/active_scaffold/config/create.rb +1 -1
- data/lib/active_scaffold/config/field_search.rb +7 -7
- data/lib/active_scaffold/config/form.rb +8 -2
- data/lib/active_scaffold/config/list.rb +22 -8
- data/lib/active_scaffold/config/mark.rb +18 -5
- data/lib/active_scaffold/config/nested.rb +3 -3
- data/lib/active_scaffold/config/search.rb +1 -1
- data/lib/active_scaffold/config/show.rb +1 -1
- data/lib/active_scaffold/data_structures/action_columns.rb +10 -6
- data/lib/active_scaffold/data_structures/action_link.rb +14 -10
- data/lib/active_scaffold/data_structures/action_links.rb +2 -2
- data/lib/active_scaffold/data_structures/column.rb +25 -11
- data/lib/active_scaffold/data_structures/nested_info.rb +21 -21
- data/lib/active_scaffold/data_structures/set.rb +2 -3
- data/lib/active_scaffold/data_structures/sorting.rb +8 -8
- data/lib/{extensions → active_scaffold/extensions}/action_controller_rendering.rb +3 -1
- data/lib/{extensions → active_scaffold/extensions}/action_view_rendering.rb +31 -33
- data/lib/{extensions → active_scaffold/extensions}/action_view_resolver.rb +0 -0
- data/lib/{extensions → active_scaffold/extensions}/active_association_reflection.rb +0 -0
- data/lib/active_scaffold/extensions/active_record_offset.rb +12 -0
- data/lib/{extensions → active_scaffold/extensions}/array.rb +0 -0
- data/lib/{extensions → active_scaffold/extensions}/localize.rb +1 -1
- data/lib/{extensions → active_scaffold/extensions}/name_option_for_datetime.rb +1 -1
- data/lib/{extensions → active_scaffold/extensions}/nil_id_in_url_params.rb +0 -0
- data/lib/{extensions → active_scaffold/extensions}/paginator_extensions.rb +2 -2
- data/lib/{extensions → active_scaffold/extensions}/reverse_associations.rb +1 -1
- data/lib/{extensions → active_scaffold/extensions}/routing_mapper.rb +2 -2
- data/lib/{extensions → active_scaffold/extensions}/to_label.rb +0 -0
- data/lib/{extensions → active_scaffold/extensions}/unsaved_associated.rb +0 -0
- data/lib/{extensions → active_scaffold/extensions}/unsaved_record.rb +0 -0
- data/lib/active_scaffold/extensions/usa_state.rb +46 -0
- data/lib/active_scaffold/finder.rb +30 -19
- data/lib/active_scaffold/helpers/controller_helpers.rb +3 -5
- data/lib/active_scaffold/helpers/form_column_helpers.rb +19 -45
- data/lib/active_scaffold/helpers/human_condition_helpers.rb +1 -1
- data/lib/active_scaffold/helpers/id_helpers.rb +2 -2
- data/lib/active_scaffold/helpers/list_column_helpers.rb +28 -17
- data/lib/active_scaffold/helpers/search_column_helpers.rb +51 -40
- data/lib/active_scaffold/helpers/search_column_helpers.rb~ +215 -0
- data/lib/active_scaffold/helpers/show_column_helpers.rb +8 -4
- data/lib/active_scaffold/helpers/view_helpers.rb +50 -27
- data/lib/active_scaffold/locale/de.yml +111 -0
- data/lib/active_scaffold/locale/en.yml +115 -0
- data/lib/active_scaffold/locale/es.yml +32 -32
- data/lib/active_scaffold/locale/fr.yml +118 -0
- data/lib/active_scaffold/marked_model.rb +6 -6
- data/lib/active_scaffold/version.rb +1 -1
- data/lib/active_scaffold_assets.rb +1 -3
- data/lib/active_scaffold_env.rb +1 -2
- data/lib/generators/active_scaffold/active_scaffold_generator.rb +5 -5
- data/lib/generators/active_scaffold_controller/active_scaffold_controller_generator.rb +3 -2
- data/lib/generators/active_scaffold_controller/templates/helper.rb +2 -0
- data/lib/generators/active_scaffold_setup/active_scaffold_setup_generator.rb +17 -19
- data/shoulda_macros/macros.rb +4 -4
- data/test/misc/finder_test.rb +2 -2
- data/test/mock_app/public/stylesheets/active_scaffold/default/stylesheet.css +4 -1
- metadata +144 -126
- data/.autotest +0 -27
- data/.document +0 -5
- data/Gemfile +0 -13
- data/Gemfile.lock +0 -20
- data/Rakefile +0 -53
- data/active_scaffold.gemspec +0 -385
- data/init.rb +0 -2
- data/lib/active_scaffold/helpers/country_helpers.rb +0 -358
- data/lib/active_scaffold/locale/de.rb +0 -120
- data/lib/active_scaffold/locale/en.rb +0 -119
- data/lib/active_scaffold/locale/fr.rb +0 -116
- data/lib/extensions/active_record_offset.rb +0 -12
- data/lib/extensions/usa_state.rb +0 -50
- data/test/mock_app/.gitignore +0 -2
- data/uninstall.rb +0 -13
|
@@ -25,13 +25,17 @@ module ActiveScaffold
|
|
|
25
25
|
simple_format(clean_column_value(record.send(column.name)))
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
def
|
|
29
|
-
"#{column.name
|
|
28
|
+
def show_column_override_name(column, class_prefix = false)
|
|
29
|
+
"#{clean_class_name(column.active_record_class.name) + '_' if class_prefix}#{clean_column_name(column.name)}_show_column"
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
def show_column_override
|
|
33
|
-
|
|
32
|
+
def show_column_override(column)
|
|
33
|
+
method_with_class = show_column_override_name(column, true)
|
|
34
|
+
return method_with_class if respond_to?(method_with_class)
|
|
35
|
+
method = show_column_override_name(column)
|
|
36
|
+
method if respond_to?(method)
|
|
34
37
|
end
|
|
38
|
+
alias_method :show_column_override?, :show_column_override
|
|
35
39
|
|
|
36
40
|
def override_show_column_ui?(list_ui)
|
|
37
41
|
respond_to?(override_show_column_ui(list_ui))
|
|
@@ -10,7 +10,6 @@ module ActiveScaffold
|
|
|
10
10
|
include ActiveScaffold::Helpers::ShowColumnHelpers
|
|
11
11
|
include ActiveScaffold::Helpers::FormColumnHelpers
|
|
12
12
|
include ActiveScaffold::Helpers::SearchColumnHelpers
|
|
13
|
-
include ActiveScaffold::Helpers::CountryHelpers
|
|
14
13
|
include ActiveScaffold::Helpers::HumanConditionHelpers
|
|
15
14
|
|
|
16
15
|
##
|
|
@@ -73,7 +72,7 @@ module ActiveScaffold
|
|
|
73
72
|
def form_remote_upload_tag(url_for_options = {}, options = {})
|
|
74
73
|
options[:target] = action_iframe_id(url_for_options)
|
|
75
74
|
options[:multipart] ||= true
|
|
76
|
-
options[:class] = "#{options[:class]} as_remote_upload".strip
|
|
75
|
+
options[:class] = "#{options[:class]} as_remote_upload".strip
|
|
77
76
|
output=""
|
|
78
77
|
output << form_tag(url_for_options, options)
|
|
79
78
|
(output << "<iframe id='#{action_iframe_id(url_for_options)}' name='#{action_iframe_id(url_for_options)}' style='display:none'></iframe>").html_safe
|
|
@@ -87,13 +86,13 @@ module ActiveScaffold
|
|
|
87
86
|
ActiveScaffold::Config::Core.asset_path(name, frontend)
|
|
88
87
|
end
|
|
89
88
|
end
|
|
90
|
-
|
|
89
|
+
|
|
91
90
|
# Provides stylesheets to include with +stylesheet_link_tag+
|
|
92
91
|
def active_scaffold_stylesheets(frontend = :default)
|
|
93
92
|
[ActiveScaffold::Config::Core.asset_path("stylesheet.css", frontend)]
|
|
94
93
|
end
|
|
95
94
|
|
|
96
|
-
# Provides stylesheets for IE to include with +stylesheet_link_tag+
|
|
95
|
+
# Provides stylesheets for IE to include with +stylesheet_link_tag+
|
|
97
96
|
def active_scaffold_ie_stylesheets(frontend = :default)
|
|
98
97
|
[ActiveScaffold::Config::Core.asset_path("stylesheet-ie.css", frontend)]
|
|
99
98
|
end
|
|
@@ -122,7 +121,7 @@ module ActiveScaffold
|
|
|
122
121
|
# You may also flag whether the other element is visible by default or not, and the initial text will adjust accordingly.
|
|
123
122
|
def link_to_visibility_toggle(id, options = {})
|
|
124
123
|
options[:default_visible] = true if options[:default_visible].nil?
|
|
125
|
-
options[:hide_label] = as_(:hide)
|
|
124
|
+
options[:hide_label] = as_(:hide)
|
|
126
125
|
options[:show_label] = as_(:show)
|
|
127
126
|
javascript_tag("ActiveScaffold.create_visibility_toggle('#{id}', #{options.to_json});")
|
|
128
127
|
end
|
|
@@ -134,39 +133,43 @@ module ActiveScaffold
|
|
|
134
133
|
def render_action_link(link, url_options, record = nil, html_options = {})
|
|
135
134
|
url_options = action_link_url_options(link, url_options, record)
|
|
136
135
|
html_options = action_link_html_options(link, url_options, record, html_options)
|
|
137
|
-
action_link_html(link, url_options, html_options)
|
|
136
|
+
action_link_html(link, url_options, html_options, record)
|
|
138
137
|
end
|
|
139
138
|
|
|
140
139
|
def render_group_action_link(link, url_options, options, record = nil)
|
|
141
140
|
if link.type == :member && !options[:authorized]
|
|
142
|
-
action_link_html(link, nil, {:class => "disabled #{link.action}#{link.html_options[:class].blank? ? '' : (' ' + link.html_options[:class])}"})
|
|
141
|
+
action_link_html(link, nil, {:class => "disabled #{link.action}#{link.html_options[:class].blank? ? '' : (' ' + link.html_options[:class])}"}, record)
|
|
143
142
|
else
|
|
144
143
|
render_action_link(link, url_options, record)
|
|
145
144
|
end
|
|
146
145
|
end
|
|
147
|
-
|
|
146
|
+
|
|
148
147
|
def action_link_url_options(link, url_options, record, options = {})
|
|
149
148
|
url_options = url_options.clone
|
|
150
149
|
url_options[:action] = link.action
|
|
151
|
-
url_options[:controller] = link.controller if link.controller
|
|
150
|
+
url_options[:controller] = link.controller.to_s if link.controller
|
|
152
151
|
url_options.delete(:search) if link.controller and link.controller.to_s != params[:controller]
|
|
153
152
|
url_options.merge! link.parameters if link.parameters
|
|
153
|
+
@link_record = record
|
|
154
|
+
url_options.merge! self.instance_eval(&(link.dynamic_parameters)) if link.dynamic_parameters.is_a?(Proc)
|
|
155
|
+
@link_record = nil
|
|
154
156
|
url_options_for_nested_link(link.column, record, link, url_options, options) if link.nested_link?
|
|
155
157
|
url_options_for_sti_link(link.column, record, link, url_options, options) unless record.nil? || active_scaffold_config.sti_children.nil?
|
|
156
158
|
url_options[:_method] = link.method if !link.confirm? && link.inline? && link.method != :get
|
|
157
159
|
url_options
|
|
158
160
|
end
|
|
159
|
-
|
|
161
|
+
|
|
160
162
|
def action_link_html_options(link, url_options, record, html_options)
|
|
161
163
|
link_id = get_action_link_id(url_options, record, link.column)
|
|
162
164
|
html_options.reverse_merge! link.html_options.merge(:class => link.action)
|
|
163
165
|
|
|
164
|
-
# Needs to be in html_options to as the adding _method to the url is no longer supported by Rails
|
|
166
|
+
# Needs to be in html_options to as the adding _method to the url is no longer supported by Rails
|
|
165
167
|
html_options[:method] = link.method if link.method != :get
|
|
166
168
|
|
|
167
169
|
html_options['data-confirm'] = link.confirm(record.try(:to_label)) if link.confirm?
|
|
168
170
|
html_options['data-position'] = link.position if link.position and link.inline?
|
|
169
171
|
html_options[:class] += ' as_action' if link.inline?
|
|
172
|
+
html_options['data-action'] = link.action if link.inline?
|
|
170
173
|
if link.popup?
|
|
171
174
|
html_options['data-popup'] = true
|
|
172
175
|
html_options[:target] = '_blank'
|
|
@@ -187,17 +190,18 @@ module ActiveScaffold
|
|
|
187
190
|
id = url_options[:id] || url_options[:parent_id]
|
|
188
191
|
id = "#{column.association.name}-#{record.id}" if column && column.plural_association?
|
|
189
192
|
if record.try(column.association.name.to_sym).present?
|
|
190
|
-
id = "#{column.association.name}-#{record.send(column.association.name).id}"
|
|
193
|
+
id = "#{column.association.name}-#{record.send(column.association.name).id}-#{record.id}"
|
|
191
194
|
else
|
|
192
195
|
id = "#{column.association.name}-#{record.id}" unless record.nil?
|
|
193
196
|
end if column && column.singular_association?
|
|
197
|
+
id = "#{id}-#{url_options[:batch_scope].downcase}" if url_options[:batch_scope]
|
|
194
198
|
action_id = "#{id_from_controller(url_options[:controller]) + '-' if url_options[:parent_controller]}#{url_options[:action].to_s}"
|
|
195
199
|
action_link_id(action_id, id)
|
|
196
200
|
end
|
|
197
|
-
|
|
198
|
-
def action_link_html(link, url, html_options)
|
|
201
|
+
|
|
202
|
+
def action_link_html(link, url, html_options, record)
|
|
199
203
|
# issue 260, use url_options[:link] if it exists. This prevents DB data from being localized.
|
|
200
|
-
label = url.delete(:link) if url.is_a?(Hash)
|
|
204
|
+
label = url.delete(:link) if url.is_a?(Hash)
|
|
201
205
|
label ||= link.label
|
|
202
206
|
if link.image.nil?
|
|
203
207
|
html = link_to(label, url, html_options)
|
|
@@ -205,11 +209,11 @@ module ActiveScaffold
|
|
|
205
209
|
html = link_to(image_tag(link.image[:name] , :size => link.image[:size], :alt => label), url, html_options)
|
|
206
210
|
end
|
|
207
211
|
# if url is nil we would like to generate an anchor without href attribute
|
|
208
|
-
url.nil? ? html.sub(/href=".*?"/, '') : html
|
|
212
|
+
url.nil? ? html.sub(/href=".*?"/, '').html_safe : html.html_safe
|
|
209
213
|
end
|
|
210
|
-
|
|
214
|
+
|
|
211
215
|
def url_options_for_nested_link(column, record, link, url_options, options = {})
|
|
212
|
-
if column && column.association
|
|
216
|
+
if column && column.association
|
|
213
217
|
url_options[:assoc_id] = url_options.delete(:id)
|
|
214
218
|
url_options[:id] = record.send(column.association.name).id if column.singular_association? && record.send(column.association.name).present?
|
|
215
219
|
link.eid = "#{controller_id.from(3)}_#{record.id}_#{column.association.name}" unless options.has_key?(:reuse_eid)
|
|
@@ -224,10 +228,15 @@ module ActiveScaffold
|
|
|
224
228
|
def url_options_for_sti_link(column, record, link, url_options, options = {})
|
|
225
229
|
#need to find out controller of current record type
|
|
226
230
|
#and set parameters
|
|
227
|
-
|
|
228
|
-
if
|
|
229
|
-
|
|
230
|
-
|
|
231
|
+
# its quite difficult to detect an sti link
|
|
232
|
+
# if link.column.nil? we are sure that it is nt an singular association inline autolink
|
|
233
|
+
# howver that will not work if a sti parent is an singular association inline autolink
|
|
234
|
+
if link.column.nil?
|
|
235
|
+
sti_controller_path = controller_path_for_activerecord(record.class)
|
|
236
|
+
if sti_controller_path
|
|
237
|
+
url_options[:controller] = sti_controller_path
|
|
238
|
+
url_options[:parent_sti] = controller_path
|
|
239
|
+
end
|
|
231
240
|
end
|
|
232
241
|
end
|
|
233
242
|
|
|
@@ -240,13 +249,13 @@ module ActiveScaffold
|
|
|
240
249
|
else
|
|
241
250
|
classes << column.css_class
|
|
242
251
|
end unless column.css_class.nil?
|
|
243
|
-
|
|
252
|
+
|
|
244
253
|
classes << 'empty' if column_empty? column_value
|
|
245
254
|
classes << 'sorted' if active_scaffold_config.list.user.sorting.sorts_on?(column)
|
|
246
255
|
classes << 'numeric' if column.column and [:decimal, :float, :integer].include?(column.column.type)
|
|
247
256
|
classes.join(' ').rstrip
|
|
248
257
|
end
|
|
249
|
-
|
|
258
|
+
|
|
250
259
|
def column_heading_class(column, sorting)
|
|
251
260
|
classes = []
|
|
252
261
|
classes << "#{column.name}-column_heading"
|
|
@@ -255,9 +264,15 @@ module ActiveScaffold
|
|
|
255
264
|
classes.join(' ')
|
|
256
265
|
end
|
|
257
266
|
|
|
267
|
+
def as_main_div_class
|
|
268
|
+
classes = ["active-scaffold", "active-scaffold-#{controller_id}", "#{params[:controller]}-view", "#{active_scaffold_config.theme}-theme"]
|
|
269
|
+
classes << "as_touch" if touch_device?
|
|
270
|
+
classes.join(' ')
|
|
271
|
+
end
|
|
272
|
+
|
|
258
273
|
def column_empty?(column_value)
|
|
259
274
|
empty = column_value.nil?
|
|
260
|
-
empty ||= column_value.
|
|
275
|
+
empty ||= column_value.blank? if column_value.respond_to? :blank?
|
|
261
276
|
empty ||= [' ', active_scaffold_config.list.empty_field_text].include? column_value if String === column_value
|
|
262
277
|
return empty
|
|
263
278
|
end
|
|
@@ -287,11 +302,19 @@ module ActiveScaffold
|
|
|
287
302
|
end
|
|
288
303
|
|
|
289
304
|
def column_show_add_new(column, associated, record)
|
|
290
|
-
value = column.plural_association? || (column.singular_association? and not associated.empty?)
|
|
291
|
-
value = false unless
|
|
305
|
+
value = (column.plural_association? && !column.readonly_association?) || (column.singular_association? and not associated.empty?)
|
|
306
|
+
value = false unless column.association.klass.authorized_for?(:crud_type => :create)
|
|
292
307
|
value
|
|
293
308
|
end
|
|
309
|
+
|
|
310
|
+
def clean_column_name(name)
|
|
311
|
+
name.to_s.gsub('?', '')
|
|
312
|
+
end
|
|
294
313
|
|
|
314
|
+
def clean_class_name(name)
|
|
315
|
+
name.underscore.gsub('/', '_')
|
|
316
|
+
end
|
|
317
|
+
|
|
295
318
|
def active_scaffold_error_messages_for(*params)
|
|
296
319
|
options = params.extract_options!.symbolize_keys
|
|
297
320
|
options.reverse_merge!(:container_tag => :div, :list_type => :ul)
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
de:
|
|
2
|
+
active_scaffold:
|
|
3
|
+
add: 'Hinzufügen'
|
|
4
|
+
add_existing: 'Existierenden Eintrag hinzufügen'
|
|
5
|
+
add_existing_model: 'Existierende %{model} hinzufügen'
|
|
6
|
+
are_you_sure_to_delete: 'Sind Sie sicher?'
|
|
7
|
+
cancel: 'Abbrechen'
|
|
8
|
+
click_to_edit: 'Zum Editieren anklicken'
|
|
9
|
+
click_to_reset: 'Reset'
|
|
10
|
+
close: 'Schliessen'
|
|
11
|
+
config_list: 'Konfigurieren'
|
|
12
|
+
config_list_model: 'Konfiguriere Spalten für %{model}'
|
|
13
|
+
create: 'Anlegen'
|
|
14
|
+
create_model: 'Lege %{model} an'
|
|
15
|
+
create_another: 'Weitere anlegen'
|
|
16
|
+
created_model: '%{model} angelegt'
|
|
17
|
+
create_new: 'Neu anlegen'
|
|
18
|
+
customize: 'Anpassen'
|
|
19
|
+
delete: 'Löschen'
|
|
20
|
+
deleted_model: '%{model} gelöscht'
|
|
21
|
+
delimiter: 'Trennzeichen'
|
|
22
|
+
download: 'Download'
|
|
23
|
+
edit: 'Bearbeiten'
|
|
24
|
+
export: 'Exportieren'
|
|
25
|
+
nested_for_model: '%{nested_model} für %{parent_model}'
|
|
26
|
+
nested_of_model: '%{nested_model} von %{parent_model}'
|
|
27
|
+
filtered: '(Gefiltert)'
|
|
28
|
+
found: 'Gefunden'
|
|
29
|
+
hide: 'Verstecken'
|
|
30
|
+
live_search: 'Live-Suche'
|
|
31
|
+
loading: 'Lade…'
|
|
32
|
+
next: 'Vor'
|
|
33
|
+
no_entries: 'Keine Einträge'
|
|
34
|
+
no_options: 'Keine Optionen'
|
|
35
|
+
omit_header: 'Lasse Header weg'
|
|
36
|
+
options: 'Optionen'
|
|
37
|
+
pdf: 'PDF'
|
|
38
|
+
previous: 'Zurück'
|
|
39
|
+
print: 'Drucken'
|
|
40
|
+
refresh: 'Neu laden'
|
|
41
|
+
remove: 'Entfernen'
|
|
42
|
+
remove_file: 'Entferne oder Ersetze Datei'
|
|
43
|
+
replace_with_new: 'Mit Neuer ersetzen'
|
|
44
|
+
revisions_for_model: 'Revisionen für %{model}'
|
|
45
|
+
reset: 'Zurücksetzen'
|
|
46
|
+
saving: 'Speichern…'
|
|
47
|
+
search: 'Suche'
|
|
48
|
+
search_terms: 'Suchbegriffe'
|
|
49
|
+
_select_: '- Auswählen -'
|
|
50
|
+
show: 'Anzeigen'
|
|
51
|
+
show_model: 'Zeige %{model} an'
|
|
52
|
+
_to_ : ' zu '
|
|
53
|
+
update: 'Speichern'
|
|
54
|
+
update_model: 'Editiere %{model}'
|
|
55
|
+
updated_model: '%{model} aktualisiert'
|
|
56
|
+
'=': '='
|
|
57
|
+
'>=': '>='
|
|
58
|
+
'<=': '<='
|
|
59
|
+
'>': '>'
|
|
60
|
+
'<': '<'
|
|
61
|
+
'!=': '!='
|
|
62
|
+
between: 'Zwischen'
|
|
63
|
+
contains: 'Enthält'
|
|
64
|
+
begins_with: 'Beginnt'
|
|
65
|
+
ends_with: 'Ended'
|
|
66
|
+
today: 'Heute'
|
|
67
|
+
yesterday: 'Gestern'
|
|
68
|
+
tomorrow: 'Morgen'
|
|
69
|
+
this_week: 'Diese Woche'
|
|
70
|
+
prev_week: 'Letzte Woche'
|
|
71
|
+
next_week: 'Nächste Woche'
|
|
72
|
+
this_month: 'Diesen Monat'
|
|
73
|
+
prev_month: 'Letzten Monat'
|
|
74
|
+
next_month: 'Nächsten Monat'
|
|
75
|
+
this_year: 'Dieses Jahr'
|
|
76
|
+
prev_year: 'Letztes Jahr'
|
|
77
|
+
next_year: 'Nächstes Jahr'
|
|
78
|
+
past: 'Letzten'
|
|
79
|
+
future: 'Nächsten'
|
|
80
|
+
range: 'Zeitraum'
|
|
81
|
+
seconds: 'Sekunden'
|
|
82
|
+
minutes: 'Minuten'
|
|
83
|
+
hours: 'Stunden'
|
|
84
|
+
days: 'Tage'
|
|
85
|
+
weeks: 'Wochen'
|
|
86
|
+
months: 'Monate'
|
|
87
|
+
years: 'Jahre'
|
|
88
|
+
optional_attributes: 'Weitere'
|
|
89
|
+
null: 'Null'
|
|
90
|
+
not_null: 'Nicht Null'
|
|
91
|
+
date_picker_options:
|
|
92
|
+
weekHeader: 'Wo'
|
|
93
|
+
firstDay: 1
|
|
94
|
+
isRTL: false
|
|
95
|
+
showMonthAfterYear: false
|
|
96
|
+
datetime_picker_options:
|
|
97
|
+
timeText: 'Uhrzeit'
|
|
98
|
+
currentText: 'Jetzt'
|
|
99
|
+
closeText: 'Schließen'
|
|
100
|
+
errors:
|
|
101
|
+
template:
|
|
102
|
+
header:
|
|
103
|
+
one: "Konnte %{model} nicht speichern: ein Fehler."
|
|
104
|
+
other: "Konnte %{model} nicht speichern: %{count} Fehler."
|
|
105
|
+
body: "Bitte überprüfen Sie die folgenden Felder:"
|
|
106
|
+
# error_messages
|
|
107
|
+
cant_destroy_record: "%{record} kann nicht gelöscht werden"
|
|
108
|
+
internal_error: 'Fehler bei der Verarbeitung (code 500, Interner Fehler)'
|
|
109
|
+
version_inconsistency: 'Inkonsistente Versionen - dieser Eintrag wurde verändert nachdem Sie mit der Bearbeitung begonnen haben.'
|
|
110
|
+
record_not_saved: 'Eintrag kann nicht gespeichert werden. Ursache unbekannt.'
|
|
111
|
+
no_authorization_for_action: "Keine Berechtigung für Aktion %{action}"
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
en:
|
|
2
|
+
active_scaffold:
|
|
3
|
+
add: 'Add'
|
|
4
|
+
add_existing: 'Add Existing'
|
|
5
|
+
add_existing_model: 'Add Existing %{model}'
|
|
6
|
+
are_you_sure_to_delete: 'Are you sure you want to delete %{label}?'
|
|
7
|
+
cancel: 'Cancel'
|
|
8
|
+
click_to_edit: 'Click to edit'
|
|
9
|
+
click_to_reset: 'Click to reset'
|
|
10
|
+
close: 'Close'
|
|
11
|
+
config_list: 'Configure'
|
|
12
|
+
config_list_model: 'Configure Columns for %{model}'
|
|
13
|
+
create: 'Create'
|
|
14
|
+
create_model: 'Create %{model}'
|
|
15
|
+
create_another: 'Create Another %{model}'
|
|
16
|
+
created_model: 'Created %{model}'
|
|
17
|
+
create_new: 'Create New'
|
|
18
|
+
customize: 'Customize'
|
|
19
|
+
delete: 'Delete'
|
|
20
|
+
deleted_model: 'Deleted %{model}'
|
|
21
|
+
delimiter: 'Delimiter'
|
|
22
|
+
download: 'Download'
|
|
23
|
+
edit: 'Edit'
|
|
24
|
+
export: 'Export'
|
|
25
|
+
nested_for_model: '%{nested_model} for %{parent_model}'
|
|
26
|
+
nested_of_model: '%{nested_model} of %{parent_model}'
|
|
27
|
+
'false': 'False'
|
|
28
|
+
filtered: '(Filtered)'
|
|
29
|
+
found: 'Found'
|
|
30
|
+
hide: 'Hide'
|
|
31
|
+
live_search: 'Live Search'
|
|
32
|
+
loading: 'Loading…'
|
|
33
|
+
next: 'Next'
|
|
34
|
+
no_entries: 'No Entries'
|
|
35
|
+
no_options: 'no options'
|
|
36
|
+
omit_header: 'Omit Header'
|
|
37
|
+
options: 'Options'
|
|
38
|
+
pdf: 'PDF'
|
|
39
|
+
previous: 'Previous'
|
|
40
|
+
print: 'Print'
|
|
41
|
+
refresh: 'Refresh'
|
|
42
|
+
remove: 'Remove'
|
|
43
|
+
remove_file: 'Remove or Replace file'
|
|
44
|
+
replace_with_new: 'Replace With New'
|
|
45
|
+
revisions_for_model: 'Revisions for %{model}'
|
|
46
|
+
reset: 'Reset'
|
|
47
|
+
saving: 'Saving…'
|
|
48
|
+
search: 'Search'
|
|
49
|
+
search_terms: 'Search Terms'
|
|
50
|
+
_select_: '- select -'
|
|
51
|
+
show: 'Show'
|
|
52
|
+
show_model: 'Show %{model}'
|
|
53
|
+
_to_ : ' to '
|
|
54
|
+
'true': 'True'
|
|
55
|
+
update: 'Update'
|
|
56
|
+
update_model: 'Update %{model}'
|
|
57
|
+
updated_model: 'Updated %{model}'
|
|
58
|
+
'=': '='
|
|
59
|
+
'>=': '>='
|
|
60
|
+
'<=': '<='
|
|
61
|
+
'>': '>'
|
|
62
|
+
'<': '<'
|
|
63
|
+
'!=': '!='
|
|
64
|
+
between: 'Between'
|
|
65
|
+
contains: 'Contains'
|
|
66
|
+
begins_with: 'Begins with'
|
|
67
|
+
ends_with: 'Ends with'
|
|
68
|
+
today: 'Today'
|
|
69
|
+
yesterday: 'Yesterday'
|
|
70
|
+
tomorrow: 'Tommorrow'
|
|
71
|
+
this_week: 'This Week'
|
|
72
|
+
prev_week: 'Last Week'
|
|
73
|
+
next_week: 'Next Week'
|
|
74
|
+
this_month: 'This Month'
|
|
75
|
+
prev_month: 'Last Month'
|
|
76
|
+
next_month: 'Next Month'
|
|
77
|
+
this_year: 'This Year'
|
|
78
|
+
prev_year: 'Last Year'
|
|
79
|
+
next_year: 'Next Year'
|
|
80
|
+
past: 'Past'
|
|
81
|
+
future: 'Future'
|
|
82
|
+
range: 'Range'
|
|
83
|
+
seconds: 'Seconds'
|
|
84
|
+
minutes: 'Minutes'
|
|
85
|
+
hours: 'Hours'
|
|
86
|
+
days: 'Days'
|
|
87
|
+
weeks: 'Weeks'
|
|
88
|
+
months: 'Months'
|
|
89
|
+
years: 'Years'
|
|
90
|
+
optional_attributes: 'Further Options'
|
|
91
|
+
null: 'Null'
|
|
92
|
+
not_null: 'Not Null'
|
|
93
|
+
date_picker_options:
|
|
94
|
+
weekHeader: 'Wk'
|
|
95
|
+
firstDay: 0
|
|
96
|
+
isRTL: false
|
|
97
|
+
showMonthAfterYear: false
|
|
98
|
+
|
|
99
|
+
datetime_picker_options:
|
|
100
|
+
|
|
101
|
+
errors:
|
|
102
|
+
template:
|
|
103
|
+
header:
|
|
104
|
+
one: "1 error prohibited this %{model} from being saved."
|
|
105
|
+
other: "%{count} errors prohibited this %{model} from being saved"
|
|
106
|
+
|
|
107
|
+
body: "There were problems with the following fields:"
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
# error_messages
|
|
111
|
+
cant_destroy_record: "%{record} can't be destroyed"
|
|
112
|
+
internal_error: 'Request Failed (code 500, Internal Error)'
|
|
113
|
+
version_inconsistency: 'Version inconsistency - this record has been modified since you started editing it.'
|
|
114
|
+
record_not_saved: 'Failed to save record cause of an unknown error'
|
|
115
|
+
no_authorization_for_action: "No Authorization for action %{action}"
|