netzke-basepack 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. data/CHANGELOG.rdoc +17 -0
  2. data/README.rdoc +1 -1
  3. data/Rakefile +3 -0
  4. data/TODO.rdoc +1 -4
  5. data/features/form_panel.feature +2 -1
  6. data/features/grid_panel.feature +134 -5
  7. data/features/nested_attributes.feature +4 -1
  8. data/features/paging_form_panel.feature +41 -0
  9. data/features/search_in_grid.feature +20 -7
  10. data/features/step_definitions/form_panel_steps.rb +35 -0
  11. data/features/step_definitions/generic_steps.rb +20 -1
  12. data/features/step_definitions/grid_panel_steps.rb +63 -0
  13. data/features/support/env.rb +4 -0
  14. data/features/validations_in_grid.feature +13 -0
  15. data/features/virtual_attributes.feature +5 -9
  16. data/javascripts/basepack.js +21 -650
  17. data/javascripts/datetimefield.js +24 -0
  18. data/lib/generators/netzke/basepack_generator.rb +10 -0
  19. data/{generators/netzke_basepack/templates/public_assets → lib/generators/netzke/templates/assets}/ts-checkbox.gif +0 -0
  20. data/{generators/netzke_basepack → lib/generators/netzke}/templates/create_netzke_field_lists.rb +0 -0
  21. data/lib/netzke-basepack.rb +3 -41
  22. data/lib/netzke/active_record/attributes.rb +17 -21
  23. data/lib/netzke/basepack.rb +6 -1
  24. data/lib/netzke/basepack/data_accessor.rb +166 -0
  25. data/lib/netzke/basepack/form_panel.rb +69 -20
  26. data/lib/netzke/basepack/form_panel/fields.rb +15 -17
  27. data/lib/netzke/basepack/form_panel/javascripts/comma_list_cbg.js +7 -0
  28. data/lib/netzke/basepack/form_panel/javascripts/display_mode.js +6 -0
  29. data/lib/netzke/basepack/form_panel/javascripts/{main.js → form_panel.js} +42 -8
  30. data/lib/netzke/basepack/form_panel/javascripts/n_radio_group.js +24 -7
  31. data/lib/netzke/basepack/form_panel/javascripts/readonly_mode.js +52 -0
  32. data/lib/netzke/basepack/form_panel/services.rb +28 -2
  33. data/lib/netzke/basepack/form_panel/stylesheets/readonly_mode.css +14 -0
  34. data/lib/netzke/basepack/grid_panel.rb +151 -181
  35. data/lib/netzke/basepack/grid_panel/columns.rb +122 -84
  36. data/lib/netzke/basepack/grid_panel/javascripts/advanced_search.js +22 -27
  37. data/lib/netzke/basepack/grid_panel/javascripts/{main.js → grid_panel.js} +182 -108
  38. data/lib/netzke/basepack/grid_panel/record_form_window.rb +7 -2
  39. data/lib/netzke/basepack/grid_panel/services.rb +58 -39
  40. data/lib/netzke/basepack/paging_form_panel.rb +86 -25
  41. data/lib/netzke/basepack/query_builder.rb +105 -0
  42. data/lib/netzke/basepack/query_builder/javascripts/query_builder.js +140 -0
  43. data/lib/netzke/basepack/search_panel.rb +61 -44
  44. data/lib/netzke/basepack/search_panel/javascripts/condition_field.js +153 -0
  45. data/lib/netzke/basepack/search_panel/javascripts/search_panel.js +64 -0
  46. data/lib/netzke/basepack/search_window.rb +64 -0
  47. data/lib/netzke/basepack/simple_app.rb +1 -1
  48. data/lib/netzke/basepack/simple_app/javascripts/{main.js → simple_app.js} +0 -0
  49. data/lib/netzke/basepack/tab_panel.rb +1 -2
  50. data/lib/netzke/basepack/tab_panel/javascripts/{main.js → tab_panel.js} +0 -0
  51. data/lib/netzke/basepack/version.rb +1 -1
  52. data/locales/en.yml +71 -4
  53. data/netzke-basepack.gemspec +47 -22
  54. data/spec/active_record/attributes_spec.rb +6 -6
  55. data/spec/components/form_panel_spec.rb +2 -13
  56. data/stylesheets/datetimefield.css +54 -0
  57. data/test/rails_app/Gemfile +3 -3
  58. data/test/rails_app/Gemfile.lock +67 -57
  59. data/test/rails_app/README +1 -256
  60. data/test/rails_app/app/components/book_form.rb +1 -3
  61. data/test/rails_app/app/components/book_form_with_custom_fields.rb +20 -0
  62. data/test/rails_app/app/components/book_form_with_nested_attributes.rb +18 -0
  63. data/test/rails_app/app/components/book_grid.rb +3 -1
  64. data/test/rails_app/app/components/book_grid_loader.rb +24 -0
  65. data/test/rails_app/app/components/book_grid_with_custom_columns.rb +28 -0
  66. data/test/rails_app/app/components/book_grid_with_default_values.rb +1 -1
  67. data/test/rails_app/app/components/book_grid_with_virtual_attributes.rb +0 -1
  68. data/test/rails_app/app/components/book_paging_form_panel.rb +3 -2
  69. data/test/rails_app/app/components/book_presentation.rb +3 -3
  70. data/test/rails_app/app/components/book_query_builder.rb +8 -0
  71. data/test/rails_app/app/components/book_search_panel.rb +5 -0
  72. data/test/rails_app/app/components/book_search_panel/javascripts/i18n_de.js +6 -0
  73. data/test/rails_app/app/components/double_book_grid.rb +18 -0
  74. data/test/rails_app/app/components/form_without_model.rb +1 -1
  75. data/test/rails_app/app/components/paging_form_with_search.rb +39 -0
  76. data/test/rails_app/app/components/user_grid.rb +1 -1
  77. data/test/rails_app/app/models/author.rb +1 -0
  78. data/test/rails_app/config/application.rb +6 -1
  79. data/test/rails_app/config/database.yml +7 -5
  80. data/test/rails_app/config/environments/test.rb +1 -1
  81. data/test/rails_app/config/locales/de.yml +35 -0
  82. data/test/rails_app/config/locales/es.yml +84 -8
  83. data/test/rails_app/db/migrate/20101026190021_create_books.rb +2 -2
  84. data/test/rails_app/db/migrate/20110213213050_create_netzke_component_states.rb +20 -0
  85. data/test/rails_app/db/schema.rb +2 -18
  86. data/test/rails_app/public/netzke/basepack/ts-checkbox.gif +0 -0
  87. data/test/unit/active_record_basepack_test.rb +1 -1
  88. metadata +46 -45
  89. data/generators/netzke_basepack/netzke_basepack_generator.rb +0 -13
  90. data/lib/netzke/basepack/grid_panel/search_window.rb +0 -56
  91. data/lib/netzke/data_accessor.rb +0 -113
  92. data/lib/netzke/ext.rb +0 -7
  93. data/lib/netzke/fields_configurator.rb +0 -170
  94. data/lib/netzke/json_array_editor.rb +0 -67
  95. data/lib/netzke/masquerade_selector.rb +0 -53
  96. data/test/rails_app/app/components/some_search_panel.rb +0 -34
  97. data/test/rails_app/db/development_structure.sql +0 -93
  98. data/test/rails_app/db/migrate/20100905214933_create_netzke_preferences.rb +0 -16
