forgeos_core 1.9.1 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. data/COPYING +339 -0
  2. data/COPYING.LESSER +165 -0
  3. data/app/assets/images/forgeos/dataTables/Sorting icons.psd +0 -0
  4. data/app/assets/images/forgeos/dataTables/back_disabled.jpg +0 -0
  5. data/app/assets/images/forgeos/dataTables/back_enabled.jpg +0 -0
  6. data/app/assets/images/forgeos/dataTables/favicon.ico +0 -0
  7. data/app/assets/images/forgeos/dataTables/forward_disabled.jpg +0 -0
  8. data/app/assets/images/forgeos/dataTables/forward_enabled.jpg +0 -0
  9. data/app/assets/images/forgeos/dataTables/sort_asc.png +0 -0
  10. data/app/assets/images/forgeos/dataTables/sort_asc_disabled.png +0 -0
  11. data/app/assets/images/forgeos/dataTables/sort_both.png +0 -0
  12. data/app/assets/images/forgeos/dataTables/sort_desc.png +0 -0
  13. data/app/assets/images/forgeos/dataTables/sort_desc_disabled.png +0 -0
  14. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/bubble-quantity-products.png +0 -0
  15. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/check-checked.png +0 -0
  16. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/check-unchecked.png +0 -0
  17. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/context.gif +0 -0
  18. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/create.png +0 -0
  19. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/dark-blue-minus.png +0 -0
  20. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/dark-blue-plus.png +0 -0
  21. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/dot.gif +0 -0
  22. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/f.png +0 -0
  23. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/fminus.gif +0 -0
  24. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/fminus_rtl.gif +0 -0
  25. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/folder.png +0 -0
  26. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/fplus.gif +0 -0
  27. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/fplus_rtl.gif +0 -0
  28. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/lastli.gif +0 -0
  29. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/lastli_rtl.gif +0 -0
  30. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/li.gif +0 -0
  31. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/remove.png +0 -0
  32. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/rename.png +0 -0
  33. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/throbber.gif +0 -0
  34. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/brown-minus.png +0 -0
  35. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/brown-plus.png +0 -0
  36. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/bubble-quantity-elements.png +0 -0
  37. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/context.gif +0 -0
  38. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/create.png +0 -0
  39. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/dot.gif +0 -0
  40. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/f.png +0 -0
  41. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/fminus.gif +0 -0
  42. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/fminus_rtl.gif +0 -0
  43. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/fplus.gif +0 -0
  44. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/fplus_rtl.gif +0 -0
  45. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/images.png +0 -0
  46. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/lastli.gif +0 -0
  47. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/lastli_rtl.gif +0 -0
  48. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/li.gif +0 -0
  49. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/remove.png +0 -0
  50. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/rename.png +0 -0
  51. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/throbber.gif +0 -0
  52. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/marker.gif +0 -0
  53. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/marker_rtl.gif +0 -0
  54. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/plus.gif +0 -0
  55. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/remove.gif +0 -0
  56. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/remove.png +0 -0
  57. data/app/assets/javascripts/forgeos/admin/functions/forgeos_core/commons.js +8 -3
  58. data/app/assets/javascripts/forgeos/admin/functions/forgeos_core/dataTable.js +2 -2
  59. data/app/assets/javascripts/forgeos/admin/functions/forgeos_core/tinyMCE.js +1 -1
  60. data/app/assets/javascripts/forgeos/admin/functions/forgeos_core/trees.js +202 -257
  61. data/app/assets/javascripts/forgeos/admin/inits/forgeos_core/left-sidebar.js +16 -23
  62. data/app/assets/javascripts/forgeos/admin/inits/forgeos_core/settings.js +5 -5
  63. data/app/assets/javascripts/forgeos/admin/inits/forgeos_core/tabs.js +3 -3
  64. data/app/assets/javascripts/forgeos/admin/inits/forgeos_core/trees.js +2 -45
  65. data/app/assets/javascripts/forgeos/jquery.dataTables.min.js +138 -529
  66. data/app/assets/javascripts/forgeos/jstree/jquery.jstree.js +4544 -0
  67. data/app/assets/stylesheets/forgeos/admin/forgeos_core/_lightbox.css.sass +2 -21
  68. data/app/assets/stylesheets/forgeos/admin/forgeos_core/_settings.css.sass +77 -39
  69. data/app/assets/stylesheets/forgeos/dataTables/demo_table.css +150 -27
  70. data/app/assets/stylesheets/forgeos/jstree/themes/association_categories/style.css.sass +36 -154
  71. data/app/assets/stylesheets/forgeos/jstree/themes/categories/style.css.sass +59 -58
  72. data/app/controllers/admin/accounts_controller.rb +1 -1
  73. data/app/controllers/admin/administrators_controller.rb +13 -4
  74. data/app/controllers/admin/attachments_controller.rb +7 -3
  75. data/app/controllers/admin/base_controller.rbc +1305 -0
  76. data/app/controllers/admin/categories_controller.rb +1 -1
  77. data/app/controllers/admin/dashboard_controller.rbc +361 -0
  78. data/app/controllers/admin/person_sessions_controller.rbc +1248 -0
  79. data/app/controllers/admin/rights_controller.rb +6 -6
  80. data/app/controllers/admin/roles_controller.rb +8 -3
  81. data/app/controllers/admin/users_controller.rb +12 -6
  82. data/app/controllers/forgeos/application_controller.rb +1 -2
  83. data/app/controllers/forgeos/application_controller.rbc +2027 -0
  84. data/app/helpers/admin/attachment_helper.rbc +2340 -0
  85. data/app/helpers/admin/base_helper.rb +0 -15
  86. data/app/helpers/admin/base_helper.rbc +2522 -0
  87. data/app/helpers/forgeos/application_helper.rbc +3152 -0
  88. data/app/models/administrator.rbc +415 -0
  89. data/app/models/category.rb +3 -3
  90. data/app/models/person.rb +5 -9
  91. data/app/models/person.rbc +1498 -0
  92. data/app/models/person_session.rbc +142 -0
  93. data/app/models/right.rbc +432 -0
  94. data/app/models/role.rbc +469 -0
  95. data/app/models/setting.rbc +699 -0
  96. data/app/views/admin/accounts/_form.html.haml +1 -1
  97. data/app/views/admin/administrators/activate.js.erb +1 -0
  98. data/app/views/admin/administrators/destroy.js.erb +1 -0
  99. data/app/views/admin/administrators/index.json.erb +10 -12
  100. data/app/views/admin/attachments/_form.html.haml +2 -2
  101. data/app/views/admin/attachments/destroy.js.erb +1 -0
  102. data/app/views/admin/attachments/index.json.erb +4 -5
  103. data/app/views/admin/categories/_associated_elements.html.haml +4 -8
  104. data/app/views/admin/categories/index.json.erb +1 -1
  105. data/app/views/admin/rights/destroy.js.erb +1 -0
  106. data/app/views/admin/rights/index.json.erb +5 -6
  107. data/app/views/admin/roles/activate.js.erb +1 -0
  108. data/app/views/admin/roles/destroy.js.erb +1 -0
  109. data/app/views/admin/roles/index.json.erb +10 -12
  110. data/app/views/admin/settings/_tabs.html.haml +0 -6
  111. data/app/views/admin/settings/edit.html.haml +19 -16
  112. data/app/views/admin/sidebars/_attachments_popups.html.haml +1 -1
  113. data/app/views/admin/sidebars/_left_sidebar.html.haml +2 -2
  114. data/app/views/admin/users/activate.js.erb +1 -0
  115. data/app/views/admin/users/destroy.js.erb +1 -0
  116. data/app/views/admin/users/index.json.erb +8 -11
  117. data/app/views/admin/visual/_visual_popup.html.haml +2 -2
  118. data/app/views/admin/visual/_visuals_popup.html.haml +1 -1
  119. data/app/views/layouts/admin.html.haml +5 -4
  120. data/app/views/layouts/admin_login.html.haml +3 -3
  121. data/config/initializers/load_settings.rbc +330 -0
  122. data/config/routes.rb +5 -8
  123. data/config/routes.rbc +2203 -0
  124. data/lib/extensions/form_helper_extensions.rb +2 -2
  125. data/lib/extensions/form_helper_extensions.rbc +295 -0
  126. data/lib/extensions/i18n_fallbacks_config.rbc +246 -0
  127. data/lib/extensions.rbc +126 -0
  128. data/lib/forgeos/core/engine.rbc +316 -0
  129. data/lib/forgeos/core.rbc +325 -0
  130. data/lib/forgeos.rbc +1942 -0
  131. data/lib/forgeos_core.rbc +53 -0
  132. data/lib/map_fields.rbc +4437 -0
  133. data/lib/sortable_attachments.rbc +1399 -0
  134. data/lib/sphinx_globalize.rbc +785 -0
  135. metadata +286 -53
  136. data/app/assets/javascripts/forgeos/jstree/jquery.tree.js +0 -2061
  137. data/app/assets/javascripts/forgeos/jstree/plugins/jquery.tree.contextmenu.js +0 -129
  138. data/app/assets/javascripts/forgeos/jstree/plugins/jquery.tree.cookie.js +0 -70
  139. data/app/assets/stylesheets/forgeos/jquery.selectbox.css +0 -75
  140. data/app/assets/stylesheets/forgeos/jstree/themes/categories/style.css +0 -106
  141. data/app/assets/stylesheets/forgeos/jstree/tree_component.css.sass +0 -204
