erp_forms 3.0.2 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/app/models/dynamic_form_document.rb +1 -0
  2. data/app/widgets/dynamic_grid/base.rb +26 -0
  3. data/app/widgets/dynamic_grid/helpers/controller/dynamic_grid_controller_helper.rb +3 -0
  4. data/app/widgets/dynamic_grid/helpers/view/dynamic_grid_view_helper.rb +3 -0
  5. data/app/widgets/dynamic_grid/javascript/dynamic_grid.js +12 -0
  6. data/app/widgets/dynamic_grid/views/index.html.erb +1 -0
  7. data/lib/erp_forms/dynamic_grid_column.rb +1 -1
  8. data/lib/erp_forms/version.rb +2 -2
  9. data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +15 -0
  10. data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +12 -0
  11. data/spec/dummy/db/data_migrations/20110608185830_create_default_dynamic_models_and_forms.erp_forms.rb +33 -0
  12. data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +19 -0
  13. data/spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb +252 -0
  14. data/spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb +53 -0
  15. data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +16 -0
  16. data/spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb +21 -0
  17. data/spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb +32 -0
  18. data/spec/dummy/db/data_migrations/20110828190913_create_desktop_app_dynamic_forms.erp_forms.rb +19 -0
  19. data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +12 -0
  20. data/spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb +23 -0
  21. data/spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb +42 -0
  22. data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +22 -0
  23. data/spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb +29 -0
  24. data/spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb +11 -0
  25. data/spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb +19 -0
  26. data/spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb +23 -0
  27. data/spec/dummy/db/data_migrations/20120824013449_create_ticket_form.erp_forms.rb +67 -0
  28. data/spec/dummy/db/data_migrations/20121026013449_update_ticket_form.erp_forms.rb +65 -0
  29. data/spec/dummy/db/data_migrations/20121026191738_update_contact_form.erp_forms.rb +27 -0
  30. data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +20 -0
  31. data/spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb +16 -0
  32. data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +24 -0
  33. data/spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb +23 -0
  34. data/spec/dummy/db/migrate/20130105143900_base_erp_services.erp_base_erp_svcs.rb +461 -0
  35. data/spec/dummy/db/migrate/20130105143901_base_tech_services.erp_tech_svcs.rb +271 -0
  36. data/spec/dummy/db/migrate/20130105143902_create_has_attribute_tables.erp_tech_svcs.rb +39 -0
  37. data/spec/dummy/db/migrate/20130105143903_create_groups.erp_tech_svcs.rb +19 -0
  38. data/spec/dummy/db/migrate/20130105143904_upgrade_security.erp_tech_svcs.rb +54 -0
  39. data/spec/dummy/db/migrate/20130105143905_upgrade_security2.erp_tech_svcs.rb +270 -0
  40. data/spec/dummy/db/migrate/20130105143906_base_app_framework.erp_app.rb +276 -0
  41. data/spec/dummy/db/migrate/20130105143907_dynamic_forms.erp_forms.rb +95 -0
  42. data/spec/dummy/db/migrate/20130105143908_create_tickets.erp_forms.rb +19 -0
  43. data/spec/dummy/db/migrate/20130105143909_upgrade_dynamic_forms_table.erp_forms.rb +32 -0
  44. data/spec/dummy/db/schema.rb +894 -0
  45. data/spec/dummy/db/spec.sqlite3 +0 -0
  46. data/spec/dummy/log/spec.log +3477 -0
  47. metadata +84 -4
  48. data/public/javascripts/erp_app/shared/dynamic_forms/dynamic_form_fields.js +0 -99
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-08 00:00:00.000000000 Z
12
+ date: 2013-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dynamic_attributes
@@ -88,7 +88,6 @@ files:
88
88
  - public/javascripts/erp_app/desktop/applications/dynamic_forms/form_builder.js
89
89
  - public/javascripts/erp_app/desktop/applications/dynamic_forms/module.js
90
90
  - public/javascripts/erp_app/desktop/applications/dynamic_forms/west_region.js
91
- - public/javascripts/erp_app/shared/dynamic_forms/dynamic_form_fields.js
92
91
  - public/javascripts/erp_app/shared/dynamic_forms/dynamic_forms_validation.js
93
92
  - public/stylesheets/erp_app/desktop/applications/dynamic_forms/comments.css
94
93
  - app/assets/javascripts/erp_forms/application.js
@@ -109,6 +108,11 @@ files:
109
108
  - app/views/dynamic_form_mailer/widget_email_with_attachments.text.erb
110
109
  - app/views/layouts/application.html.erb
111
110
  - app/views/layouts/erp_forms/application.html.erb