@@ -4,10 +4,10 @@ class CreateBooks < ActiveRecord::Migration
4
4
  t.integer :author_id
5
5
  t.string :title
6
6
  t.integer :exemplars
7
- t.boolean :digitized
7
+ t.boolean :digitized, :default => false
8
8
  t.text :notes
9
9
  t.string :tags
10
- t.string :rating
10
+ t.integer :rating
11
11
 
12
12
  t.timestamps
13
13
  end
@@ -0,0 +1,20 @@
1
+ class CreateNetzkeComponentStates < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :netzke_component_states do |t|
4
+ t.string :component
5
+ t.integer :user_id
6
+ t.integer :role_id
7
+ t.text :value
8
+
9
+ t.timestamps
10
+ end
11
+
12
+ add_index :netzke_component_states, :component
13
+ add_index :netzke_component_states, :user_id
14
+ add_index :netzke_component_states, :role_id
15
+ end
16
+
17
+ def self.down
18
+ drop_table :netzke_component_states
19
+ end
20
+ end
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended to check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(:version => 20110101143818) do
13
+ ActiveRecord::Schema.define(:version => 20110213213050) do
14
14
 
15
15
  create_table "addresses", :force => true do |t|
16
16
  t.integer "user_id"
@@ -35,15 +35,8 @@ ActiveRecord::Schema.define(:version => 20110101143818) do
35
35
  t.integer "exemplars"
