forgeos_cms 1.9.0 → 1.9.1

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 (136) hide show
  1. data/COPYING +339 -0
  2. data/COPYING.LESSER +165 -0
  3. data/README.textile +3 -13
  4. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/bubble-quantity-products.png +0 -0
  5. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/check-checked.png +0 -0
  6. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/check-unchecked.png +0 -0
  7. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/context.gif +0 -0
  8. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/create.png +0 -0
  9. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/dark-blue-minus.png +0 -0
  10. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/dark-blue-plus.png +0 -0
  11. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/dot.gif +0 -0
  12. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/f.png +0 -0
  13. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/fminus.gif +0 -0
  14. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/fminus_rtl.gif +0 -0
  15. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/folder.png +0 -0
  16. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/fplus.gif +0 -0
  17. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/fplus_rtl.gif +0 -0
  18. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/lastli.gif +0 -0
  19. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/lastli_rtl.gif +0 -0
  20. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/li.gif +0 -0
  21. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/remove.png +0 -0
  22. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/rename.png +0 -0
  23. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_page/throbber.gif +0 -0
  24. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/brown-minus.png +0 -0
  25. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/brown-plus.png +0 -0
  26. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/bubble-quantity-products.png +0 -0
  27. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/context.gif +0 -0
  28. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/create.png +0 -0
  29. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/dot.gif +0 -0
  30. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/f.png +0 -0
  31. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/fminus.gif +0 -0
  32. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/fminus_rtl.gif +0 -0
  33. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/fplus.gif +0 -0
  34. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/fplus_rtl.gif +0 -0
  35. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/lastli.gif +0 -0
  36. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/lastli_rtl.gif +0 -0
  37. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/li.gif +0 -0
  38. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/remove.png +0 -0
  39. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/rename.png +0 -0
  40. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/block_category/throbber.gif +0 -0
  41. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/big-drag-and-drop.png +0 -0
  42. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/bubble-quantity-products.png +0 -0
  43. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/check-checked.png +0 -0
  44. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/check-unchecked.png +0 -0
  45. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/context.gif +0 -0
  46. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/create.png +0 -0
  47. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/dark-blue-minus.png +0 -0
  48. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/dark-blue-plus.png +0 -0
  49. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/dot.gif +0 -0
  50. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/drag-drop.png +0 -0
  51. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/f.png +0 -0
  52. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/fminus.gif +0 -0
  53. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/fminus_rtl.gif +0 -0
  54. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/folder.png +0 -0
  55. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/fplus.gif +0 -0
  56. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/fplus_rtl.gif +0 -0
  57. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/lastli.gif +0 -0
  58. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/lastli_rtl.gif +0 -0
  59. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/li.gif +0 -0
  60. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/remove.png +0 -0
  61. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/rename.png +0 -0
  62. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/menu-tree/throbber.gif +0 -0
  63. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/brown-minus.png +0 -0
  64. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/brown-plus.png +0 -0
  65. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/bubble-quantity-products.png +0 -0
  66. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/context.gif +0 -0
  67. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/create.png +0 -0
  68. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/dot.gif +0 -0
  69. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/f.png +0 -0
  70. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/fminus.gif +0 -0
  71. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/fminus_rtl.gif +0 -0
  72. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/fplus.gif +0 -0
  73. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/fplus_rtl.gif +0 -0
  74. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/lastli.gif +0 -0
  75. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/lastli_rtl.gif +0 -0
  76. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/li.gif +0 -0
  77. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/remove.png +0 -0
  78. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/rename.png +0 -0
  79. data/app/assets/{stylesheets → images}/forgeos/jstree/themes/page_category/throbber.gif +0 -0
  80. data/app/assets/javascripts/forgeos/admin/functions/forgeos_cms/trees.js +1 -1
  81. data/app/assets/javascripts/forgeos/admin/inits/forgeos_cms/menus.js +70 -42
  82. data/app/assets/javascripts/forgeos/admin/inits/forgeos_cms/trees.js +38 -66
  83. data/app/assets/stylesheets/forgeos/admin/forgeos_cms/_blocks.css.sass +0 -6
  84. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/style.css.sass +24 -195
  85. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/style.css.sass +8 -8
  86. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/style.css.sass +15 -91
  87. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/style.css.sass +8 -8
  88. data/app/controllers/admin/actualities_controller.rb +1 -1
  89. data/app/controllers/admin/carousels_controller.rb +1 -1
  90. data/app/controllers/admin/menus_controller.rb +1 -1
  91. data/app/controllers/admin/newsletters_controller.rb +1 -1
  92. data/app/controllers/admin/pages_controller.rb +2 -2
  93. data/app/controllers/admin/static_content_blocks_controller.rb +1 -1
  94. data/app/controllers/admin/widgets_controller.rb +1 -1
  95. data/app/controllers/forgeos/application_controller.rb +4 -4
  96. data/app/helpers/admin/base_helper.rb +16 -0
  97. data/app/views/admin/actualities/index.json.erb +8 -9
  98. data/app/views/admin/blocks/_associated_pages.html.haml +20 -21
  99. data/app/views/admin/blocks/_tabs.html.haml +7 -6
  100. data/app/views/admin/carousels/_attachments_popups.html.haml +1 -1
  101. data/app/views/admin/carousels/_form.html.haml +2 -2
  102. data/app/views/admin/carousels/show.html.haml +2 -2
  103. data/app/views/admin/categories/_block.html.haml +1 -1
  104. data/app/views/admin/menus/_empty_menu_link.html.haml +1 -2
  105. data/app/views/admin/menus/_form.html.haml +3 -3
  106. data/app/views/admin/menus/_form_menu_links.html.haml +5 -7
  107. data/app/views/admin/menus/_lang_switcher.html.haml +2 -2
  108. data/app/views/admin/menus/_types_popups.html.haml +10 -9
  109. data/app/views/admin/menus/index.json.erb +7 -9
  110. data/app/views/admin/newsletters/index.json.erb +4 -4
  111. data/app/views/admin/pages/_block_popup.html.haml +6 -5
  112. data/app/views/admin/pages/_blocks.html.haml +1 -1
  113. data/app/views/admin/pages/_form.html.haml +14 -5
  114. data/app/views/admin/pages/_general.html.haml +0 -5
  115. data/app/views/admin/pages/_tabs_show.html.haml +1 -9
  116. data/app/views/admin/pages/index.json.erb +7 -5
  117. data/app/views/admin/pages/new.html.haml +0 -1
  118. data/app/views/admin/pages/show.html.haml +7 -33
  119. data/app/views/admin/static_content_blocks/_form.html.haml +2 -2
  120. data/app/views/admin/static_content_blocks/index.html.haml +1 -1
  121. data/app/views/admin/static_content_blocks/index.json.erb +4 -4
  122. data/app/views/admin/widget_actualities/_form.html.haml +5 -5
  123. data/app/views/admin/widget_actualities/_form_item.html.haml +4 -4
  124. data/app/views/admin/widget_actualities/edit.html.haml +1 -1
  125. data/app/views/admin/widget_actualities/new.html.haml +1 -1
  126. data/app/views/admin/widget_actualities/show.html.haml +4 -4
  127. data/app/views/admin/widget_faqs/_form.html.haml +3 -11
  128. data/app/views/admin/widget_faqs/edit.html.haml +2 -2
  129. data/app/views/admin/widget_faqs/new.html.haml +2 -2
  130. data/app/views/admin/widgets/_tabs.html.haml +4 -3
  131. data/app/views/admin/widgets/index.html.haml +1 -1
  132. data/app/views/admin/widgets/index.json.erb +7 -8
  133. data/config/routes.rb +1 -1
  134. metadata +104 -89
  135. data/app/views/admin/widget_actualities/_tabs.html.haml +0 -8
  136. data/app/views/admin/widget_faqs/_tabs.html.haml +0 -8