111
+ - app/widgets/dynamic_grid/base.rb
112
+ - app/widgets/dynamic_grid/helpers/controller/dynamic_grid_controller_helper.rb
113
+ - app/widgets/dynamic_grid/helpers/view/dynamic_grid_view_helper.rb
114
+ - app/widgets/dynamic_grid/javascript/dynamic_grid.js
115
+ - app/widgets/dynamic_grid/views/index.html.erb
112
116
  - config/routes.rb
113
117
  - db/data_migrations/20110608185830_create_default_dynamic_models_and_forms.rb
114
118
  - db/data_migrations/20110828190913_create_desktop_app_dynamic_forms.rb
@@ -153,6 +157,44 @@ files:
153
157
  - spec/dummy/config/locales/en.yml
154
158
  - spec/dummy/config/routes.rb
155
159
  - spec/dummy/config.ru
160
+ - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
161
+ - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
162
+ - spec/dummy/db/data_migrations/20110608185830_create_default_dynamic_models_and_forms.erp_forms.rb
163
+ - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
164
+ - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
165
+ - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
166
+ - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
167
+ - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
168
+ - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
169
+ - spec/dummy/db/data_migrations/20110828190913_create_desktop_app_dynamic_forms.erp_forms.rb
170
+ - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
171
+ - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
172
+ - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
173
+ - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
174
+ - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
175
+ - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
176
+ - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
177
+ - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
178
+ - spec/dummy/db/data_migrations/20120824013449_create_ticket_form.erp_forms.rb
179
+ - spec/dummy/db/data_migrations/20121026013449_update_ticket_form.erp_forms.rb
180
+ - spec/dummy/db/data_migrations/20121026191738_update_contact_form.erp_forms.rb
181
+ - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
182
+ - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
183
+ - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
184
+ - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
185
+ - spec/dummy/db/migrate/20130105143900_base_erp_services.erp_base_erp_svcs.rb
186
+ - spec/dummy/db/migrate/20130105143901_base_tech_services.erp_tech_svcs.rb
187
+ - spec/dummy/db/migrate/20130105143902_create_has_attribute_tables.erp_tech_svcs.rb
188
+ - spec/dummy/db/migrate/20130105143903_create_groups.erp_tech_svcs.rb
189
+ - spec/dummy/db/migrate/20130105143904_upgrade_security.erp_tech_svcs.rb
190
+ - spec/dummy/db/migrate/20130105143905_upgrade_security2.erp_tech_svcs.rb
191
+ - spec/dummy/db/migrate/20130105143906_base_app_framework.erp_app.rb
192
+ - spec/dummy/db/migrate/20130105143907_dynamic_forms.erp_forms.rb
193
+ - spec/dummy/db/migrate/20130105143908_create_tickets.erp_forms.rb
194
+ - spec/dummy/db/migrate/20130105143909_upgrade_dynamic_forms_table.erp_forms.rb
195
+ - spec/dummy/db/schema.rb
196
+ - spec/dummy/db/spec.sqlite3
197
+ - spec/dummy/log/spec.log
156
198
  - spec/dummy/public/404.html
157
199
  - spec/dummy/public/422.html
158
200
  - spec/dummy/public/500.html
@@ -184,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
226
  version: '0'
185
227
  requirements: []
186
228
  rubyforge_project:
187
- rubygems_version: 1.8.24
229
+ rubygems_version: 1.8.23
188
230
  signing_key:
189
231
  specification_version: 3
190
232
  summary: ErpForms provides dynamic form capability to existing and dynamic models.
@@ -208,6 +250,44 @@ test_files:
208
250
  - spec/dummy/config/locales/en.yml
209
251
  - spec/dummy/config/routes.rb
210
252
  - spec/dummy/config.ru