36
36
  t.boolean "digitized"
37
37
  t.text "notes"
38
- t.datetime "created_at"
39
- t.datetime "updated_at"
40
38
  t.string "tags"
41
- t.string "rating"
42
- end
43
-
44
- create_table "localized_models", :force => true do |t|
45
- t.string "attr1"
46
- t.integer "attr2"
39
+ t.integer "rating"
47
40
  t.datetime "created_at"
48
41
  t.datetime "updated_at"
49
42
  end
@@ -61,15 +54,6 @@ ActiveRecord::Schema.define(:version => 20110101143818) do
61
54
  add_index "netzke_component_states", ["role_id"], :name => "index_netzke_component_states_on_role_id"
62
55
  add_index "netzke_component_states", ["user_id"], :name => "index_netzke_component_states_on_user_id"
63
56
 
64
- create_table "netzke_preferences", :force => true do |t|
65
- t.string "key"
66
- t.text "value"
67
- t.integer "user_id"
68
- t.integer "role_id"
69
- t.datetime "created_at"
70
- t.datetime "updated_at"
71
- end
72
-
73
57
  create_table "roles", :force => true do |t|
74
58
  t.string "name"
75
59
  t.datetime "created_at"
@@ -19,7 +19,7 @@ class ActiveRecordBasepackTest < ActiveSupport::TestCase
19
19
  #
20
20
  # cc = Book.default_column_config(:genre_id)
21
21
  # assert_equal("genre__name", cc[:name])
22
- # assert_equal(:combobox, cc[:editor])
22
+ # assert_equal(:netzkeremotecombo, cc[:editor])
23
23
  #
24
24
  # cc = Book.default_column_config(:genre__popular)
25
25
  # assert_equal(:checkbox, cc[:editor])
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netzke-basepack
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 6
8
- - 3
9
- version: 0.6.3
4
+ prerelease:
5
+ version: 0.6.4
10
6
  platform: ruby
11
7
  authors:
12
8
  - Sergei Kozlov
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-01-14 00:00:00 +01:00
13
+ date: 2011-02-26 00:00:00 +01:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -25,10 +21,6 @@ dependencies:
25
21
  requirements:
26
22
  - - ~>
27
23
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 6
31
- - 4
32
24
  version: 0.6.4
33
25
  type: :runtime
34
26
  version_requirements: *id001
@@ -40,10 +32,6 @@ dependencies:
40
32
  requirements:
41
33
  - - ">="
42
34
  - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
- - 9
46
- - 3
47
35
  version: 0.9.3
48
36
  type: :runtime
49
37
  version_requirements: *id002
@@ -55,10 +43,6 @@ dependencies:
55
43
  requirements:
56
44
  - - ~>
57
45
  - !ruby/object:Gem::Version
58
- segments:
59
- - 3
60
- - 0
61
- - pre2
62
46
  version: 3.0.pre2
63
47
  type: :runtime
64
48
  version_requirements: *id003
@@ -70,8 +54,6 @@ dependencies:
70
54
  requirements:
71
55
  - - ">="
72
56
  - !ruby/object:Gem::Version
73
- segments:
74
- - 0
75
57
  version: "0"
76
58
  type: :runtime
77
59
  version_requirements: *id004
@@ -102,10 +84,12 @@ files:
102
84
  - features/grid_panel.feature
103
85
  - features/i18n.feature
104
86
  - features/nested_attributes.feature
87
+ - features/paging_form_panel.feature
105
88
  - features/search_in_grid.feature
106
89
  - features/simple_app.feature
107
90
  - features/simple_panel.feature
108
91
  - features/step_definitions/accordion_steps.rb
92
+ - features/step_definitions/form_panel_steps.rb
109
93
  - features/step_definitions/generic_steps.rb