@@ -1,219 +1,48 @@
1
- .tree-association_page
2
- .locked li a
3
- color: gray
4
-
1
+ .jstree-association_page
5
2
  ul
6
3
  width: 87%
7
-
8
4
  li
9
5
  width: 100%
10
-
11
- &.last
12
- .rtl
13
- background-position: right 1px
14
-
15
- ul
16
- background-position: right 1px
17
-
18
- li
19
- background-position: right 8px
20
-
21
- &.last
22
- background-image: url("lastli_rtl.gif")
23
- background-position: right top
24
-
25
- .no_dots
26
- background: transparent
27
-
28
- ul
29
- background: transparent
30
-
31
- li.leaf
32
- background-image: none
33
- background-color: transparent
34
-
35
- li
36
- &.open
6
+ &.jstree-open > ins.jstree-icon
37
7
  background: url("dark-blue-minus.png") 0 0 no-repeat
38
8
 
39
- &.closed
9
+ &.jstree-closed > ins.jstree-icon
40
10
  background: url("dark-blue-plus.png") 0 1px no-repeat
11
+ &.jstree-checked a > ins.jstree-checkbox
12
+ background: url("check-checked.png") 0 1px no-repeat
13
+ &.jstree-unchecked a > ins.jstree-checkbox
14
+ background: url("check-unchecked.png") 0 1px no-repeat
41
15
 
