erp_app 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/app/controllers/erp_app/desktop/scaffold/base_controller.rb +72 -72
  2. data/app/controllers/erp_app/desktop/security_management/capabilities_controller.rb +2 -1
  3. data/app/controllers/erp_app/desktop/security_management/groups_controller.rb +2 -0
  4. data/app/views/erp_app/desktop/base/index.erb +1 -0
  5. data/config/routes.rb +1 -1
  6. data/lib/active_ext/core.rb +88 -65
  7. data/lib/active_ext/data_structures/column.rb +17 -17
  8. data/lib/active_ext/data_structures/columns.rb +55 -52
  9. data/lib/active_ext/ext_helpers/table_builder.rb +58 -58
  10. data/lib/erp_app/engine.rb +1 -1
  11. data/lib/erp_app/extensions/railties/action_view/helpers/extjs_helper.rb +5 -2
  12. data/lib/erp_app/extensions/railties/action_view/helpers/include_helper.rb +4 -4
  13. data/lib/erp_app/version.rb +1 -1
  14. data/lib/erp_app/widgets/javascript_loader.rb +1 -1
  15. data/lib/erp_app/widgets/loader.rb +5 -6
  16. data/lib/generators/compass_ae_mobile/USAGE +9 -0
  17. data/lib/generators/compass_ae_mobile/compass_ae_mobile_generator.rb +35 -0
  18. data/lib/generators/compass_ae_mobile/templates/controllers/controller_template.erb +4 -0
  19. data/lib/generators/compass_ae_mobile/templates/javascripts/main_template.erb +29 -0
  20. data/lib/generators/compass_ae_mobile/templates/views/view_template.erb +25 -0
  21. data/public/javascripts/erp_app/desktop/applications/scaffold/models_tree_panel.js +11 -59
  22. data/public/javascripts/erp_app/desktop/applications/scaffold/module.js +37 -36
  23. data/public/javascripts/erp_app/shared/Ext.ux.CheckColumn.js +115 -0
  24. data/public/javascripts/erp_app/shared/compass_ckeditor.js +17 -0
  25. data/public/javascripts/erp_app/shared/compass_codemirror.js +171 -159
  26. data/public/javascripts/erp_app/shared/file_manager_tree.js +1 -1
  27. data/public/stylesheets/erp_app/shared/grid_cell.css +23 -0
  28. metadata +9 -9
  29. data/app/controllers/erp_app/desktop/scaffold/role_controller.rb +0 -23
  30. data/app/views/erp_app/desktop/scaffold/role/create.rhtml +0 -19
  31. data/app/views/erp_app/desktop/scaffold/role/edit.rhtml +0 -65
  32. data/app/views/erp_app/desktop/scaffold/role/new.rhtml +0 -41
  33. data/app/views/erp_app/desktop/scaffold/role/show.rhtml +0 -58
  34. data/app/views/erp_app/desktop/scaffold/role/update.rhtml +0 -1
  35. data/public/javascripts/erp_app/desktop/applications/scaffold/role_active_ext.js +0 -17
@@ -1,58 +0,0 @@
1
- <h1>Viewing <%= @singular_name.capitalize %></h1>
2
- <div id='show'>
3
- <table>
4
- <% if @options[:show_id]==true %>
5
- <tr>
6
- <td style="text-align:right;">
7
- <b>Id:</b>
8
- </td>
9
- <td>
10
- <%= @model.id %>
11
- </td>
12
- </tr>
13
-
14
- <% end %>
15
- <% attribute_keys= @fields %>
16
- <% attribute_keys.length.times do |attribute_key_id| %>
17
- <% value = attribute_keys[attribute_key_id] %>
18
-
19
- <tr>
20
- <td style="text-align:right;">
21
- <b><% Rails.logger.debug("@labels:#{@labels}")
22
- override_label_value = @labels[value.to_sym] unless @labels.nil?
23
- if(override_label_value!=nil)
24
- label_value=override_label_value
25
- else
26
- label_value= value.to_s.humanize
27
- end %>
28
- <%= label_value %>:</b>
29
- </td>
30
- <td>
31
- <%= @model[attribute_keys[attribute_key_id] ] %>
32
- </td>
33
- </tr>
34
-
35
- <% end %>
36
- <% if @options[:show_timestamps]==true %>
37
- <tr>
38
- <td style="text-align:right;">
39
- <b>Created At:</b>
40
- </td>
41
- <td>
42
- <%= @model.created_at %>
43
- </td>
44
- </tr>
45
- <tr>
46
- <td style="text-align:right;">
47
- <b>Updated At:</b>
48
- </td>
49
- <td>
50
- <%= @model.updated_at %>
51
- </td>
52
- </tr>
53
- <% end %>
54
- </table>
55
- </div>
56
- <div style="text-align:right;">
57
- <%=active_ext_close_button%>
58
- </div>
@@ -1 +0,0 @@
1
- default Update template
@@ -1,17 +0,0 @@
1
- Ext.define("Compass.ErpApp.Desktop.Applications.Scaffold.RoleActiveExtGrid",{
2
- extend:"Compass.ErpApp.Shared.ActiveExt.ActiveExtGridPanel",
3
- alias:'widget.role_activeextgrid',
4
- constructor : function(config){
5
- config = Ext.apply({
6
- title:'Role',
7
- modelUrl:'/erp_app/desktop/scaffold/role/',
8
- editable:true,
9
- page:true,
10
- pageSize:30,
11
- displayMsg:'Displaying {0} - {1} of {2}',
12
- emptyMsg:'Empty'
13
- }, config);
14
-
15
- this.callParent([config]);
16
- }
17
- });