110
94
  - features/step_definitions/grid_panel_steps.rb
111
95
  - features/step_definitions/pickle_steps.rb
@@ -114,15 +98,17 @@ files:
114
98
  - features/support/paths.rb
115
99
  - features/support/pickle.rb
116
100
  - features/tab_panel.feature
101
+ - features/validations_in_grid.feature
117
102
  - features/virtual_attributes.feature
118
103
  - features/window.feature
119
104
  - from_05_to_06.rdoc
120
- - generators/netzke_basepack/netzke_basepack_generator.rb
121
- - generators/netzke_basepack/templates/create_netzke_field_lists.rb
122
- - generators/netzke_basepack/templates/public_assets/ts-checkbox.gif
123
105
  - init.rb
124
106
  - install.rb
125
107
  - javascripts/basepack.js
108
+ - javascripts/datetimefield.js
109
+ - lib/generators/netzke/basepack_generator.rb
110
+ - lib/generators/netzke/templates/assets/ts-checkbox.gif
111
+ - lib/generators/netzke/templates/create_netzke_field_lists.rb
126
112
  - lib/netzke-basepack.rb
127
113
  - lib/netzke/active_record.rb
128
114
  - lib/netzke/active_record/attributes.rb
@@ -133,42 +119,44 @@ files:
133
119
  - lib/netzke/basepack/auth_app.rb
134
120
  - lib/netzke/basepack/basic_app.rb
135
121
  - lib/netzke/basepack/border_layout_panel.rb
122
+ - lib/netzke/basepack/data_accessor.rb
136
123
  - lib/netzke/basepack/form_panel.rb
137
124
  - lib/netzke/basepack/form_panel/fields.rb
138
125
  - lib/netzke/basepack/form_panel/javascripts/comma_list_cbg.js
139
126
  - lib/netzke/basepack/form_panel/javascripts/display_mode.js
140
- - lib/netzke/basepack/form_panel/javascripts/main.js
127
+ - lib/netzke/basepack/form_panel/javascripts/form_panel.js
141
128
  - lib/netzke/basepack/form_panel/javascripts/n_radio_group.js
142
129
  - lib/netzke/basepack/form_panel/javascripts/netzkefileupload.js
130
+ - lib/netzke/basepack/form_panel/javascripts/readonly_mode.js
143
131
  - lib/netzke/basepack/form_panel/services.rb
132
+ - lib/netzke/basepack/form_panel/stylesheets/readonly_mode.css
144
133
  - lib/netzke/basepack/grid_panel.rb
145
134
  - lib/netzke/basepack/grid_panel/columns.rb
146
135
  - lib/netzke/basepack/grid_panel/javascripts/advanced_search.js
147
136
  - lib/netzke/basepack/grid_panel/javascripts/edit_in_form.js
148
- - lib/netzke/basepack/grid_panel/javascripts/main.js
137
+ - lib/netzke/basepack/grid_panel/javascripts/grid_panel.js
149
138
  - lib/netzke/basepack/grid_panel/javascripts/misc.js
150
139
  - lib/netzke/basepack/grid_panel/javascripts/rows-dd.js
151
140
  - lib/netzke/basepack/grid_panel/multi_edit_form.rb
152
141
  - lib/netzke/basepack/grid_panel/record_form_window.rb
153
- - lib/netzke/basepack/grid_panel/search_window.rb
154
142
  - lib/netzke/basepack/grid_panel/services.rb
155
143
  - lib/netzke/basepack/paging_form_panel.rb
156
144
  - lib/netzke/basepack/panel.rb
145
+ - lib/netzke/basepack/query_builder.rb
146
+ - lib/netzke/basepack/query_builder/javascripts/query_builder.js
157
147
  - lib/netzke/basepack/search_panel.rb
148
+ - lib/netzke/basepack/search_panel/javascripts/condition_field.js
149
+ - lib/netzke/basepack/search_panel/javascripts/search_panel.js
150
+ - lib/netzke/basepack/search_window.rb
158
151
  - lib/netzke/basepack/simple_app.rb
159
- - lib/netzke/basepack/simple_app/javascripts/main.js
152
+ - lib/netzke/basepack/simple_app/javascripts/simple_app.js
160
153
  - lib/netzke/basepack/simple_app/javascripts/statusbar_ext.js