42
-
43
- #jstree-dragged.tree-association_page li li.open
44
- background: url("dark-blue-plus.png") 0 1px no-repeat
45
-
46
-
47
- .tree-association_page .rtl li
48
- margin-right: 1px
49
-
50
- &.last
51
- margin-right: 0
52
- padding-right: 16px
53
-
54
- &.open
55
- background: url("fminus_rtl.gif") right 6px no-repeat
56
- margin-right: 0
57
- padding-right: 16px
58
-
59
- &.closed
60
- background: url("fplus_rtl.gif") right 4px no-repeat
61
- margin-right: 0
62
- padding-right: 16px
63
-
64
-
65
- #jstree-dragged.tree-association_page .rtl li li.open
66
- background: url("fplus_rtl.gif") right 4px no-repeat
67
- margin-right: 0
68
- padding-right: 16px
69
-
70
-
71
- .tree-association_page
72
- li
73
16
  a
74
- padding: 0px 5px 0px 24px
17
+ display: inline !important
75
18
  width: auto
76
19
  color: #557383 !important
77
20
  font-weight: bold
78
21
  font-size: 1em
79
- height: 20px
80
- position: relative
81
-
82
- span
83
- height: 13px
84
- width: 19px
85
- font-size: 0.7em
86
- background-image: url("check-unchecked.png")
87
- background-repeat: no-repeat
88
- background-position: 0 0
89
- text-align: center
90
- color: #75491B
91
- right: 5px
92
- position: absolute
93
- top: 2px
94
-
95
- &.clicked a.page span
96
- background-image: url("check-checked.png")
97
-
98
- span.clicked
99
- padding: 0px 3px 0px 20px
100
-
101
- a.loading
102
- background-image: url("throbber.gif")
103
-
104
- .rtl li
105
- a, span
106
- padding: 1px 23px 1px 4px
107
- background-position: right 1px
108
- margin-right: 1px
109
-
110
- a
111
- &:hover, &.hover
112
- padding: 0px 23px 0px 3px
113
- background-position: right 0px
114
- margin-right: 0px
115
22
 