@@ -0,0 +1,699 @@
1
+ !RBIX
2
+ 5362583714419577066
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 42
13
+ 5
14
+ 7
15
+ 0
16
+ 64
17
+ 47
18
+ 49
19
+ 1
20
+ 1
21
+ 15
22
+ 99
23
+ 7
24
+ 2
25
+ 45
26
+ 3
27
+ 4
28
+ 43
29
+ 5
30
+ 65
31
+ 49
32
+ 6
33
+ 3
34
+ 13
35
+ 99
36
+ 12
37
+ 7
38
+ 7
39
+ 12
40
+ 7
41
+ 8
42
+ 12
43
+ 65
44
+ 12
45
+ 49
46
+ 9
47
+ 4
48
+ 15
49
+ 49
50
+ 7
51
+ 0
52
+ 15
53
+ 2
54
+ 11
55
+ I
56
+ 6
57
+ I
58
+ 0
59
+ I
60
+ 0
61
+ I
62
+ 0
63
+ n
64
+ p
65
+ 10
66
+ s
67
+ 7
68
+ ostruct
69
+ x
70
+ 7
71
+ require
72
+ x
73
+ 7
74
+ Setting
75
+ x
76
+ 12
77
+ ActiveRecord
78
+ n
79
+ x
80
+ 4
81
+ Base
82
+ x
83
+ 10
84
+ open_class
85
+ x
86
+ 14
87
+ __class_init__
88
+ M
89
+ 1
90
+ n
91
+ n
92
+ x
93
+ 7
94
+ Setting
95
+ i
96
+ 128
97
+ 5
98
+ 66
99
+ 5
100
+ 7
101
+ 0
102
+ 44
103
+ 43
104
+ 1
105
+ 79
106
+ 49
107
+ 2
108
+ 1
109
+ 13
110
+ 7
111
+ 3
112
+ 7
113
+ 4
114
+ 49
115
+ 5
116
+ 2
117
+ 15
118
+ 47
119
+ 49
120
+ 6
121
+ 2
122
+ 15
123
+ 5
124
+ 7
125
+ 7
126
+ 45
127
+ 8
128
+ 9
129
+ 47
130
+ 49
131
+ 10
132
+ 2
133
+ 15
134
+ 5
135
+ 7
136
+ 11
137
+ 45
138
+ 8
139
+ 12
140
+ 47
141
+ 49
142
+ 10
143
+ 2
144
+ 15
145
+ 5
146
+ 7
147
+ 13
148
+ 45
149
+ 8
150
+ 14
151
+ 47
152
+ 49
153
+ 10
154
+ 2
155
+ 15
156
+ 5
157
+ 7
158
+ 15
159
+ 47
160
+ 49
161
+ 10
162
+ 1
163
+ 15
164
+ 5
165
+ 7
166
+ 0
167
+ 47
168
+ 49
169
+ 16
170
+ 1
171
+ 15
172
+ 99
173
+ 7
174
+ 17
175
+ 7
176
+ 18
177
+ 65
178
+ 67
179
+ 49
180
+ 19
181
+ 0
182
+ 49
183
+ 20
184
+ 4
185
+ 15
186
+ 99
187
+ 7
188
+ 21
189
+ 7
190
+ 22
191
+ 65
192
+ 67
193
+ 49
194
+ 19
195
+ 0
196
+ 49
197
+ 20
198
+ 4
199
+ 15
200
+ 99
201
+ 7
202
+ 23
203
+ 7
204
+ 24
205
+ 65
206
+ 67
207
+ 49
208
+ 19
209
+ 0
210
+ 49
211
+ 20
212
+ 4
213
+ 15
214
+ 99
215
+ 7
216
+ 25
217
+ 7
218
+ 26
219
+ 65
220
+ 5
221
+ 49
222
+ 27
223
+ 4
224
+ 11
225
+ I
226
+ 6
227
+ I
228
+ 0
229
+ I
230
+ 0
231
+ I
232
+ 0
233
+ n
234
+ p
235
+ 28
236
+ x
237
+ 7
238
+ address
239
+ x
240
+ 4
241
+ Hash
242
+ x
243
+ 16
244
+ new_from_literal
245
+ x
246
+ 9
247
+ dependent
248
+ x
249
+ 7
250
+ destroy
251
+ x
252
+ 3
253
+ []=
254
+ x
255
+ 10
256
+ belongs_to
257
+ x
258
+ 6
259
+ mailer
260
+ x
261
+ 10
262
+ OpenStruct
263
+ n
264
+ x
265
+ 9
266
+ serialize
267
+ x
268
+ 13
269
+ smtp_settings
270
+ n
271
+ x
272
+ 17
273
+ sendmail_settings
274
+ n
275
+ x
276
+ 11
277
+ attachments
278
+ x
279
+ 29
280
+ accepts_nested_attributes_for
281
+ x
282
+ 7
283
+ mailer=
284
+ M
285
+ 1
286
+ n
287
+ n
288
+ x
289
+ 7
290
+ mailer=
291
+ i
292
+ 36
293
+ 5
294
+ 7
295
+ 0
296
+ 45
297
+ 1
298
+ 2
299
+ 13
300
+ 71
301
+ 3
302
+ 47
303
+ 9
304
+ 26
305
+ 47
306
+ 49
307
+ 4
308
+ 0
309
+ 13
310
+ 20
311
+ 0
312
+ 47
313
+ 49
314
+ 5
315
+ 1
316
+ 15
317
+ 8
318
+ 31
319
+ 20
320
+ 0
321
+ 49
322
+ 3
323
+ 1
324
+ 47
325
+ 49
326
+ 6
327
+ 2
328
+ 11
329
+ I
330
+ 6
331
+ I
332
+ 1
333
+ I
334
+ 1
335
+ I
336
+ 1
337
+ n
338
+ p
339
+ 7
340
+ x
341
+ 6
342
+ mailer
343
+ x
344
+ 10
345
+ OpenStruct
346
+ n
347
+ x
348
+ 3
349
+ new
350
+ x
351
+ 8
352
+ allocate
353
+ x
354
+ 10
355
+ initialize
356
+ x
357
+ 15
358
+ write_attribute
359
+ p
360
+ 5
361
+ I
362
+ -1
363
+ I
364
+ a
365
+ I
366
+ 0
367
+ I
368
+ b
369
+ I
370
+ 24
371
+ x
372
+ 75
373
+ /home/cyrill62/Sites/fcorer3/vendor/gems/forgeos_core/app/models/setting.rb
374
+ p
375
+ 1
376
+ x
377
+ 6
378
+ mailer
379
+ x
380
+ 17
381
+ method_visibility
382
+ x
383
+ 15
384
+ add_defn_method
385
+ x
386
+ 14
387
+ smtp_settings=
388
+ M
389
+ 1
390
+ n
391
+ n
392
+ x
393
+ 14
394
+ smtp_settings=
395
+ i
396
+ 36
397
+ 5
398
+ 7
399
+ 0
400
+ 45
401
+ 1
402
+ 2
403
+ 13
404
+ 71
405
+ 3
406
+ 47
407
+ 9
408
+ 26
409
+ 47
410
+ 49
411
+ 4
412
+ 0
413
+ 13
414
+ 20
415
+ 0
416
+ 47
417
+ 49
418
+ 5
419
+ 1
420
+ 15
421
+ 8
422
+ 31
423
+ 20
424
+ 0
425
+ 49
426
+ 3
427
+ 1
428
+ 47
429
+ 49
430
+ 6
431
+ 2
432
+ 11
433
+ I
434
+ 6
435
+ I
436
+ 1
437
+ I
438
+ 1
439
+ I
440
+ 1
441
+ n
442
+ p
443
+ 7
444
+ x
445
+ 13
446
+ smtp_settings
447
+ x
448
+ 10
449
+ OpenStruct
450
+ n
451
+ x
452
+ 3
453
+ new
454
+ x
455
+ 8
456
+ allocate
457
+ x
458
+ 10
459
+ initialize
460
+ x
461
+ 15
462
+ write_attribute
463
+ p
464
+ 5
465
+ I
466
+ -1
467
+ I
468
+ e
469
+ I
470
+ 0
471
+ I
472
+ f
473
+ I
474
+ 24
475
+ x
476
+ 75
477
+ /home/cyrill62/Sites/fcorer3/vendor/gems/forgeos_core/app/models/setting.rb
478
+ p
479
+ 1
480
+ x
481
+ 13
482
+ smtp_settings
483
+ x
484
+ 18
485
+ sendmail_settings=
486
+ M
487
+ 1
488
+ n
489
+ n
490
+ x
491
+ 18
492
+ sendmail_settings=
493
+ i
494
+ 36
495
+ 5
496
+ 7
497
+ 0
498
+ 45
499
+ 1
500
+ 2
501
+ 13
502
+ 71
503
+ 3
504
+ 47
505
+ 9
506
+ 26
507
+ 47
508
+ 49
509
+ 4
510
+ 0
511
+ 13
512
+ 20
513
+ 0
514
+ 47
515
+ 49
516
+ 5
517
+ 1
518
+ 15
519
+ 8
520
+ 31
521
+ 20
522
+ 0
523
+ 49
524
+ 3
525
+ 1
526
+ 47
527
+ 49
528
+ 6
529
+ 2
530
+ 11
531
+ I
532
+ 6
533
+ I
534
+ 1
535
+ I
536
+ 1
537
+ I
538
+ 1
539
+ n
540
+ p
541
+ 7
542
+ x
543
+ 17
544
+ sendmail_settings
545
+ x
546
+ 10
547
+ OpenStruct
548
+ n
549
+ x
550
+ 3
551
+ new
552
+ x
553
+ 8
554
+ allocate
555
+ x
556
+ 10
557
+ initialize
558
+ x
559
+ 15
560
+ write_attribute
561
+ p
562
+ 5
563
+ I
564
+ -1
565
+ I
566
+ 12
567
+ I
568
+ 0
569
+ I
570
+ 13
571
+ I
572
+ 24
573
+ x
574
+ 75
575
+ /home/cyrill62/Sites/fcorer3/vendor/gems/forgeos_core/app/models/setting.rb
576
+ p
577
+ 1
578
+ x
579
+ 17
580
+ sendmail_settings
581
+ x
582
+ 7
583
+ current
584
+ M
585
+ 1
586
+ n
587
+ n
588
+ x
589
+ 7
590
+ current
591
+ i
592
+ 4
593
+ 5
594
+ 48
595
+ 0
596
+ 11
597
+ I
598
+ 1
599
+ I
600
+ 0
601
+ I
602
+ 0
603
+ I
604
+ 0
605
+ n
606
+ p
607
+ 1
608
+ x
609
+ 5
610
+ first
611
+ p
612
+ 5
613
+ I
614
+ -1
615
+ I
616
+ 16
617
+ I
618
+ 0
619
+ I
620
+ 17
621
+ I
622
+ 4
623
+ x
624
+ 75
625
+ /home/cyrill62/Sites/fcorer3/vendor/gems/forgeos_core/app/models/setting.rb
626
+ p
627
+ 0
628
+ x
629
+ 13
630
+ attach_method
631
+ p
632
+ 21
633
+ I
634
+ 2
635
+ I
636
+ 3
637
+ I
638
+ 1a
639
+ I
640
+ 4
641
+ I
642
+ 25
643
+ I
644
+ 5
645
+ I
646
+ 30
647
+ I
648
+ 6
649
+ I
650
+ 3b
651
+ I
652
+ 7
653
+ I
654
+ 43
655
+ I
656
+ 8
657
+ I
658
+ 4b
659
+ I
660
+ a
661
+ I
662
+ 59
663
+ I
664
+ e
665
+ I
666
+ 67
667
+ I
668
+ 12
669
+ I
670
+ 75
671
+ I
672
+ 16
673
+ I
674
+ 80
675
+ x
676
+ 75
677
+ /home/cyrill62/Sites/fcorer3/vendor/gems/forgeos_core/app/models/setting.rb
678
+ p
679
+ 0
680
+ x
681
+ 13
682
+ attach_method
683
+ p
684
+ 5
685
+ I
686
+ 0
687
+ I
688
+ 1
689
+ I
690
+ 9
691
+ I
692
+ 2
693
+ I
694
+ 2a
695
+ x
696
+ 75
697
+ /home/cyrill62/Sites/fcorer3/vendor/gems/forgeos_core/app/models/setting.rb
698
+ p
699
+ 0
@@ -1,4 +1,4 @@
1
- = form_for :account, admin, :url => forgeos_core.admin_account_path, :html => { :method => :put, :multipart => true } do |f|
1
+ = form_for admin, :url => forgeos_core.admin_account_path, :html => { :method => :put, :multipart => true } do |f|
2
2
  .backgrounds.big-header