161
154
  - lib/netzke/basepack/tab_panel.rb
162
- - lib/netzke/basepack/tab_panel/javascripts/main.js
155
+ - lib/netzke/basepack/tab_panel/javascripts/tab_panel.js
163
156
  - lib/netzke/basepack/version.rb
164
157
  - lib/netzke/basepack/window.rb
165
158
  - lib/netzke/basepack/wrap_lazy_loaded.rb
166
159
  - lib/netzke/basepack/wrapper.rb
167
- - lib/netzke/data_accessor.rb
168
- - lib/netzke/ext.rb
169
- - lib/netzke/fields_configurator.rb
170
- - lib/netzke/json_array_editor.rb
171
- - lib/netzke/masquerade_selector.rb
172
160
  - lib/tasks/netzke_basepack_tasks.rake
173
161
  - locales/en.yml
174
162
  - netzke-basepack.gemspec
@@ -179,6 +167,7 @@ files:
179
167
  - spec/factories.rb
180
168
  - spec/spec_helper.rb
181
169
  - stylesheets/basepack.css
170
+ - stylesheets/datetimefield.css
182
171
  - test/console_with_fixtures.rb
183
172
  - test/fixtures/books.yml
184
173
  - test/fixtures/categories.yml
@@ -195,17 +184,26 @@ files:
195
184
  - test/rails_app/Rakefile
196
185
  - test/rails_app/app/components/author_grid.rb
197
186
  - test/rails_app/app/components/book_form.rb
187
+ - test/rails_app/app/components/book_form_with_custom_fields.rb
188
+ - test/rails_app/app/components/book_form_with_nested_attributes.rb
198
189
  - test/rails_app/app/components/book_grid.rb
190
+ - test/rails_app/app/components/book_grid_loader.rb
191
+ - test/rails_app/app/components/book_grid_with_custom_columns.rb
199
192
  - test/rails_app/app/components/book_grid_with_default_values.rb
200
193
  - test/rails_app/app/components/book_grid_with_nested_attributes.rb
201
194
  - test/rails_app/app/components/book_grid_with_virtual_attributes.rb
202
195
  - test/rails_app/app/components/book_paging_form_panel.rb
203
196
  - test/rails_app/app/components/book_presentation.rb
197
+ - test/rails_app/app/components/book_query_builder.rb
198
+ - test/rails_app/app/components/book_search_panel.rb
199
+ - test/rails_app/app/components/book_search_panel/javascripts/i18n_de.js
204
200
  - test/rails_app/app/components/books_bound_to_author.rb
201
+ - test/rails_app/app/components/double_book_grid.rb
205
202
  - test/rails_app/app/components/form_without_model.rb
206
203
  - test/rails_app/app/components/generic_user_form.rb
207
204
  - test/rails_app/app/components/lockable_book_form.rb
208
205
  - test/rails_app/app/components/lockable_user_form.rb
206
+ - test/rails_app/app/components/paging_form_with_search.rb
209
207
  - test/rails_app/app/components/simple_accordion.rb
210
208
  - test/rails_app/app/components/simple_panel.rb
211
209
  - test/rails_app/app/components/simple_tab_panel.rb
@@ -214,7 +212,6 @@ files:
214
212
  - test/rails_app/app/components/some_accordion_panel.rb
215
213
  - test/rails_app/app/components/some_auth_app.rb
216
214
  - test/rails_app/app/components/some_border_layout.rb
217
- - test/rails_app/app/components/some_search_panel.rb
218
215
  - test/rails_app/app/components/some_simple_app.rb
219
216
  - test/rails_app/app/components/some_tab_panel.rb
220
217
  - test/rails_app/app/components/user_form.rb
@@ -250,15 +247,15 @@ files:
250
247
  - test/rails_app/config/initializers/netzke.rb
251
248
  - test/rails_app/config/initializers/secret_token.rb
252
249
  - test/rails_app/config/initializers/session_store.rb
250
+ - test/rails_app/config/locales/de.yml
253
251
  - test/rails_app/config/locales/es.yml
254
252
  - test/rails_app/config/routes.rb