116
- &.clicked
117
- padding: 0px 23px 0px 3px
118
- background-position: right 0px
119
- margin-right: 0px
120
-
121
- &:hover
122
- padding: 0px 23px 0px 3px
123
- background-position: right 0px
124
- margin-right: 0px
125
-
126
- span.clicked
127
- padding: 0px 23px 0px 3px
128
- background-position: right 0px
129
- margin-right: 0px
130
- padding: 0px 21px 0px 3px
131
-
132
-
133
- .tree-association_page-context
134
- width: 160px
135
- background: #F0F0F0 url("context.gif") 22px 0 repeat-y
136
- border: 1px solid silver
137
- position: absolute
23
+ li
24
+ padding-left: 15px
25
+ .jstree-locked li a
26
+ color: gray
27
+ .jstree-no_dots
28
+ background: transparent
138
29
 
139
- a
140
- display: block
141
- text-decoration: none
142
- color: black
143
- line-height: 20px
144
- background-repeat: no-repeat
145
- background-position: 2px center
146
- padding: 1px 0 1px 25px
147
- background-color: transparent
148
- border: 1px solid #f0f0f0
149
- border-width: 0 1px
150
- margin: 0
30
+ ul
31
+ background: transparent
151
32
 
152
- &.disabled:hover
153
- display: block
154
- text-decoration: none
155
- color: black
156
- line-height: 20px
157
- background-repeat: no-repeat
158
- background-position: 2px center
159
- padding: 1px 0 1px 25px
33
+ li.jstree-leaf
34
+ background-image: none
160
35
  background-color: transparent
161
- border: 1px solid #f0f0f0
162
- border-width: 0 1px
163
- margin: 0
164
-
165
- &:hover
166
- background-color: #e7f4f9
167
- border: 1px solid #d8f0fa
168
- padding: 0 0 0 25px
169
- margin: 0
170
-
171
- &.disabled
172
- color: silver
173
- opacity: 0.5
174
- -ms-filter: 'alpha(opacity=50)'
175
- filter: alpha(opacity=50)
176
- zoom: 1
177
-
178
- &:hover
179
- color: silver
180
- opacity: 0.5
181
- -ms-filter: 'alpha(opacity=50)'
182
- filter: alpha(opacity=50)
183
- zoom: 1
184
-
185
- .separator
186
- background: #FFFFFF
187
- border-top: 1px solid #E0E0E0
188
- font-size: 1px
189
- height: 1px
190
- line-height: 1px
191
- margin: 0 2px 0 24px
192
- min-height: 1px
193
- display: block
194
36
 
195
37
 
196
- .tree-association_page li li
197
- padding-left: 15px
198
-
199
-
200
- .leaf
38
+ .jstree-leaf
201
39
  -moz-border-radius: 3px
40
+ -webkit-border-radius: 3px
41
+ border-radius: 3px
202
42
  margin: 2px 0 !important
203
43
  padding-left: 5px !important
204
-
205
- .page
206
- background-color: #b0e0f1
207
- background-position: 0 -1198px
208
-
209
- &.clicked
44
+ &.jstree-clicked
210
45
  -moz-border-radius: 3px
46
+ -webkit-border-radius: 3px
47
+ border-radius: 3px
211
48
  margin: 2px 0 !important
212
-
213
- .page
214
- background-color: #8fc864
215
-
216
-
217
- .page.leaf a
218
- &:hover, &.hover
219
- color: #FFF !important
@@ -2,7 +2,7 @@
2
2
  padding: 10px
3
3
 
4
4
 
5
- .tree-block_category li
5
+ .jstree-block_category li
6
6
  width: 95%
7
7
 
8
8
  &.open
@@ -12,11 +12,11 @@
12
12
  background: url("brown-plus.png") 0 1px no-repeat
13
13
 
14
14
 
15
- #jstree-dragged.tree-block_category li li.open
15
+ #jstree-dragged.jstree-block_category li li.open
16
16
  background: url("brown-plus.png") 0 1px no-repeat
17
17
 
18
18
 
19
- .tree.tree-block_category .ltr li a
19
+ .jstree.jstree-block_category .ltr li a
20
20
  padding: 0px 5px 0px 24px
21
21
  color: #75491B
22
22
  font-weight: bold
@@ -25,7 +25,7 @@
25
25
  display: block