253
+ - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
254
+ - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
255
+ - spec/dummy/db/data_migrations/20110608185830_create_default_dynamic_models_and_forms.erp_forms.rb
256
+ - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
257
+ - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
258
+ - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
259
+ - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
260
+ - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
261
+ - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
262
+ - spec/dummy/db/data_migrations/20110828190913_create_desktop_app_dynamic_forms.erp_forms.rb
263
+ - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
264
+ - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
265
+ - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
266
+ - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
267
+ - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
268
+ - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
269
+ - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
270
+ - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
271
+ - spec/dummy/db/data_migrations/20120824013449_create_ticket_form.erp_forms.rb
272
+ - spec/dummy/db/data_migrations/20121026013449_update_ticket_form.erp_forms.rb
273
+ - spec/dummy/db/data_migrations/20121026191738_update_contact_form.erp_forms.rb
274
+ - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
275
+ - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
276
+ - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
277
+ - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
278
+ - spec/dummy/db/migrate/20130105143900_base_erp_services.erp_base_erp_svcs.rb
279
+ - spec/dummy/db/migrate/20130105143901_base_tech_services.erp_tech_svcs.rb
280
+ - spec/dummy/db/migrate/20130105143902_create_has_attribute_tables.erp_tech_svcs.rb
281
+ - spec/dummy/db/migrate/20130105143903_create_groups.erp_tech_svcs.rb
282
+ - spec/dummy/db/migrate/20130105143904_upgrade_security.erp_tech_svcs.rb
283
+ - spec/dummy/db/migrate/20130105143905_upgrade_security2.erp_tech_svcs.rb
284
+ - spec/dummy/db/migrate/20130105143906_base_app_framework.erp_app.rb
285
+ - spec/dummy/db/migrate/20130105143907_dynamic_forms.erp_forms.rb
286
+ - spec/dummy/db/migrate/20130105143908_create_tickets.erp_forms.rb
287
+ - spec/dummy/db/migrate/20130105143909_upgrade_dynamic_forms_table.erp_forms.rb
288
+ - spec/dummy/db/schema.rb
289
+ - spec/dummy/db/spec.sqlite3
290
+ - spec/dummy/log/spec.log
211
291
  - spec/dummy/public/404.html
212
292
  - spec/dummy/public/422.html
213
293
  - spec/dummy/public/500.html
@@ -1,99 +0,0 @@
1
- Ext.define("Compass.ErpForms.DynamicForms.DynamicRelatedComboBox",{
2
- extend:"Ext.form.field.ComboBox",
3
- alias:'widget.related_combobox',
4
-
5
- constructor : function(config) {
6
- var self = this;
7
-
8
- config = Ext.apply({
9
- loadingText:'Retrieving Options...',
10
- displayField: config.displayField,
11
- valueField: 'id',
12
- triggerAction: 'all',
13
- store: Ext.create('Ext.data.Store', {
14
- fields: (config.fields || [{ name: 'id' }]),
15
- proxy: {
16
- type:'ajax',
17
- reader:{
18
- type:'json',
19
- root:'data'
20
- },
21
- extraParams: config.extraParams,
22
- url: (config.url || '/erp_forms/erp_app/desktop/dynamic_forms/forms/related_field')
23
- },
24
- autoLoad: true,
25
- listeners:{
26
- load: function(store, records, options){
27
- try { var record_value = self.ownerCt.getRecord().data[self.name]; }catch(e){}
28
- if (!Ext.isEmpty(record_value)){
29
- self.setValue(record_value);
30
- }else if (!Ext.isEmpty(self.default_value)){
31
- // self.value did not want to work for selecting default value so we use custom self.default_value
32
- self.setValue(self.default_value);
33
- }
34
- }
35
- }
36
- })
37
- }, config);
38
-
39
- this.callParent([config]);
40
- }
41
- });
42
-
43
- Ext.define("Compass.ErpForms.DynamicForms.DynamicRelatedSearchBox",{
44
- extend:"Ext.form.field.ComboBox",
45
- alias:'widget.related_searchbox',
46
-
47
- constructor : function(config) {
48
- var self = this;
49
-
50
- config = Ext.apply({
51
- emptyText: (config.emptyText || 'Search'),
52
- valueField: 'id',
53
- triggerAction: 'all',
54
- listConfig: {
55
- loadingText: 'Searching...',
56
- emptyText: 'No matching results found.',
57
- // Custom rendering template for each item
58
- getInnerTpl: function() {
59
- return config.display_template;
60
- }
61
- },
62
- displayTpl : Ext.create('Ext.XTemplate',
63
- '<tpl for=".">' +
64
- config.display_template +
65
- '</tpl>'
66
- ),
67
- hideTrigger:true,
68
- typeAhead: (config.typeAhead || true),
69
- pageSize: (config.pageSize || 10),
70
- store: Ext.create('Ext.data.Store', {
71
- pageSize: (config.pageSize || 10),
72
- fields: (config.fields || [{ name: 'id' }]),
73
- proxy: {
74
- type:'ajax',
75
- reader:{
76
- type:'json',
77
- root:'data'
78
- },
79
- extraParams: config.extraParams,
80
- url: (config.url || '/erp_forms/erp_app/desktop/dynamic_forms/forms/related_field')
81
- },
82
- autoLoad: true,
83
- listeners:{
84
- load: function(store, records, options){
85
- try { var record_value = self.ownerCt.getRecord().data[self.name]; }catch(e){}
86
- if (!Ext.isEmpty(record_value)){
87
- self.setValue(record_value);
88
- }else if (!Ext.isEmpty(self.default_value)){
89
- // self.value did not want to work for selecting default value so we use custom self.default_value
90
- self.setValue(self.default_value);
91
- }
92
- }
93
- }
94
- })
95
- }, config);
96
-
97
- this.callParent([config]);
98
- }
99
- });