255
- - test/rails_app/db/development_structure.sql
256
- - test/rails_app/db/migrate/20100905214933_create_netzke_preferences.rb
257
253
  - test/rails_app/db/migrate/20100914104207_create_users.rb
258
254
  - test/rails_app/db/migrate/20100914104236_create_roles.rb
259
255
  - test/rails_app/db/migrate/20101026185816_create_authors.rb
260
256
  - test/rails_app/db/migrate/20101026190021_create_books.rb
261
257
  - test/rails_app/db/migrate/20110101143818_create_addresses.rb
258
+ - test/rails_app/db/migrate/20110213213050_create_netzke_component_states.rb
262
259
  - test/rails_app/db/schema.rb
263
260
  - test/rails_app/db/seeds.rb
264
261
  - test/rails_app/features/support/paths.rb
@@ -275,6 +272,7 @@ files:
275
272
  - test/rails_app/public/javascripts/effects.js
276
273
  - test/rails_app/public/javascripts/prototype.js
277
274
  - test/rails_app/public/javascripts/rails.js
275
+ - test/rails_app/public/netzke/basepack/ts-checkbox.gif
278
276
  - test/rails_app/public/robots.txt
279
277
  - test/rails_app/public/stylesheets/.gitkeep
280
278
  - test/rails_app/script/rails
@@ -304,7 +302,7 @@ homepage: http://netzke.org
304
302
  licenses: []
305
303
 
306
304
  post_install_message: "\n\
307
- ========================================================================\n\n Thanks for installing netzke-basepack!\n\n Netzke home page: http://netzke.org\n Netzke Google Groups: http://groups.google.com/group/netzke\n Netzke tutorials: http://blog.writelesscode.com\n\n\
305
+ ========================================================================\n\n Thanks for installing netzke-basepack!\n\n Don't forget to run \"rails generate netzke:baspack\" to copy necessary\n assets to your public folder!\n\n Netzke home page: http://netzke.org\n Netzke Google Groups: http://groups.google.com/group/netzke\n Netzke tutorials: http://blog.writelesscode.com\n\n\
308
306
  ========================================================================\n\n"
309
307
  rdoc_options: []
310
308
 
@@ -315,21 +313,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
315
313
  requirements:
316
314
  - - ">="
317
315
  - !ruby/object:Gem::Version
318
- segments:
319
- - 0
320
316
  version: "0"
321
317
  required_rubygems_version: !ruby/object:Gem::Requirement
322
318
  none: false
323
319
  requirements:
324
320
  - - ">="
325
321
  - !ruby/object:Gem::Version
326
- segments:
327
- - 0
328
322
  version: "0"
329
323
  requirements: []
330
324
 
331
325
  rubyforge_project:
332
- rubygems_version: 1.3.7
326
+ rubygems_version: 1.5.2
333
327
  signing_key:
334
328
  specification_version: 3
335
329
  summary: Pre-built Rails + ExtJS components for your RIA
@@ -343,17 +337,25 @@ test_files:
343
337
  - test/console_with_fixtures.rb
344
338
  - test/rails_app/app/components/author_grid.rb
345
339
  - test/rails_app/app/components/book_form.rb
340
+ - test/rails_app/app/components/book_form_with_custom_fields.rb
341
+ - test/rails_app/app/components/book_form_with_nested_attributes.rb
346
342
  - test/rails_app/app/components/book_grid.rb
343
+ - test/rails_app/app/components/book_grid_loader.rb
344
+ - test/rails_app/app/components/book_grid_with_custom_columns.rb
347
345
  - test/rails_app/app/components/book_grid_with_default_values.rb
348
346
  - test/rails_app/app/components/book_grid_with_nested_attributes.rb
349
347
  - test/rails_app/app/components/book_grid_with_virtual_attributes.rb
350
348
  - test/rails_app/app/components/book_paging_form_panel.rb
351
349
  - test/rails_app/app/components/book_presentation.rb
350
+ - test/rails_app/app/components/book_query_builder.rb
351
+ - test/rails_app/app/components/book_search_panel.rb
352
352
  - test/rails_app/app/components/books_bound_to_author.rb
353
+ - test/rails_app/app/components/double_book_grid.rb
353
354
  - test/rails_app/app/components/form_without_model.rb