26
26
 
27
27
 
28
- .tree-block_category li
28
+ .jstree-block_category li
29
29
  span
30
30
  padding: 0px 5px 0px 24px
31
31
  color: #75491B
@@ -43,7 +43,7 @@
43
43
  margin-top: -16px
44
44
 
45
45
 
46
- .tree.tree-block_category .ltr li
46
+ .jstree.jstree-block_category .ltr li
47
47
  a
48
48
  &.block
49
49
  padding: 3px 5px 3px 32px
@@ -80,15 +80,15 @@
80
80
  color: #FFF
81
81
 
82
82
 
83
- .tree-block_category li span.clicked
83
+ .jstree-block_category li span.clicked
84
84
  padding: 0px 3px 0px 20px
85
85
 
86
86
 
87
- .tree.tree-block_category .ltr li a.loading
87
+ .jstree.jstree-block_category .ltr li a.loading
88
88
  background-image: url("throbber.gif")
89
89
 
90
90
 
91
- .tree-block_category-context
91
+ .jstree-block_category-context
92
92
  width: 160px
93
93
  background: #FFF
94
94
  border: 1px solid #AEB0B2
@@ -1,11 +1,11 @@
1
- #jstree-dragged.tree-menu-tree
1
+ #tree-dragged.jstree-menu-tree
2
2
  a
3
3
  background: white
4
4
  .see-on, .see-off, .editing
5
5
  display: none
6
6
  li.open
7
7
  background: url("dark-blue-plus.png") 0 3px no-repeat
8
- #jstree-marker
8
+ #tree-marker
9
9
  background-color: #FBEC88
10
10
  background-position: 0 0 !important
11
11
  height: 2px
@@ -14,7 +14,7 @@
14
14
  &.marker_plus
15
15
  width: 45px !important
16
16
 
17
- .tree-menu-tree
17
+ .jstree-menu-tree
18
18
  margin: 20px 0px 20px 0
19
19
  padding: 0
20
20
  font-size: .8em
@@ -23,21 +23,6 @@
23
23
  ul
24
24
  display: block
25
25
  margin-top: 0
26
-
27
- .rtl
28
- background-position: right 1px
29
-
30
- ul
31
- background-position: right 1px
32
-
33
- li
34
- background-position: right 8px
35
- position: relative
36
-
37
- &.last
38
- background-image: url("lastli_rtl.gif")
39
- background-position: right top
40
-
41
26
  li
42
27
  display: block !important
43
28
  position: relative !important
@@ -47,9 +32,9 @@
47
32
  left: 15px
48
33
  top: 2px
49
34
 
50
- &.open
35
+ &.jstree-open
51
36
  background: url("dark-blue-minus.png") 0 2px no-repeat
52
- &.closed
37
+ &.jstree-closed
53
38
  background: url("dark-blue-plus.png") 0 3px no-repeat
54
39
  &.folder
55
40
  .tree-link
@@ -59,13 +44,11 @@
59
44
  image: none
60
45
  .tree-link
61
46
  background-color: #FFF
62
- &.last
47
+ &.jstree-last
63
48
  float: none !important
64
49
  &.marker
65
50
  width: 500px !important
66
51
 
67
-
68
-
69
52
  .tree-link
70
53
  background: url("drag-drop.png") no-repeat left center
71
54
  padding-top: 2px
@@ -74,18 +57,21 @@
74
57
  border: 1px solid #E7E7E7
75
58
  -moz-border-radius: 3px
76
59
  -webkit-border-radius: 3px
60
+ border-radius: 3px
77
61
  position: relative
78
62
  margin-right: 80px
63
+ &.editing
64
+ background: url("big-drag-and-drop.png") repeat-y left center
79
65
  a.tree-link
66
+
80
67
  display: block
81
- div.tree-link
82
- background: url("big-drag-and-drop.png") repeat-y left center
83
- &.editing
84
- display: none
85
68
 
