forgeos_core 1.9.1 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +339 -0
- data/COPYING.LESSER +165 -0
- data/app/assets/images/forgeos/dataTables/Sorting icons.psd +0 -0
- data/app/assets/images/forgeos/dataTables/back_disabled.jpg +0 -0
- data/app/assets/images/forgeos/dataTables/back_enabled.jpg +0 -0
- data/app/assets/images/forgeos/dataTables/favicon.ico +0 -0
- data/app/assets/images/forgeos/dataTables/forward_disabled.jpg +0 -0
- data/app/assets/images/forgeos/dataTables/forward_enabled.jpg +0 -0
- data/app/assets/images/forgeos/dataTables/sort_asc.png +0 -0
- data/app/assets/images/forgeos/dataTables/sort_asc_disabled.png +0 -0
- data/app/assets/images/forgeos/dataTables/sort_both.png +0 -0
- data/app/assets/images/forgeos/dataTables/sort_desc.png +0 -0
- data/app/assets/images/forgeos/dataTables/sort_desc_disabled.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/bubble-quantity-products.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/check-checked.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/check-unchecked.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/context.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/create.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/dark-blue-minus.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/dark-blue-plus.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/dot.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/f.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/fminus.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/fminus_rtl.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/folder.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/fplus.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/fplus_rtl.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/lastli.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/lastli_rtl.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/li.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/remove.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/rename.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/throbber.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/brown-minus.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/brown-plus.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/bubble-quantity-elements.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/context.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/create.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/dot.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/f.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/fminus.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/fminus_rtl.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/fplus.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/fplus_rtl.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/images.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/lastli.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/lastli_rtl.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/li.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/remove.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/rename.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/throbber.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/marker.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/marker_rtl.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/plus.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/remove.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/remove.png +0 -0
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_core/commons.js +8 -3
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_core/dataTable.js +2 -2
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_core/tinyMCE.js +1 -1
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_core/trees.js +202 -257
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_core/left-sidebar.js +16 -23
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_core/settings.js +5 -5
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_core/tabs.js +3 -3
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_core/trees.js +2 -45
- data/app/assets/javascripts/forgeos/jquery.dataTables.min.js +138 -529
- data/app/assets/javascripts/forgeos/jstree/jquery.jstree.js +4544 -0
- data/app/assets/stylesheets/forgeos/admin/forgeos_core/_lightbox.css.sass +2 -21
- data/app/assets/stylesheets/forgeos/admin/forgeos_core/_settings.css.sass +77 -39
- data/app/assets/stylesheets/forgeos/dataTables/demo_table.css +150 -27
- data/app/assets/stylesheets/forgeos/jstree/themes/association_categories/style.css.sass +36 -154
- data/app/assets/stylesheets/forgeos/jstree/themes/categories/style.css.sass +59 -58
- data/app/controllers/admin/accounts_controller.rb +1 -1
- data/app/controllers/admin/administrators_controller.rb +13 -4
- data/app/controllers/admin/attachments_controller.rb +7 -3
- data/app/controllers/admin/base_controller.rbc +1305 -0
- data/app/controllers/admin/categories_controller.rb +1 -1
- data/app/controllers/admin/dashboard_controller.rbc +361 -0
- data/app/controllers/admin/person_sessions_controller.rbc +1248 -0
- data/app/controllers/admin/rights_controller.rb +6 -6
- data/app/controllers/admin/roles_controller.rb +8 -3
- data/app/controllers/admin/users_controller.rb +12 -6
- data/app/controllers/forgeos/application_controller.rb +1 -2
- data/app/controllers/forgeos/application_controller.rbc +2027 -0
- data/app/helpers/admin/attachment_helper.rbc +2340 -0
- data/app/helpers/admin/base_helper.rb +0 -15
- data/app/helpers/admin/base_helper.rbc +2522 -0
- data/app/helpers/forgeos/application_helper.rbc +3152 -0
- data/app/models/administrator.rbc +415 -0
- data/app/models/category.rb +3 -3
- data/app/models/person.rb +5 -9
- data/app/models/person.rbc +1498 -0
- data/app/models/person_session.rbc +142 -0
- data/app/models/right.rbc +432 -0
- data/app/models/role.rbc +469 -0
- data/app/models/setting.rbc +699 -0
- data/app/views/admin/accounts/_form.html.haml +1 -1
- data/app/views/admin/administrators/activate.js.erb +1 -0
- data/app/views/admin/administrators/destroy.js.erb +1 -0
- data/app/views/admin/administrators/index.json.erb +10 -12
- data/app/views/admin/attachments/_form.html.haml +2 -2
- data/app/views/admin/attachments/destroy.js.erb +1 -0
- data/app/views/admin/attachments/index.json.erb +4 -5
- data/app/views/admin/categories/_associated_elements.html.haml +4 -8
- data/app/views/admin/categories/index.json.erb +1 -1
- data/app/views/admin/rights/destroy.js.erb +1 -0
- data/app/views/admin/rights/index.json.erb +5 -6
- data/app/views/admin/roles/activate.js.erb +1 -0
- data/app/views/admin/roles/destroy.js.erb +1 -0
- data/app/views/admin/roles/index.json.erb +10 -12
- data/app/views/admin/settings/_tabs.html.haml +0 -6
- data/app/views/admin/settings/edit.html.haml +19 -16
- data/app/views/admin/sidebars/_attachments_popups.html.haml +1 -1
- data/app/views/admin/sidebars/_left_sidebar.html.haml +2 -2
- data/app/views/admin/users/activate.js.erb +1 -0
- data/app/views/admin/users/destroy.js.erb +1 -0
- data/app/views/admin/users/index.json.erb +8 -11
- data/app/views/admin/visual/_visual_popup.html.haml +2 -2
- data/app/views/admin/visual/_visuals_popup.html.haml +1 -1
- data/app/views/layouts/admin.html.haml +5 -4
- data/app/views/layouts/admin_login.html.haml +3 -3
- data/config/initializers/load_settings.rbc +330 -0
- data/config/routes.rb +5 -8
- data/config/routes.rbc +2203 -0
- data/lib/extensions/form_helper_extensions.rb +2 -2
- data/lib/extensions/form_helper_extensions.rbc +295 -0
- data/lib/extensions/i18n_fallbacks_config.rbc +246 -0
- data/lib/extensions.rbc +126 -0
- data/lib/forgeos/core/engine.rbc +316 -0
- data/lib/forgeos/core.rbc +325 -0
- data/lib/forgeos.rbc +1942 -0
- data/lib/forgeos_core.rbc +53 -0
- data/lib/map_fields.rbc +4437 -0
- data/lib/sortable_attachments.rbc +1399 -0
- data/lib/sphinx_globalize.rbc +785 -0
- metadata +286 -53
- data/app/assets/javascripts/forgeos/jstree/jquery.tree.js +0 -2061
- data/app/assets/javascripts/forgeos/jstree/plugins/jquery.tree.contextmenu.js +0 -129
- data/app/assets/javascripts/forgeos/jstree/plugins/jquery.tree.cookie.js +0 -70
- data/app/assets/stylesheets/forgeos/jquery.selectbox.css +0 -75
- data/app/assets/stylesheets/forgeos/jstree/themes/categories/style.css +0 -106
- data/app/assets/stylesheets/forgeos/jstree/tree_component.css.sass +0 -204
@@ -131,7 +131,7 @@ private
|
|
131
131
|
offset = params[:iDisplayStart].to_i
|
132
132
|
page = (offset / per_page) + 1
|
133
133
|
#order_column = params[:iSortCol_0].to_i
|
134
|
-
#order = "#{columns[order_column]} #{params[:
|
134
|
+
#order = "#{columns[order_column]} #{params[:sSortDir_0].upcase}"
|
135
135
|
order = 'position ASC'
|
136
136
|
conditions = {}
|
137
137
|
conditions[:type] = params[:types].collect{ |type| "#{type}Category".camelize } if params[:types]
|
@@ -0,0 +1,361 @@
|
|
1
|
+
!RBIX
|
2
|
+
5362583714419577066
|
3
|
+
x
|
4
|
+
M
|
5
|
+
1
|
6
|
+
n
|
7
|
+
n
|
8
|
+
x
|
9
|
+
10
|
10
|
+
__script__
|
11
|
+
i
|
12
|
+
35
|
13
|
+
99
|
14
|
+
7
|
15
|
+
0
|
16
|
+
45
|
17
|
+
1
|
18
|
+
2
|
19
|
+
43
|
20
|
+
3
|
21
|
+
45
|
22
|
+
1
|
23
|
+
4
|
24
|
+
49
|
25
|
+
5
|
26
|
+
3
|
27
|
+
13
|
28
|
+
99
|
29
|
+
12
|
30
|
+
7
|
31
|
+
6
|
32
|
+
12
|
33
|
+
7
|
34
|
+
7
|
35
|
+
12
|
36
|
+
65
|
37
|
+
12
|
38
|
+
49
|
39
|
+
8
|
40
|
+
4
|
41
|
+
15
|
42
|
+
49
|
43
|
+
6
|
44
|
+
0
|
45
|
+
15
|
46
|
+
2
|
47
|
+
11
|
48
|
+
I
|
49
|
+
6
|
50
|
+
I
|
51
|
+
0
|
52
|
+
I
|
53
|
+
0
|
54
|
+
I
|
55
|
+
0
|
56
|
+
n
|
57
|
+
p
|
58
|
+
9
|
59
|
+
x
|
60
|
+
19
|
61
|
+
DashboardController
|
62
|
+
x
|
63
|
+
5
|
64
|
+
Admin
|
65
|
+
n
|
66
|
+
x
|
67
|
+
14
|
68
|
+
BaseController
|
69
|
+
n
|
70
|
+
x
|
71
|
+
16
|
72
|
+
open_class_under
|
73
|
+
x
|
74
|
+
14
|
75
|
+
__class_init__
|
76
|
+
M
|
77
|
+
1
|
78
|
+
n
|
79
|
+
n
|
80
|
+
x
|
81
|
+
19
|
82
|
+
DashboardController
|
83
|
+
i
|
84
|
+
30
|
85
|
+
5
|
86
|
+
66
|
87
|
+
99
|
88
|
+
7
|
89
|
+
0
|
90
|
+
7
|
91
|
+
1
|
92
|
+
65
|
93
|
+
67
|
94
|
+
49
|
95
|
+
2
|
96
|
+
0
|
97
|
+
49
|
98
|
+
3
|
99
|
+
4
|
100
|
+
15
|
101
|
+
99
|
102
|
+
7
|
103
|
+
4
|
104
|
+
7
|
105
|
+
5
|
106
|
+
65
|
107
|
+
67
|
108
|
+
49
|
109
|
+
2
|
110
|
+
0
|
111
|
+
49
|
112
|
+
3
|
113
|
+
4
|
114
|
+
11
|
115
|
+
I
|
116
|
+
5
|
117
|
+
I
|
118
|
+
0
|
119
|
+
I
|
120
|
+
0
|
121
|
+
I
|
122
|
+
0
|
123
|
+
n
|
124
|
+
p
|
125
|
+
6
|
126
|
+
x
|
127
|
+
5
|
128
|
+
index
|
129
|
+
M
|
130
|
+
1
|
131
|
+
n
|
132
|
+
n
|
133
|
+
x
|
134
|
+
5
|
135
|
+
index
|
136
|
+
i
|
137
|
+
2
|
138
|
+
1
|
139
|
+
11
|
140
|
+
I
|
141
|
+
1
|
142
|
+
I
|
143
|
+
0
|
144
|
+
I
|
145
|
+
0
|
146
|
+
I
|
147
|
+
0
|
148
|
+
n
|
149
|
+
p
|
150
|
+
0
|
151
|
+
p
|
152
|
+
3
|
153
|
+
I
|
154
|
+
-1
|
155
|
+
I
|
156
|
+
2
|
157
|
+
I
|
158
|
+
2
|
159
|
+
x
|
160
|
+
99
|
161
|
+
/home/cyrill62/Sites/fcorer3/vendor/gems/forgeos_core/app/controllers/admin/dashboard_controller.rb
|
162
|
+
p
|
163
|
+
0
|
164
|
+
x
|
165
|
+
17
|
166
|
+
method_visibility
|
167
|
+
x
|
168
|
+
15
|
169
|
+
add_defn_method
|
170
|
+
x
|
171
|
+
11
|
172
|
+
change_lang
|
173
|
+
M
|
174
|
+
1
|
175
|
+
n
|
176
|
+
n
|
177
|
+
x
|
178
|
+
11
|
179
|
+
change_lang
|
180
|
+
i
|
181
|
+
69
|
182
|
+
5
|
183
|
+
48
|
184
|
+
0
|
185
|
+
7
|
186
|
+
1
|
187
|
+
49
|
188
|
+
2
|
189
|
+
1
|
190
|
+
13
|
191
|
+
9
|
192
|
+
32
|
193
|
+
15
|
194
|
+
45
|
195
|
+
3
|
196
|
+
4
|
197
|
+
49
|
198
|
+
5
|
199
|
+
0
|
200
|
+
5
|
201
|
+
48
|
202
|
+
0
|
203
|
+
7
|
204
|
+
1
|
205
|
+
49
|
206
|
+
2
|
207
|
+
1
|
208
|
+
49
|
209
|
+
6
|
210
|
+
0
|
211
|
+
49
|
212
|
+
7
|
213
|
+
1
|
214
|
+
9
|
215
|
+
59
|
216
|
+
5
|
217
|
+
48
|
218
|
+
8
|
219
|
+
7
|
220
|
+
1
|
221
|
+
5
|
222
|
+
48
|
223
|
+
0
|
224
|
+
7
|
225
|
+
1
|
226
|
+
49
|
227
|
+
2
|
228
|
+
1
|
229
|
+
49
|
230
|
+
6
|
231
|
+
0
|
232
|
+
13
|
233
|
+
18
|
234
|
+
3
|
235
|
+
49
|
236
|
+
9
|
237
|
+
2
|
238
|
+
15
|
239
|
+
8
|
240
|
+
60
|
241
|
+
1
|
242
|
+
15
|
243
|
+
5
|
244
|
+
7
|
245
|
+
10
|
246
|
+
47
|
247
|
+
49
|
248
|
+
11
|
249
|
+
1
|
250
|
+
11
|
251
|
+
I
|
252
|
+
4
|
253
|
+
I
|
254
|
+
0
|
255
|
+
I
|
256
|
+
0
|
257
|
+
I
|
258
|
+
0
|
259
|
+
n
|
260
|
+
p
|
261
|
+
12
|
262
|
+
x
|
263
|
+
6
|
264
|
+
params
|
265
|
+
x
|
266
|
+
4
|
267
|
+
lang
|
268
|
+
x
|
269
|
+
2
|
270
|
+
[]
|
271
|
+
x
|
272
|
+
4
|
273
|
+
I18n
|
274
|
+
n
|
275
|
+
x
|
276
|
+
17
|
277
|
+
available_locales
|
278
|
+
x
|
279
|
+
6
|
280
|
+
to_sym
|
281
|
+
x
|
282
|
+
8
|
283
|
+
include?
|
284
|
+
x
|
285
|
+
7
|
286
|
+
session
|
287
|
+
x
|
288
|
+
3
|
289
|
+
[]=
|
290
|
+
x
|
291
|
+
4
|
292
|
+
back
|
293
|
+
x
|
294
|
+
11
|
295
|
+
redirect_to
|
296
|
+
p
|
297
|
+
13
|
298
|
+
I
|
299
|
+
-1
|
300
|
+
I
|
301
|
+
4
|
302
|
+
I
|
303
|
+
0
|
304
|
+
I
|
305
|
+
5
|
306
|
+
I
|
307
|
+
22
|
308
|
+
I
|
309
|
+
6
|
310
|
+
I
|
311
|
+
3b
|
312
|
+
I
|
313
|
+
5
|
314
|
+
I
|
315
|
+
3c
|
316
|
+
I
|
317
|
+
0
|
318
|
+
I
|
319
|
+
3d
|
320
|
+
I
|
321
|
+
8
|
322
|
+
I
|
323
|
+
45
|
324
|
+
x
|
325
|
+
99
|
326
|
+
/home/cyrill62/Sites/fcorer3/vendor/gems/forgeos_core/app/controllers/admin/dashboard_controller.rb
|
327
|
+
p
|
328
|
+
0
|
329
|
+
p
|
330
|
+
5
|
331
|
+
I
|
332
|
+
2
|
333
|
+
I
|
334
|
+
2
|
335
|
+
I
|
336
|
+
10
|
337
|
+
I
|
338
|
+
4
|
339
|
+
I
|
340
|
+
1e
|
341
|
+
x
|
342
|
+
99
|
343
|
+
/home/cyrill62/Sites/fcorer3/vendor/gems/forgeos_core/app/controllers/admin/dashboard_controller.rb
|
344
|
+
p
|
345
|
+
0
|
346
|
+
x
|
347
|
+
13
|
348
|
+
attach_method
|
349
|
+
p
|
350
|
+
3
|
351
|
+
I
|
352
|
+
0
|
353
|
+
I
|
354
|
+
1
|
355
|
+
I
|
356
|
+
23
|
357
|
+
x
|
358
|
+
99
|
359
|
+
/home/cyrill62/Sites/fcorer3/vendor/gems/forgeos_core/app/controllers/admin/dashboard_controller.rb
|
360
|
+
p
|
361
|
+
0
|