active_scaffold_vho 3.1.4 → 3.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +44 -0
- data/Gemfile +1 -9
- data/Gemfile.lock +88 -8
- data/Rakefile +3 -24
- data/active_scaffold_vho.gemspec +16 -375
- data/app/assets/javascripts/jquery/active_scaffold.js +23 -13
- data/app/assets/javascripts/prototype/active_scaffold.js +23 -15
- data/app/assets/stylesheets/active_scaffold_core.css.erb +1 -1
- data/frontends/default/views/_list.html.erb +2 -1
- data/frontends/default/views/_list_messages.html.erb +2 -2
- data/frontends/default/views/_list_pagination.html.erb +3 -6
- data/frontends/default/views/_list_record_columns.html.erb +1 -1
- data/lib/active_scaffold.rb +10 -0
- data/lib/active_scaffold/actions/list.rb +7 -6
- data/lib/active_scaffold/active_record_permissions.rb +25 -0
- data/lib/active_scaffold/attribute_params.rb +5 -2
- data/lib/active_scaffold/bridges/shared/date_bridge.rb +3 -3
- data/lib/active_scaffold/config/core.rb +8 -1
- data/lib/active_scaffold/config/field_search.rb +21 -0
- data/lib/active_scaffold/data_structures/column.rb +16 -2
- data/lib/active_scaffold/finder.rb +18 -28
- data/lib/active_scaffold/helpers/human_condition_helpers.rb +4 -2
- data/lib/active_scaffold/helpers/list_column_helpers.rb +65 -2
- data/lib/active_scaffold/locale/de.yml +118 -0
- data/lib/active_scaffold/locale/en.yml +115 -0
- data/lib/active_scaffold/version.rb +1 -1
- data/test/mock_app/public/stylesheets/active_scaffold/default/stylesheet.css +1 -1
- metadata +46 -41
- data/lib/active_scaffold/locale/de.rb +0 -120
- data/lib/active_scaffold/locale/en.rb +0 -119
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold_vho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 9
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 3.1.
|
9
|
+
- 5
|
10
|
+
version: 3.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Many, see README
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
19
|
-
default_executable:
|
18
|
+
date: 2012-11-03 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|
@@ -30,13 +29,13 @@ dependencies:
|
|
30
29
|
version: "0"
|
31
30
|
type: :development
|
32
31
|
name: shoulda
|
33
|
-
prerelease: false
|
34
32
|
version_requirements: *id001
|
33
|
+
prerelease: false
|
35
34
|
- !ruby/object:Gem::Dependency
|
36
35
|
requirement: &id002 !ruby/object:Gem::Requirement
|
37
36
|
none: false
|
38
37
|
requirements:
|
39
|
-
- -
|
38
|
+
- - ">="
|
40
39
|
- !ruby/object:Gem::Version
|
41
40
|
hash: 23
|
42
41
|
segments:
|
@@ -46,26 +45,10 @@ dependencies:
|
|
46
45
|
version: 1.0.0
|
47
46
|
type: :development
|
48
47
|
name: bundler
|
49
|
-
prerelease: false
|
50
48
|
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
|
-
requirements:
|
55
|
-
- - ~>
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
hash: 7
|
58
|
-
segments:
|
59
|
-
- 1
|
60
|
-
- 5
|
61
|
-
- 2
|
62
|
-
version: 1.5.2
|
63
|
-
type: :development
|
64
|
-
name: jeweler
|
65
49
|
prerelease: false
|
66
|
-
version_requirements: *id003
|
67
50
|
- !ruby/object:Gem::Dependency
|
68
|
-
requirement: &
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
69
52
|
none: false
|
70
53
|
requirements:
|
71
54
|
- - ">="
|
@@ -76,38 +59,38 @@ dependencies:
|
|
76
59
|
version: "0"
|
77
60
|
type: :development
|
78
61
|
name: rcov
|
62
|
+
version_requirements: *id003
|
79
63
|
prerelease: false
|
80
|
-
version_requirements: *id004
|
81
64
|
- !ruby/object:Gem::Dependency
|
82
|
-
requirement: &
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
83
66
|
none: false
|
84
67
|
requirements:
|
85
68
|
- - ">="
|
86
69
|
- !ruby/object:Gem::Version
|
87
70
|
hash: 3
|
88
71
|
segments:
|
72
|
+
- 3
|
73
|
+
- 1
|
89
74
|
- 0
|
90
|
-
version:
|
75
|
+
version: 3.1.0
|
91
76
|
type: :runtime
|
92
|
-
name:
|
77
|
+
name: rails
|
78
|
+
version_requirements: *id004
|
93
79
|
prerelease: false
|
94
|
-
version_requirements: *id005
|
95
80
|
- !ruby/object:Gem::Dependency
|
96
|
-
requirement: &
|
81
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
97
82
|
none: false
|
98
83
|
requirements:
|
99
84
|
- - ">="
|
100
85
|
- !ruby/object:Gem::Version
|
101
86
|
hash: 3
|
102
87
|
segments:
|
103
|
-
- 3
|
104
|
-
- 1
|
105
88
|
- 0
|
106
|
-
version:
|
89
|
+
version: "0"
|
107
90
|
type: :runtime
|
108
|
-
name:
|
91
|
+
name: kaminari
|
92
|
+
version_requirements: *id005
|
109
93
|
prerelease: false
|
110
|
-
version_requirements: *id006
|
111
94
|
description: Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.
|
112
95
|
email: activescaffold@googlegroups.com
|
113
96
|
executables: []
|
@@ -119,6 +102,7 @@ extra_rdoc_files:
|
|
119
102
|
files:
|
120
103
|
- .autotest
|
121
104
|
- .document
|
105
|
+
- .gitignore
|
122
106
|
- CHANGELOG
|
123
107
|
- Gemfile
|
124
108
|
- Gemfile.lock
|
@@ -313,8 +297,8 @@ files:
|
|
313
297
|
- lib/active_scaffold/helpers/search_column_helpers.rb
|
314
298
|
- lib/active_scaffold/helpers/show_column_helpers.rb
|
315
299
|
- lib/active_scaffold/helpers/view_helpers.rb
|
316
|
-
- lib/active_scaffold/locale/de.
|
317
|
-
- lib/active_scaffold/locale/en.
|
300
|
+
- lib/active_scaffold/locale/de.yml
|
301
|
+
- lib/active_scaffold/locale/en.yml
|
318
302
|
- lib/active_scaffold/locale/es.yml
|
319
303
|
- lib/active_scaffold/locale/fr.rb
|
320
304
|
- lib/active_scaffold/locale/hu.yml
|
@@ -405,7 +389,6 @@ files:
|
|
405
389
|
- test/run_all.rb
|
406
390
|
- test/test_helper.rb
|
407
391
|
- uninstall.rb
|
408
|
-
has_rdoc: true
|
409
392
|
homepage: http://github.com/vhochstein/active_scaffold
|
410
393
|
licenses:
|
411
394
|
- MIT
|
@@ -435,10 +418,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
435
418
|
requirements: []
|
436
419
|
|
437
420
|
rubyforge_project:
|
438
|
-
rubygems_version: 1.
|
421
|
+
rubygems_version: 1.8.17
|
439
422
|
signing_key:
|
440
423
|
specification_version: 3
|
441
|
-
summary: Rails 3
|
424
|
+
summary: Rails 3 Version of activescaffold supporting prototype and jquery
|
442
425
|
test_files:
|
443
426
|
- test/bridges/bridge_test.rb
|
444
427
|
- test/config/base_test.rb
|
@@ -470,9 +453,11 @@ test_files:
|
|
470
453
|
- test/misc/constraints_test.rb
|
471
454
|
- test/misc/finder_test.rb
|
472
455
|
- test/misc/lang_test.rb
|
456
|
+
- test/mock_app/.gitignore
|
473
457
|
- test/mock_app/app/controllers/application_controller.rb
|
474
458
|
- test/mock_app/app/helpers/application_helper.rb
|
475
459
|
- test/mock_app/config/boot.rb
|
460
|
+
- test/mock_app/config/database.yml
|
476
461
|
- test/mock_app/config/environment.rb
|
477
462
|
- test/mock_app/config/environments/development.rb
|
478
463
|
- test/mock_app/config/environments/production.rb
|
@@ -482,7 +467,27 @@ test_files:
|
|
482
467
|
- test/mock_app/config/initializers/mime_types.rb
|
483
468
|
- test/mock_app/config/initializers/new_rails_defaults.rb
|
484
469
|
- test/mock_app/config/initializers/session_store.rb
|
470
|
+
- test/mock_app/config/locales/en.yml
|
485
471
|
- test/mock_app/config/routes.rb
|
472
|
+
- test/mock_app/db/test.sqlite3
|
473
|
+
- test/mock_app/public/blank.html
|
474
|
+
- test/mock_app/public/images/active_scaffold/DO_NOT_EDIT
|
475
|
+
- test/mock_app/public/images/active_scaffold/default/add.gif
|
476
|
+
- test/mock_app/public/images/active_scaffold/default/arrow_down.gif
|
477
|
+
- test/mock_app/public/images/active_scaffold/default/arrow_up.gif
|
478
|
+
- test/mock_app/public/images/active_scaffold/default/close.gif
|
479
|
+
- test/mock_app/public/images/active_scaffold/default/cross.png
|
480
|
+
- test/mock_app/public/images/active_scaffold/default/indicator-small.gif
|
481
|
+
- test/mock_app/public/images/active_scaffold/default/indicator.gif
|
482
|
+
- test/mock_app/public/images/active_scaffold/default/magnifier.png
|
483
|
+
- test/mock_app/public/javascripts/active_scaffold/DO_NOT_EDIT
|
484
|
+
- test/mock_app/public/javascripts/active_scaffold/default/active_scaffold.js
|
485
|
+
- test/mock_app/public/javascripts/active_scaffold/default/dhtml_history.js
|
486
|
+
- test/mock_app/public/javascripts/active_scaffold/default/form_enhancements.js
|
487
|
+
- test/mock_app/public/javascripts/active_scaffold/default/rico_corner.js
|
488
|
+
- test/mock_app/public/stylesheets/active_scaffold/DO_NOT_EDIT
|
489
|
+
- test/mock_app/public/stylesheets/active_scaffold/default/stylesheet-ie.css
|
490
|
+
- test/mock_app/public/stylesheets/active_scaffold/default/stylesheet.css
|
486
491
|
- test/model_stub.rb
|
487
492
|
- test/run_all.rb
|
488
493
|
- test/test_helper.rb
|
@@ -1,120 +0,0 @@
|
|
1
|
-
{
|
2
|
-
:'de' => {
|
3
|
-
:active_scaffold => {
|
4
|
-
:add => 'Hinzufügen',
|
5
|
-
:add_existing => 'Existierenden Eintrag hinzufügen',
|
6
|
-
:add_existing_model => 'Existierende %{model} hinzufügen',
|
7
|
-
:are_you_sure_to_delete => 'Sind Sie sicher?',
|
8
|
-
:cancel => 'Abbrechen',
|
9
|
-
:click_to_edit => 'Zum Editieren anklicken',
|
10
|
-
:click_to_reset => 'Reset',
|
11
|
-
:close => 'Schliessen',
|
12
|
-
:config_list => 'Konfigurieren',
|
13
|
-
:config_list_model => 'Konfiguriere Spalten für %{model}',
|
14
|
-
:create => 'Anlegen',
|
15
|
-
:create_model => 'Lege %{model} an',
|
16
|
-
:create_another => 'Weitere anlegen',
|
17
|
-
:created_model => '%{model} angelegt',
|
18
|
-
:create_new => 'Neu anlegen',
|
19
|
-
:customize => 'Anpassen',
|
20
|
-
:delete => 'Löschen',
|
21
|
-
:deleted_model => '%{model} gelöscht',
|
22
|
-
:delimiter => 'Trennzeichen',
|
23
|
-
:download => 'Download',
|
24
|
-
:edit => 'Bearbeiten',
|
25
|
-
:export => 'Exportieren',
|
26
|
-
:nested_for_model => '%{nested_model} für %{parent_model}',
|
27
|
-
:nested_of_model => '%{nested_model} von %{parent_model}',
|
28
|
-
:filtered => '(Gefiltert)',
|
29
|
-
:found => 'Gefunden',
|
30
|
-
:hide => 'Verstecken',
|
31
|
-
:live_search => 'Live-Suche',
|
32
|
-
:loading => 'Lade…',
|
33
|
-
:next => 'Vor',
|
34
|
-
:no_entries => 'Keine Einträge',
|
35
|
-
:no_options => 'Keine Optionen',
|
36
|
-
:omit_header => 'Lasse Header weg',
|
37
|
-
:options => 'Optionen',
|
38
|
-
:pdf => 'PDF',
|
39
|
-
:previous => 'Zurück',
|
40
|
-
:print => 'Drucken',
|
41
|
-
:refresh => 'Neu laden',
|
42
|
-
:remove => 'Entfernen',
|
43
|
-
:remove_file => 'Entferne oder Ersetze Datei',
|
44
|
-
:replace_with_new => 'Mit Neuer ersetzen',
|
45
|
-
:revisions_for_model => 'Revisionen für %{model}',
|
46
|
-
:reset => 'Zurücksetzen',
|
47
|
-
:saving => 'Speichern…',
|
48
|
-
:search => 'Suche',
|
49
|
-
:search_terms => 'Suchbegriffe',
|
50
|
-
:_select_ => '- Auswählen -',
|
51
|
-
:show => 'Anzeigen',
|
52
|
-
:show_model => 'Zeige %{model} an',
|
53
|
-
:_to_ => ' zu ',
|
54
|
-
:update => 'Speichern',
|
55
|
-
:update_model => 'Editiere %{model}',
|
56
|
-
:updated_model => '%{model} aktualisiert',
|
57
|
-
:'=' => '=',
|
58
|
-
:'>=' => '>=',
|
59
|
-
:'<=' => '<=',
|
60
|
-
:'>' => '>',
|
61
|
-
:'<' => '<',
|
62
|
-
:'!=' => '!=',
|
63
|
-
:between => 'Zwischen',
|
64
|
-
:contains => 'Enthält',
|
65
|
-
:begins_with => 'Beginnt',
|
66
|
-
:ends_with => 'Ended',
|
67
|
-
:today => 'Heute',
|
68
|
-
:yesterday => 'Gestern',
|
69
|
-
:tomorrow => 'Morgen',
|
70
|
-
:this_week => 'Diese Woche',
|
71
|
-
:prev_week => 'Letzte Woche',
|
72
|
-
:next_week => 'Nächste Woche',
|
73
|
-
:this_month => 'Diesen Monat',
|
74
|
-
:prev_month => 'Letzten Monat',
|
75
|
-
:next_month => 'Nächsten Monat',
|
76
|
-
:this_year => 'Dieses Jahr',
|
77
|
-
:prev_year => 'Letztes Jahr',
|
78
|
-
:next_year => 'Nächstes Jahr',
|
79
|
-
:past => 'Letzten',
|
80
|
-
:future => 'Nächsten',
|
81
|
-
:range => 'Zeitraum',
|
82
|
-
:seconds => 'Sekunden',
|
83
|
-
:minutes => 'Minuten',
|
84
|
-
:hours => 'Stunden',
|
85
|
-
:days => 'Tage',
|
86
|
-
:weeks => 'Wochen',
|
87
|
-
:months => 'Monate',
|
88
|
-
:years => 'Jahre',
|
89
|
-
:optional_attributes => 'Weitere',
|
90
|
-
:null => 'Null',
|
91
|
-
:not_null => 'Nicht Null',
|
92
|
-
:date_picker_options => {
|
93
|
-
:weekHeader => 'Wo',
|
94
|
-
:firstDay => 1,
|
95
|
-
:isRTL => false,
|
96
|
-
:showMonthAfterYear => false
|
97
|
-
},
|
98
|
-
:datetime_picker_options => {
|
99
|
-
:timeText => 'Uhrzeit',
|
100
|
-
:currentText => 'Jetzt',
|
101
|
-
:closeText => 'Schließen'
|
102
|
-
},
|
103
|
-
:errors => {
|
104
|
-
:template => {
|
105
|
-
:header => {
|
106
|
-
:one => "Konnte %{model} nicht speichern: ein Fehler.",
|
107
|
-
:other => "Konnte %{model} nicht speichern: %{count} Fehler."
|
108
|
-
},
|
109
|
-
:body => "Bitte überprüfen Sie die folgenden Felder:"
|
110
|
-
}
|
111
|
-
},
|
112
|
-
# error_messages
|
113
|
-
:cant_destroy_record => "%{record} kann nicht gelöscht werden",
|
114
|
-
:internal_error => 'Fehler bei der Verarbeitung (code 500, Interner Fehler)',
|
115
|
-
:version_inconsistency => 'Inkonsistente Versionen - dieser Eintrag wurde verändert nachdem Sie mit der Bearbeitung begonnen haben.',
|
116
|
-
:record_not_saved => 'Eintrag kann nicht gespeichert werden. Ursache unbekannt.',
|
117
|
-
:no_authorization_for_action => "Keine Berechtigung für Aktion %{action}"
|
118
|
-
}
|
119
|
-
}
|
120
|
-
}
|
@@ -1,119 +0,0 @@
|
|
1
|
-
{
|
2
|
-
:'en' => {
|
3
|
-
:active_scaffold => {
|
4
|
-
:add => 'Add',
|
5
|
-
:add_existing => 'Add Existing',
|
6
|
-
:add_existing_model => 'Add Existing %{model}',
|
7
|
-
:are_you_sure_to_delete => 'Are you sure you want to delete %{label}?',
|
8
|
-
:cancel => 'Cancel',
|
9
|
-
:click_to_edit => 'Click to edit',
|
10
|
-
:click_to_reset => 'Click to reset',
|
11
|
-
:close => 'Close',
|
12
|
-
:config_list => 'Configure',
|
13
|
-
:config_list_model => 'Configure Columns for %{model}',
|
14
|
-
:create => 'Create',
|
15
|
-
:create_model => 'Create %{model}',
|
16
|
-
:create_another => 'Create Another %{model}',
|
17
|
-
:created_model => 'Created %{model}',
|
18
|
-
:create_new => 'Create New',
|
19
|
-
:customize => 'Customize',
|
20
|
-
:delete => 'Delete',
|
21
|
-
:deleted_model => 'Deleted %{model}',
|
22
|
-
:delimiter => 'Delimiter',
|
23
|
-
:download => 'Download',
|
24
|
-
:edit => 'Edit',
|
25
|
-
:export => 'Export',
|
26
|
-
:nested_for_model => '%{nested_model} for %{parent_model}',
|
27
|
-
:nested_of_model => '%{nested_model} of %{parent_model}',
|
28
|
-
:false => 'False',
|
29
|
-
:filtered => '(Filtered)',
|
30
|
-
:found => 'Found',
|
31
|
-
:hide => 'Hide',
|
32
|
-
:live_search => 'Live Search',
|
33
|
-
:loading => 'Loading…',
|
34
|
-
:next => 'Next',
|
35
|
-
:no_entries => 'No Entries',
|
36
|
-
:no_options => 'no options',
|
37
|
-
:omit_header => 'Omit Header',
|
38
|
-
:options => 'Options',
|
39
|
-
:pdf => 'PDF',
|
40
|
-
:previous => 'Previous',
|
41
|
-
:print => 'Print',
|
42
|
-
:refresh => 'Refresh',
|
43
|
-
:remove => 'Remove',
|
44
|
-
:remove_file => 'Remove or Replace file',
|
45
|
-
:replace_with_new => 'Replace With New',
|
46
|
-
:revisions_for_model => 'Revisions for %{model}',
|
47
|
-
:reset => 'Reset',
|
48
|
-
:saving => 'Saving…',
|
49
|
-
:search => 'Search',
|
50
|
-
:search_terms => 'Search Terms',
|
51
|
-
:_select_ => '- select -',
|
52
|
-
:show => 'Show',
|
53
|
-
:show_model => 'Show %{model}',
|
54
|
-
:_to_ => ' to ',
|
55
|
-
:true => 'True',
|
56
|
-
:update => 'Update',
|
57
|
-
:update_model => 'Update %{model}',
|
58
|
-
:updated_model => 'Updated %{model}',
|
59
|
-
:'=' => '=',
|
60
|
-
:'>=' => '>=',
|
61
|
-
:'<=' => '<=',
|
62
|
-
:'>' => '>',
|
63
|
-
:'<' => '<',
|
64
|
-
:'!=' => '!=',
|
65
|
-
:between => 'Between',
|
66
|
-
:contains => 'Contains',
|
67
|
-
:begins_with => 'Begins with',
|
68
|
-
:ends_with => 'Ends with',
|
69
|
-
:today => 'Today',
|
70
|
-
:yesterday => 'Yesterday',
|
71
|
-
:tomorrow => 'Tommorrow',
|
72
|
-
:this_week => 'This Week',
|
73
|
-
:prev_week => 'Last Week',
|
74
|
-
:next_week => 'Next Week',
|
75
|
-
:this_month => 'This Month',
|
76
|
-
:prev_month => 'Last Month',
|
77
|
-
:next_month => 'Next Month',
|
78
|
-
:this_year => 'This Year',
|
79
|
-
:prev_year => 'Last Year',
|
80
|
-
:next_year => 'Next Year',
|
81
|
-
:past => 'Past',
|
82
|
-
:future => 'Future',
|
83
|
-
:range => 'Range',
|
84
|
-
:seconds => 'Seconds',
|
85
|
-
:minutes => 'Minutes',
|
86
|
-
:hours => 'Hours',
|
87
|
-
:days => 'Days',
|
88
|
-
:weeks => 'Weeks',
|
89
|
-
:months => 'Months',
|
90
|
-
:years => 'Years',
|
91
|
-
:optional_attributes => 'Further Options',
|
92
|
-
:null => 'Null',
|
93
|
-
:not_null => 'Not Null',
|
94
|
-
:date_picker_options => {
|
95
|
-
:weekHeader => 'Wk',
|
96
|
-
:firstDay => 0,
|
97
|
-
:isRTL => false,
|
98
|
-
:showMonthAfterYear => false
|
99
|
-
},
|
100
|
-
:datetime_picker_options => {
|
101
|
-
},
|
102
|
-
:errors => {
|
103
|
-
:template => {
|
104
|
-
:header => {
|
105
|
-
:one => "1 error prohibited this %{model} from being saved.",
|
106
|
-
:other => "%{count} errors prohibited this %{model} from being saved"
|
107
|
-
},
|
108
|
-
:body => "There were problems with the following fields:"
|
109
|
-
}
|
110
|
-
},
|
111
|
-
# error_messages
|
112
|
-
:cant_destroy_record => "%{record} can't be destroyed",
|
113
|
-
:internal_error => 'Request Failed (code 500, Internal Error)',
|
114
|
-
:version_inconsistency => 'Version inconsistency - this record has been modified since you started editing it.',
|
115
|
-
:record_not_saved => 'Failed to save record cause of an unknown error',
|
116
|
-
:no_authorization_for_action => "No Authorization for action %{action}"
|
117
|
-
}
|
118
|
-
}
|
119
|
-
}
|