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.
- data/app/controllers/erp_app/desktop/scaffold/base_controller.rb +72 -72
- data/app/controllers/erp_app/desktop/security_management/capabilities_controller.rb +2 -1
- data/app/controllers/erp_app/desktop/security_management/groups_controller.rb +2 -0
- data/app/views/erp_app/desktop/base/index.erb +1 -0
- data/config/routes.rb +1 -1
- data/lib/active_ext/core.rb +88 -65
- data/lib/active_ext/data_structures/column.rb +17 -17
- data/lib/active_ext/data_structures/columns.rb +55 -52
- data/lib/active_ext/ext_helpers/table_builder.rb +58 -58
- data/lib/erp_app/engine.rb +1 -1
- data/lib/erp_app/extensions/railties/action_view/helpers/extjs_helper.rb +5 -2
- data/lib/erp_app/extensions/railties/action_view/helpers/include_helper.rb +4 -4
- data/lib/erp_app/version.rb +1 -1
- data/lib/erp_app/widgets/javascript_loader.rb +1 -1
- data/lib/erp_app/widgets/loader.rb +5 -6
- data/lib/generators/compass_ae_mobile/USAGE +9 -0
- data/lib/generators/compass_ae_mobile/compass_ae_mobile_generator.rb +35 -0
- data/lib/generators/compass_ae_mobile/templates/controllers/controller_template.erb +4 -0
- data/lib/generators/compass_ae_mobile/templates/javascripts/main_template.erb +29 -0
- data/lib/generators/compass_ae_mobile/templates/views/view_template.erb +25 -0
- data/public/javascripts/erp_app/desktop/applications/scaffold/models_tree_panel.js +11 -59
- data/public/javascripts/erp_app/desktop/applications/scaffold/module.js +37 -36
- data/public/javascripts/erp_app/shared/Ext.ux.CheckColumn.js +115 -0
- data/public/javascripts/erp_app/shared/compass_ckeditor.js +17 -0
- data/public/javascripts/erp_app/shared/compass_codemirror.js +171 -159
- data/public/javascripts/erp_app/shared/file_manager_tree.js +1 -1
- data/public/stylesheets/erp_app/shared/grid_cell.css +23 -0
- metadata +9 -9
- data/app/controllers/erp_app/desktop/scaffold/role_controller.rb +0 -23
- data/app/views/erp_app/desktop/scaffold/role/create.rhtml +0 -19
- data/app/views/erp_app/desktop/scaffold/role/edit.rhtml +0 -65
- data/app/views/erp_app/desktop/scaffold/role/new.rhtml +0 -41
- data/app/views/erp_app/desktop/scaffold/role/show.rhtml +0 -58
- data/app/views/erp_app/desktop/scaffold/role/update.rhtml +0 -1
- 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
|
-
});
|