86
- &.leaf .tree-link
69
+ &.jstree-leaf .tree-link
87
70
  background: url("drag-drop.png") no-repeat left center
88
71
  background-color: #FFF
72
+ &.editing
73
+ background: url("big-drag-and-drop.png") repeat-y left center
74
+
89
75
 
90
76
  .add-green-plus, .edit-link, .destroy-link
91
77
  width: 16px
@@ -96,7 +82,7 @@
96
82
  top: 2px
97
83
  right: 0px
98
84
  display: none
99
-
85
+
100
86
  a
101
87
  width: 16px
102
88
  padding: 0
@@ -122,65 +108,3 @@
122
108
  right: 2px
123
109
  top: 2px
124
110
  padding: 0
125
-
126
- .tree-menu-tree-context
127
- width: 160px
128
- background: #F0F0F0 url("context.gif") 22px 0 repeat-y
129
- border: 1px solid silver
130
- position: absolute
131
-
132
- a
133
- display: block
134
- text-decoration: none
135
- color: black
136
- line-height: 20px
137
- background-repeat: no-repeat
138
- background-position: 2px center
139
- padding: 1px 0 1px 25px
140
- background-color: transparent
141
- border: 1px solid #f0f0f0
142
- border-width: 0 1px
143
- margin: 0
144
-
145
- &.disabled:hover
146
- display: block
147
- text-decoration: none
148
- color: black
149
- line-height: 20px
150
- background-repeat: no-repeat
151
- background-position: 2px center
152
- padding: 1px 0 1px 25px
153
- background-color: transparent
154
- border: 1px solid #f0f0f0
155
- border-width: 0 1px
156
- margin: 0
157
-
158
- &:hover
159
- background-color: #e7f4f9
160
- border: 1px solid #d8f0fa
161
- padding: 0 0 0 25px
162
- margin: 0
163
-
164
- &.disabled
165
- color: silver
166
- opacity: 0.5
167
- -ms-filter: 'alpha(opacity=50)'
168
- filter: alpha(opacity=50)
169
- zoom: 1
170
-
171
- &:hover
172
- color: silver
173
- opacity: 0.5
174
- -ms-filter: 'alpha(opacity=50)'
175
- filter: alpha(opacity=50)
176
- zoom: 1
177
-
178
- .separator
179
- background: #FFFFFF
180
- border-top: 1px solid #E0E0E0
181
- font-size: 1px
182
- height: 1px
183
- line-height: 1px
184
- margin: 0 2px 0 24px
185
- min-height: 1px
186
- display: block
@@ -2,7 +2,7 @@
2
2
  padding: 10px
3
3
 
4
4
 
5
- .tree-page_category li
5
+ .jstree-page_category li
6
6
  width: 95%
7
7
 
8
8
  &.open
@@ -12,11 +12,11 @@
12
12
  background: url("brown-plus.png") 0 1px no-repeat
13
13
 
14
14
 
15
- #jstree-dragged.tree-page_category li li.open
15
+ #jstree-dragged.jstree-page_category li li.open
16
16
  background: url("brown-plus.png") 0 1px no-repeat
17
17
 
18
18
 
19
- .tree.tree-page_category .ltr li a
19
+ .jstree.jstree-page_category .ltr li a
20
20
  padding: 0px 5px 0px 24px
21
21
  color: #75491B
22
22
  font-weight: bold
@@ -25,7 +25,7 @@
25
25
  display: block
26
26
 
27
27
 
28
- .tree-page_category li
28
+ .jstree-page_category li
29
29
  span
30
30
  padding: 0px 5px 0px 24px
31
31
  color: #75491B
@@ -43,7 +43,7 @@
43
43
  margin-top: -16px
44
44
 
45
45
 
46
- .tree.tree-page_category .ltr li
46
+ .jstree.jstree-page_category .ltr li
47
47
  a
48
48
  &.page
49
49
  padding: 3px 5px 3px 32px