3
3
  = f.select :civility, t('civility.select'), { :prompt => t(:please_select) }
4
4
  = f.text_field :firstname, :title => t('firstname'), :class => 'defaultValue field_name firstname'
@@ -0,0 +1 @@
1
+ toggleActivate('#show_admin_<%= @admin.id -%>');
@@ -0,0 +1 @@
1
+ removedataTablesRow('#destroy_admin_<%= @admin.id -%>');
@@ -7,28 +7,26 @@
7
7
  [
8
8
  content_tag(:div,
9
9
  content_tag(:div, '', :class => 'handler') +
10
- content_tag(:div, '&nbsp;', :id => link_id, :class => 'small-icons admin-ico'),
10
+ content_tag(:div, "&nbsp;".html_safe, :id => link_id, :class => 'small-icons admin-ico'),
11
11
  :class => 'handler_container'),
12
12
  content_tag(:div, link_to("#{admin.firstname} #{admin.lastname}", [forgeos_core, :edit, :admin, admin]), :class => 'admin-name'),
13
13
  admin.role.name,
14
14
  content_tag(:div, mail_to(admin.email, admin.email), :class => 'email' ),
15
- link_to('', :url => forgeos_core.activate_admin_administrator_path(admin),
15
+ link_to('', [forgeos_core, :activate, :admin, admin],
16
16
  :remote => true,
17
- :complete => "toggleActivate('#show_#{link_id}')",
18
- :html => {
19
- :class => "small-icons #{klass}",
20
- :id => "show_#{link_id}"
21
- }),
17
+ :method => :post,
18
+ :class => "small-icons #{klass}",
19
+ :id => "show_#{link_id}"
20
+ ),
22
21
  link_to('', '#', :class => 'small-icons duplicate-link') +
23
22
  link_to('', [forgeos_core, :edit, :admin, admin], :class => 'small-icons edit-link') +
24
- link_to('', :url => [forgeos_core, :admin, admin],
23
+ link_to('', [forgeos_core, :admin, admin],
25
24
  :remote => true,
26
25
  :method => :delete,
27
26
  :confirm => I18n.t('admin.destroy.confirm').capitalize,
28
- :success => "removedataTablesRow('#destroy_#{link_id}')",
29
- :html => {
30
- :class => 'small-icons destroy-link', :id => "destroy_#{link_id}"
31
- })
27
+ :class => 'small-icons destroy-link',
28
+ :id => "destroy_#{link_id}"
29
+ )
32
30
  ]
33
31
  end
34
32
  }
@@ -87,9 +87,9 @@
87
87
  #attachment_associated_collection.step.open
88
88
  %a.small-icons.step-title{ :href => "#" }
89
89
  Associated to collection
90
- #association-media-tree.inner-step.init-tree
90
+ #association-media-tree.inner-step
91
91
  %ul
92
- = hidden_field_tag "#{f.object_name}[attachment_category_ids][]"
92
+ = hidden_field_tag "#{f.object_name}[attachment_category_ids][]"
93
93
  = render :partial => 'admin/categories/associated_elements', :locals => { :association_id => 'attachment_category_ids', :element => media, :category_ids => media.attachment_category_ids, :categories => find_categories_from_content_type(media) }
94
94
  .clear
95
95
  .clear