354
355
  - test/rails_app/app/components/generic_user_form.rb
355
356
  - test/rails_app/app/components/lockable_book_form.rb
356
357
  - test/rails_app/app/components/lockable_user_form.rb
358
+ - test/rails_app/app/components/paging_form_with_search.rb
357
359
  - test/rails_app/app/components/simple_accordion.rb
358
360
  - test/rails_app/app/components/simple_panel.rb
359
361
  - test/rails_app/app/components/simple_tab_panel.rb
@@ -362,7 +364,6 @@ test_files:
362
364
  - test/rails_app/app/components/some_accordion_panel.rb
363
365
  - test/rails_app/app/components/some_auth_app.rb
364
366
  - test/rails_app/app/components/some_border_layout.rb
365
- - test/rails_app/app/components/some_search_panel.rb
366
367
  - test/rails_app/app/components/some_simple_app.rb
367
368
  - test/rails_app/app/components/some_tab_panel.rb
368
369
  - test/rails_app/app/components/user_form.rb
@@ -394,12 +395,12 @@ test_files:
394
395
  - test/rails_app/config/initializers/secret_token.rb
395
396
  - test/rails_app/config/initializers/session_store.rb
396
397
  - test/rails_app/config/routes.rb
397
- - test/rails_app/db/migrate/20100905214933_create_netzke_preferences.rb
398
398
  - test/rails_app/db/migrate/20100914104207_create_users.rb
399
399
  - test/rails_app/db/migrate/20100914104236_create_roles.rb
400
400
  - test/rails_app/db/migrate/20101026185816_create_authors.rb
401
401
  - test/rails_app/db/migrate/20101026190021_create_books.rb
402
402
  - test/rails_app/db/migrate/20110101143818_create_addresses.rb
403
+ - test/rails_app/db/migrate/20110213213050_create_netzke_component_states.rb
403
404
  - test/rails_app/db/schema.rb
404
405
  - test/rails_app/db/seeds.rb
405
406
  - test/rails_app/features/support/paths.rb
@@ -1,13 +0,0 @@
1
- # class NetzkeCoreGenerator < Rails::Generator::NamedBase
2
- class NetzkeBasepackGenerator < Rails::Generator::Base
3
- def manifest
4
- record do |m|
5
- m.directory 'public/netzke/basepack'
6
- m.file 'public_assets/ts-checkbox.gif', "public/netzke/basepack/ts-checkbox.gif"
7
-
8
- m.migration_template 'create_netzke_field_lists.rb', 'db/migrate', :assigns => {
9
- :migration_name => "CreateNetzkeFieldLists"
10
- }, :migration_file_name => "create_netzke_field_lists"
11
- end
12
- end
13
- end
@@ -1,56 +0,0 @@
1
- module Netzke
2
- module Basepack
3
- class GridPanel < Netzke::Base
4
- class SearchWindow < Netzke::Basepack::Window
5
-
6
- action :search
7
- action :cancel
8
- action :clear, :icon => :application_form
9
-
10
- js_properties :title => "Advanced Search",
11
- :width => "50%",
12
- :auto_height => true,
13
- :buttons => [:search.action, :cancel.action],
14
- :tbar => [:clear.action]
15
-
16
- config :items => [js_component(:search_panel)]
17
-
18
- component :search_panel do
19
- {
20
- :class_name => "Basepack::SearchPanel",
21
- :model => config[:model],
22
- :items => config[:fields]
23
- }
24
- end
25
-
26
- js_method :on_clear, <<-JS
27
- function(){
28
- this.items.first().getForm().reset();
29
- }
30
- JS
31
-
32
- js_method :on_search, <<-JS
33
- function(){
34
- this.conditions = this.items.first().getForm().getValues();
35
-
36
- // do not send values of empty values
37
- for (var cond in this.conditions) {
38
- if (this.conditions[cond] == "") delete this.conditions[cond];
39
- }
40
-
41
- this.closeRes = 'OK';
42
- this.close();
43
- }
44
- JS
45
-
46
- js_method :on_cancel, <<-JS
47
- function(){
48
- this.closeRes = 'cancel';
49
- this.close();
50
- }
51
- JS
52
-
53
- end
54
- end
55
- end
56
- end