@@ -80,15 +80,15 @@
80
80
  color: #FFF
81
81
 
82
82
 
83
- .tree-page_category li span.clicked
83
+ .jstree-page_category li span.clicked
84
84
  padding: 0px 3px 0px 20px
85
85
 
86
86
 
87
- .tree.tree-page_category .ltr li a.loading
87
+ .jstree.jstree-page_category .ltr li a.loading
88
88
  background-image: url("throbber.gif")
89
89
 
90
90
 
91
- .tree-page_category-context
91
+ .jstree-page_category-context
92
92
  width: 160px
93
93
  background: #FFF
94
94
  border: 1px solid #AEB0B2
@@ -74,7 +74,7 @@ private
74
74
  per_page = params[:iDisplayLength] ? params[:iDisplayLength].to_i : 10
75
75
  offset = params[:iDisplayStart] ? params[:iDisplayStart].to_i : 0
76
76
  page = (offset / per_page) + 1
77
- order = "#{columns[params[:iSortCol_0].to_i]} #{params[:iSortDir_0] ? params[:iSortDir_0].upcase : 'ASC'}"
77
+ order = "#{columns[params[:iSortCol_0].to_i]} #{params[:sSortDir_0] ? params[:sSortDir_0].upcase : 'ASC'}"
78
78
 
79
79
  conditions = {}
80
80
  includes = []
@@ -76,7 +76,7 @@ private
76
76
  end
77
77
 
78
78
  def get_pages_and_categories
79
- @page_categories = PageCategory.find_all_by_parent_id(nil,:joins => :translations, :order => 'name')
79
+ @page_categories = PageCategory.find_all_by_parent_id(nil, :group => 'category_id', :joins => :translations, :order => 'name')
80
80
  @pages = Page.all(:include => :categories, :conditions => { :categories_elements => { :category_id => nil }})
81
81
  end
82
82
 
@@ -79,7 +79,7 @@ private
79
79
  offset = params[:iDisplayStart].to_i
80
80
  page = (offset / per_page) + 1
81
81
  order_column = params[:iSortCol_0].to_i
82
- order = "#{columns[order_column]} #{params[:iSortDir_0].upcase}"
82
+ order = "#{columns[order_column]} #{params[:sSortDir_0].upcase}"
83
83
 
84
84
  conditions = {}
85
85
  includes = []
@@ -86,7 +86,7 @@ private
86
86
  per_page = params[:iDisplayLength] ? params[:iDisplayLength].to_i : 10
87
87
  offset = params[:iDisplayStart] ? params[:iDisplayStart].to_i : 0
88
88
  page = (offset / per_page) + 1
89
- order = "#{columns[params[:iSortCol_0].to_i]} #{params[:iSortDir_0] ? params[:iSortDir_0].upcase : 'ASC'}"
89
+ order = "#{columns[params[:iSortCol_0].to_i]} #{params[:sSortDir_0] ? params[:sSortDir_0].upcase : 'ASC'}"
90
90
 
91
91
  conditions = {}
92
92
  includes = []
@@ -134,7 +134,7 @@ private
134
134
  per_page = params[:iDisplayLength].to_i
135
135
  offset = params[:iDisplayStart].to_i
136
136
  page = (offset / per_page) + 1
137
- order = "#{columns[params[:iSortCol_0].to_i]} #{params[:iSortDir_0].upcase}"
137
+ order = "#{columns[params[:iSortCol_0].to_i]} #{params[:sSortDir_0].upcase}"
138
138
 
139
139
  conditions = {}
140
140
  options = { :order => order, :page => page, :per_page => per_page }
@@ -142,7 +142,7 @@ private
142
142
  includes = []
143
143
  if params[:category_id]
144
144
  conditions[:categories_elements] = { :category_id => params[:category_id] }
145
- includes << :page_categories
145
+ includes << :categories
146
146
  end
147
147
 
148
148
  if params[:ids]
@@ -134,7 +134,7 @@ private
134
134
  offset = params[:iDisplayStart].to_i
135
135
  page = (offset / per_page) + 1
136
136
  order_column = params[:iSortCol_0].to_i
137
- order = "#{columns[order_column]} #{params[:iSortDir_0].upcase}"
137
+ order = "#{columns[order_column]} #{params[:sSortDir_0].upcase}"
138
138
 
139
139
  conditions = {}
140
140
  includes = []
@@ -44,7 +44,7 @@ private
44
44
  offset = params[:iDisplayStart].to_i
45
45
  page = (offset / per_page) + 1
46
46
  order_column = params[:iSortCol_0].to_i
47
- order = "#{columns[order_column]} #{params[:iSortDir_0].upcase}"
47
+ order = "#{columns[order_column]} #{params[:sSortDir_0].upcase}"
48
48
 
49
49
  conditions = {}
50
50
  includes = []
@@ -15,7 +15,7 @@ Forgeos::ApplicationController.class_eval do
15
15
  end
16
16
 
17
17
  # Rails Bug fix on Nested inheritance models : Load nested models to use it parent class
18
- #Carousel
19
- #WidgetActuality
20
- #WidgetFaq
21
- #LinkPage
18
+ Carousel
19
+ WidgetActuality
20
+ WidgetFaq
21
+ LinkPage
@@ -0,0 +1,16 @@
1
+ load File.join(Gem.loaded_specs['forgeos_core'].full_gem_path, 'app', 'helpers', 'admin', 'base_helper.rb')
2
+
3
+ module Admin::BaseHelper
4
+ def block_container(model_name, block_name, block, &proc)
5
+ content_tag :div, :class => 'block-container ui-corner-all' do
6
+ content_tag(:span, :class => 'block-type') do
7
+ content_tag(:span, content_tag(:span, '&nbsp;', :class => 'inner'), :class => 'handler') +
8
+ block.model_name.human
9
+ end +
10
+ content_tag(:span, capture(&proc), :class => 'block-name') +
11
+ link_to('', [:edit, :admin, block], :class => 'small-icons edit-link', :popup => true) +
12
+ link_to('', '#', :class => 'big-icons gray-destroy') +
13
+ hidden_field_tag("#{model_name}[#{block_name}_ids][]", block.id, :class => 'block-selected')
14
+ end
15
+ end
16
+ end
@@ -11,22 +11,21 @@
11
11
  content_tag(:div, actuality.date),
12
12
  content_tag(:div, link_to(actuality.title, [forgeos_cms, :admin, actuality]), :class => 'actuality-name'),
13
13
  content_tag(:div, author || 'not found'),
14
- link_to('', :url => forgeos_cms.activate_admin_actuality_path(actuality),
14
+ link_to('', [forgeos_cms, :activate, :admin, actuality],
15
15
  :remote => true,
16
16
  :complete => "toggleActivate('#show_#{link_id}')",
17
- :html => {
18
- :class => "small-icons #{klass}",
19
- :id => "show_#{link_id}"
20
- }),
17
+ :class => "small-icons #{klass}",
18
+ :id => "show_#{link_id}"
19
+ ),
21
20
  link_to('', [forgeos_cms, :edit, :admin, actuality], :class => 'small-icons edit-link') +
22
- link_to('', :url => [forgeos_cms, :admin, actuality],
21
+ link_to('', [forgeos_cms, :admin, actuality],
23
22
  :remote => true,
24
23
  :method => :delete,
25
24
  :confirm => t('actuality.destroy.confirm').capitalize,
26
25
  :success => "removedataTablesRow('#destroy_#{link_id}')",
27
- :html => {
28
- :class => 'small-icons destroy-link', :id => "destroy_#{link_id}"
29
- })
26
+ :class => 'small-icons destroy-link',
27
+ :id => "destroy_#{link_id}"
28
+ )
30
29
  ]
31
30
  end
32
31
  }