active_scaffold_vho 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (279) hide show
  1. data/.autotest +27 -0
  2. data/.document +5 -0
  3. data/CHANGELOG +179 -0
  4. data/Gemfile +13 -0
  5. data/Gemfile.lock +20 -0
  6. data/MIT-LICENSE +20 -0
  7. data/README +63 -0
  8. data/Rakefile +53 -0
  9. data/frontends/default/images/add.gif +0 -0
  10. data/frontends/default/images/arrow_down.gif +0 -0
  11. data/frontends/default/images/arrow_up.gif +0 -0
  12. data/frontends/default/images/close.gif +0 -0
  13. data/frontends/default/images/config.png +0 -0
  14. data/frontends/default/images/cross.png +0 -0
  15. data/frontends/default/images/gears.png +0 -0
  16. data/frontends/default/images/indicator-small.gif +0 -0
  17. data/frontends/default/images/indicator.gif +0 -0
  18. data/frontends/default/images/magnifier.png +0 -0
  19. data/frontends/default/javascripts/jquery/active_scaffold.js +957 -0
  20. data/frontends/default/javascripts/jquery/jquery.editinplace.js +743 -0
  21. data/frontends/default/javascripts/prototype/active_scaffold.js +957 -0
  22. data/frontends/default/javascripts/prototype/dhtml_history.js +867 -0
  23. data/frontends/default/javascripts/prototype/form_enhancements.js +117 -0
  24. data/frontends/default/javascripts/prototype/rico_corner.js +370 -0
  25. data/frontends/default/stylesheets/stylesheet-ie.css +35 -0
  26. data/frontends/default/stylesheets/stylesheet.css +964 -0
  27. data/frontends/default/views/_action_group.html.erb +20 -0
  28. data/frontends/default/views/_add_existing_form.html.erb +30 -0
  29. data/frontends/default/views/_base_form.html.erb +45 -0
  30. data/frontends/default/views/_create_form.html.erb +8 -0
  31. data/frontends/default/views/_create_form_on_list.html.erb +6 -0
  32. data/frontends/default/views/_field_search.html.erb +32 -0
  33. data/frontends/default/views/_form.html.erb +24 -0
  34. data/frontends/default/views/_form_association.html.erb +14 -0
  35. data/frontends/default/views/_form_association_footer.html.erb +40 -0
  36. data/frontends/default/views/_form_attribute.html.erb +15 -0
  37. data/frontends/default/views/_form_hidden_attribute.html.erb +2 -0
  38. data/frontends/default/views/_form_messages.html.erb +5 -0
  39. data/frontends/default/views/_horizontal_subform.html.erb +19 -0
  40. data/frontends/default/views/_horizontal_subform_header.html.erb +10 -0
  41. data/frontends/default/views/_horizontal_subform_record.html.erb +37 -0
  42. data/frontends/default/views/_human_conditions.html.erb +1 -0
  43. data/frontends/default/views/_list.html.erb +18 -0
  44. data/frontends/default/views/_list_actions.html.erb +15 -0
  45. data/frontends/default/views/_list_calculations.html.erb +16 -0
  46. data/frontends/default/views/_list_column_headings.html.erb +12 -0
  47. data/frontends/default/views/_list_header.html.erb +10 -0
  48. data/frontends/default/views/_list_inline_adapter.html.erb +10 -0
  49. data/frontends/default/views/_list_messages.html.erb +32 -0
  50. data/frontends/default/views/_list_pagination.html.erb +11 -0
  51. data/frontends/default/views/_list_pagination_links.html.erb +9 -0
  52. data/frontends/default/views/_list_record.html.erb +14 -0
  53. data/frontends/default/views/_list_record_columns.html.erb +8 -0
  54. data/frontends/default/views/_list_with_header.html.erb +32 -0
  55. data/frontends/default/views/_messages.html.erb +10 -0
  56. data/frontends/default/views/_render_field.js.rjs +13 -0
  57. data/frontends/default/views/_row.html.erb +12 -0
  58. data/frontends/default/views/_search.html.erb +34 -0
  59. data/frontends/default/views/_search_attribute.html.erb +10 -0
  60. data/frontends/default/views/_show.html.erb +8 -0
  61. data/frontends/default/views/_show_columns.html.erb +15 -0
  62. data/frontends/default/views/_update_actions.html.erb +9 -0
  63. data/frontends/default/views/_update_form.html.erb +6 -0
  64. data/frontends/default/views/_vertical_subform.html.erb +12 -0
  65. data/frontends/default/views/_vertical_subform_record.html.erb +38 -0
  66. data/frontends/default/views/action_confirmation.html.erb +13 -0
  67. data/frontends/default/views/add_existing.js.rjs +17 -0
  68. data/frontends/default/views/add_existing_form.html.erb +5 -0
  69. data/frontends/default/views/create.html.erb +5 -0
  70. data/frontends/default/views/delete.html.erb +13 -0
  71. data/frontends/default/views/destroy.js.rjs +11 -0
  72. data/frontends/default/views/edit_associated.js.rjs +11 -0
  73. data/frontends/default/views/field_search.html.erb +5 -0
  74. data/frontends/default/views/form_messages.js.rjs +1 -0
  75. data/frontends/default/views/list.html.erb +1 -0
  76. data/frontends/default/views/list.js.rjs +1 -0
  77. data/frontends/default/views/on_action_update.js.rjs +8 -0
  78. data/frontends/default/views/on_create.js.rjs +41 -0
  79. data/frontends/default/views/on_update.js.rjs +28 -0
  80. data/frontends/default/views/search.html.erb +5 -0
  81. data/frontends/default/views/show.html.erb +5 -0
  82. data/frontends/default/views/update.html.erb +8 -0
  83. data/frontends/default/views/update_column.js.rjs +13 -0
  84. data/frontends/default/views/update_row.js.rjs +1 -0
  85. data/init.rb +9 -0
  86. data/lib/active_record_permissions.rb +134 -0
  87. data/lib/active_scaffold/actions/common_search.rb +22 -0
  88. data/lib/active_scaffold/actions/core.rb +170 -0
  89. data/lib/active_scaffold/actions/create.rb +145 -0
  90. data/lib/active_scaffold/actions/delete.rb +75 -0
  91. data/lib/active_scaffold/actions/field_search.rb +82 -0
  92. data/lib/active_scaffold/actions/list.rb +184 -0
  93. data/lib/active_scaffold/actions/mark.rb +50 -0
  94. data/lib/active_scaffold/actions/nested.rb +250 -0
  95. data/lib/active_scaffold/actions/search.rb +47 -0
  96. data/lib/active_scaffold/actions/show.rb +61 -0
  97. data/lib/active_scaffold/actions/subform.rb +17 -0
  98. data/lib/active_scaffold/actions/update.rb +141 -0
  99. data/lib/active_scaffold/attribute_params.rb +207 -0
  100. data/lib/active_scaffold/bridges/ancestry/bridge.rb +5 -0
  101. data/lib/active_scaffold/bridges/ancestry/lib/ancestry_bridge.rb +39 -0
  102. data/lib/active_scaffold/bridges/bridge.rb +52 -0
  103. data/lib/active_scaffold/bridges/calendar_date_select/bridge.rb +16 -0
  104. data/lib/active_scaffold/bridges/calendar_date_select/lib/as_cds_bridge.rb +79 -0
  105. data/lib/active_scaffold/bridges/carrierwave/bridge.rb +7 -0
  106. data/lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge.rb +38 -0
  107. data/lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge_helpers.rb +26 -0
  108. data/lib/active_scaffold/bridges/carrierwave/lib/form_ui.rb +35 -0
  109. data/lib/active_scaffold/bridges/carrierwave/lib/list_ui.rb +17 -0
  110. data/lib/active_scaffold/bridges/date_picker/bridge.rb +22 -0
  111. data/lib/active_scaffold/bridges/date_picker/lib/datepicker_bridge.rb +225 -0
  112. data/lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js +22 -0
  113. data/lib/active_scaffold/bridges/file_column/bridge.rb +11 -0
  114. data/lib/active_scaffold/bridges/file_column/lib/as_file_column_bridge.rb +46 -0
  115. data/lib/active_scaffold/bridges/file_column/lib/file_column_helpers.rb +59 -0
  116. data/lib/active_scaffold/bridges/file_column/lib/form_ui.rb +37 -0
  117. data/lib/active_scaffold/bridges/file_column/lib/list_ui.rb +26 -0
  118. data/lib/active_scaffold/bridges/file_column/test/functional/file_column_keep_test.rb +43 -0
  119. data/lib/active_scaffold/bridges/file_column/test/mock_model.rb +9 -0
  120. data/lib/active_scaffold/bridges/file_column/test/test_helper.rb +15 -0
  121. data/lib/active_scaffold/bridges/paperclip/bridge.rb +10 -0
  122. data/lib/active_scaffold/bridges/paperclip/lib/form_ui.rb +27 -0
  123. data/lib/active_scaffold/bridges/paperclip/lib/list_ui.rb +16 -0
  124. data/lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge.rb +38 -0
  125. data/lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge_helpers.rb +26 -0
  126. data/lib/active_scaffold/bridges/semantic_attributes/bridge.rb +5 -0
  127. data/lib/active_scaffold/bridges/semantic_attributes/lib/semantic_attributes_bridge.rb +20 -0
  128. data/lib/active_scaffold/bridges/shared/date_bridge.rb +187 -0
  129. data/lib/active_scaffold/bridges/tiny_mce/bridge.rb +5 -0
  130. data/lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb +45 -0
  131. data/lib/active_scaffold/bridges/validation_reflection/bridge.rb +8 -0
  132. data/lib/active_scaffold/bridges/validation_reflection/lib/validation_reflection_bridge.rb +21 -0
  133. data/lib/active_scaffold/config/base.rb +62 -0
  134. data/lib/active_scaffold/config/core.rb +220 -0
  135. data/lib/active_scaffold/config/create.rb +51 -0
  136. data/lib/active_scaffold/config/delete.rb +34 -0
  137. data/lib/active_scaffold/config/field_search.rb +75 -0
  138. data/lib/active_scaffold/config/form.rb +47 -0
  139. data/lib/active_scaffold/config/list.rb +174 -0
  140. data/lib/active_scaffold/config/mark.rb +22 -0
  141. data/lib/active_scaffold/config/nested.rb +44 -0
  142. data/lib/active_scaffold/config/search.rb +69 -0
  143. data/lib/active_scaffold/config/show.rb +35 -0
  144. data/lib/active_scaffold/config/subform.rb +35 -0
  145. data/lib/active_scaffold/config/update.rb +46 -0
  146. data/lib/active_scaffold/configurable.rb +29 -0
  147. data/lib/active_scaffold/constraints.rb +184 -0
  148. data/lib/active_scaffold/data_structures/action_columns.rb +133 -0
  149. data/lib/active_scaffold/data_structures/action_link.rb +171 -0
  150. data/lib/active_scaffold/data_structures/action_links.rb +175 -0
  151. data/lib/active_scaffold/data_structures/actions.rb +45 -0
  152. data/lib/active_scaffold/data_structures/column.rb +351 -0
  153. data/lib/active_scaffold/data_structures/columns.rb +75 -0
  154. data/lib/active_scaffold/data_structures/error_message.rb +24 -0
  155. data/lib/active_scaffold/data_structures/nested_info.rb +123 -0
  156. data/lib/active_scaffold/data_structures/set.rb +62 -0
  157. data/lib/active_scaffold/data_structures/sorting.rb +168 -0
  158. data/lib/active_scaffold/finder.rb +333 -0
  159. data/lib/active_scaffold/helpers/association_helpers.rb +40 -0
  160. data/lib/active_scaffold/helpers/controller_helpers.rb +82 -0
  161. data/lib/active_scaffold/helpers/country_helpers.rb +352 -0
  162. data/lib/active_scaffold/helpers/form_column_helpers.rb +347 -0
  163. data/lib/active_scaffold/helpers/human_condition_helpers.rb +59 -0
  164. data/lib/active_scaffold/helpers/id_helpers.rb +127 -0
  165. data/lib/active_scaffold/helpers/list_column_helpers.rb +361 -0
  166. data/lib/active_scaffold/helpers/pagination_helpers.rb +55 -0
  167. data/lib/active_scaffold/helpers/search_column_helpers.rb +243 -0
  168. data/lib/active_scaffold/helpers/show_column_helpers.rb +46 -0
  169. data/lib/active_scaffold/helpers/view_helpers.rb +356 -0
  170. data/lib/active_scaffold/locale/de.rb +120 -0
  171. data/lib/active_scaffold/locale/en.rb +119 -0
  172. data/lib/active_scaffold/locale/es.yml +115 -0
  173. data/lib/active_scaffold/locale/fr.rb +116 -0
  174. data/lib/active_scaffold/locale/hu.yml +63 -0
  175. data/lib/active_scaffold/locale/ja.yml +64 -0
  176. data/lib/active_scaffold/locale/ru.yml +119 -0
  177. data/lib/active_scaffold/marked_model.rb +38 -0
  178. data/lib/active_scaffold/version.rb +9 -0
  179. data/lib/active_scaffold.rb +345 -0
  180. data/lib/active_scaffold_assets.rb +45 -0
  181. data/lib/dhtml_confirm.rb +54 -0
  182. data/lib/environment.rb +14 -0
  183. data/lib/extensions/action_controller_rendering.rb +20 -0
  184. data/lib/extensions/action_view_rendering.rb +113 -0
  185. data/lib/extensions/action_view_resolver.rb +7 -0
  186. data/lib/extensions/active_association_reflection.rb +13 -0
  187. data/lib/extensions/active_record_offset.rb +12 -0
  188. data/lib/extensions/array.rb +7 -0
  189. data/lib/extensions/localize.rb +10 -0
  190. data/lib/extensions/name_option_for_datetime.rb +12 -0
  191. data/lib/extensions/nil_id_in_url_params.rb +7 -0
  192. data/lib/extensions/paginator_extensions.rb +26 -0
  193. data/lib/extensions/reverse_associations.rb +62 -0
  194. data/lib/extensions/routing_mapper.rb +34 -0
  195. data/lib/extensions/to_label.rb +8 -0
  196. data/lib/extensions/unsaved_associated.rb +61 -0
  197. data/lib/extensions/unsaved_record.rb +20 -0
  198. data/lib/extensions/usa_state.rb +46 -0
  199. data/lib/generators/active_scaffold/USAGE +29 -0
  200. data/lib/generators/active_scaffold/active_scaffold_generator.rb +20 -0
  201. data/lib/generators/active_scaffold_controller/USAGE +19 -0
  202. data/lib/generators/active_scaffold_controller/active_scaffold_controller_generator.rb +28 -0
  203. data/lib/generators/active_scaffold_controller/templates/controller.rb +4 -0
  204. data/lib/generators/active_scaffold_setup/USAGE +10 -0
  205. data/lib/generators/active_scaffold_setup/active_scaffold_setup_generator.rb +53 -0
  206. data/lib/paginator.rb +136 -0
  207. data/lib/responds_to_parent.rb +70 -0
  208. data/public/blank.html +33 -0
  209. data/shoulda_macros/macros.rb +136 -0
  210. data/test/bridges/bridge_test.rb +47 -0
  211. data/test/config/base_test.rb +15 -0
  212. data/test/config/create_test.rb +55 -0
  213. data/test/config/list_test.rb +74 -0
  214. data/test/config/show_test.rb +43 -0
  215. data/test/config/update_test.rb +17 -0
  216. data/test/const_mocker.rb +36 -0
  217. data/test/data_structures/action_columns_test.rb +113 -0
  218. data/test/data_structures/action_link_test.rb +78 -0
  219. data/test/data_structures/action_links_test.rb +78 -0
  220. data/test/data_structures/actions_test.rb +25 -0
  221. data/test/data_structures/association_column_test.rb +42 -0
  222. data/test/data_structures/column_test.rb +185 -0
  223. data/test/data_structures/columns_test.rb +69 -0
  224. data/test/data_structures/error_message_test.rb +28 -0
  225. data/test/data_structures/set_test.rb +86 -0
  226. data/test/data_structures/sorting_test.rb +126 -0
  227. data/test/data_structures/standard_column_test.rb +24 -0
  228. data/test/data_structures/virtual_column_test.rb +23 -0
  229. data/test/extensions/active_record_test.rb +45 -0
  230. data/test/extensions/array_test.rb +12 -0
  231. data/test/helpers/form_column_helpers_test.rb +31 -0
  232. data/test/helpers/list_column_helpers_test.rb +31 -0
  233. data/test/helpers/pagination_helpers_test.rb +55 -0
  234. data/test/misc/active_record_permissions_test.rb +154 -0
  235. data/test/misc/attribute_params_test.rb +110 -0
  236. data/test/misc/configurable_test.rb +96 -0
  237. data/test/misc/constraints_test.rb +193 -0
  238. data/test/misc/finder_test.rb +93 -0
  239. data/test/misc/lang_test.rb +12 -0
  240. data/test/mock_app/.gitignore +2 -0
  241. data/test/mock_app/app/controllers/application_controller.rb +10 -0
  242. data/test/mock_app/app/helpers/application_helper.rb +3 -0
  243. data/test/mock_app/config/boot.rb +110 -0
  244. data/test/mock_app/config/database.yml +16 -0
  245. data/test/mock_app/config/environment.rb +43 -0
  246. data/test/mock_app/config/environments/development.rb +17 -0
  247. data/test/mock_app/config/environments/production.rb +28 -0
  248. data/test/mock_app/config/environments/test.rb +28 -0
  249. data/test/mock_app/config/initializers/backtrace_silencers.rb +7 -0
  250. data/test/mock_app/config/initializers/inflections.rb +10 -0
  251. data/test/mock_app/config/initializers/mime_types.rb +5 -0
  252. data/test/mock_app/config/initializers/new_rails_defaults.rb +19 -0
  253. data/test/mock_app/config/initializers/session_store.rb +15 -0
  254. data/test/mock_app/config/locales/en.yml +5 -0
  255. data/test/mock_app/config/routes.rb +43 -0
  256. data/test/mock_app/db/test.sqlite3 +1 -0
  257. data/test/mock_app/public/blank.html +33 -0
  258. data/test/mock_app/public/images/active_scaffold/DO_NOT_EDIT +2 -0
  259. data/test/mock_app/public/images/active_scaffold/default/add.gif +0 -0
  260. data/test/mock_app/public/images/active_scaffold/default/arrow_down.gif +0 -0
  261. data/test/mock_app/public/images/active_scaffold/default/arrow_up.gif +0 -0
  262. data/test/mock_app/public/images/active_scaffold/default/close.gif +0 -0
  263. data/test/mock_app/public/images/active_scaffold/default/cross.png +0 -0
  264. data/test/mock_app/public/images/active_scaffold/default/indicator-small.gif +0 -0
  265. data/test/mock_app/public/images/active_scaffold/default/indicator.gif +0 -0
  266. data/test/mock_app/public/images/active_scaffold/default/magnifier.png +0 -0
  267. data/test/mock_app/public/javascripts/active_scaffold/DO_NOT_EDIT +2 -0
  268. data/test/mock_app/public/javascripts/active_scaffold/default/active_scaffold.js +532 -0
  269. data/test/mock_app/public/javascripts/active_scaffold/default/dhtml_history.js +867 -0
  270. data/test/mock_app/public/javascripts/active_scaffold/default/form_enhancements.js +117 -0
  271. data/test/mock_app/public/javascripts/active_scaffold/default/rico_corner.js +370 -0
  272. data/test/mock_app/public/stylesheets/active_scaffold/DO_NOT_EDIT +2 -0
  273. data/test/mock_app/public/stylesheets/active_scaffold/default/stylesheet-ie.css +35 -0
  274. data/test/mock_app/public/stylesheets/active_scaffold/default/stylesheet.css +839 -0
  275. data/test/model_stub.rb +55 -0
  276. data/test/run_all.rb +8 -0
  277. data/test/test_helper.rb +39 -0
  278. data/uninstall.rb +13 -0
  279. metadata +492 -0
@@ -0,0 +1,964 @@
1
+ /*
2
+ ActiveScaffold
3
+ (c) 2007 Richard White <rrwhite@gmail.com>
4
+
5
+ ActiveScaffold is freely distributable under the terms of an MIT-style license.
6
+
7
+ For details, see the ActiveScaffold web site: http://www.activescaffold.com/
8
+ */
9
+
10
+ .active-scaffold form,
11
+ .active-scaffold table,
12
+ .active-scaffold p,
13
+ .active-scaffold div,
14
+ .active-scaffold fieldset {
15
+ margin: 0;
16
+ padding: 0;
17
+ }
18
+
19
+ .active-scaffold {
20
+ margin: 5px 0;
21
+ }
22
+
23
+ .active-scaffold table {
24
+ width: 100%;
25
+ border-collapse: separate;
26
+ }
27
+
28
+ .active-scaffold a,
29
+ .active-scaffold a:visited {
30
+ color: #06c;
31
+ text-decoration: none;
32
+ }
33
+
34
+ .active-scaffold a.disabled {
35
+ color: #999;
36
+ }
37
+
38
+ .active-scaffold a:hover, .active-scaffold div.hover {
39
+ background-color: #ff8;
40
+ }
41
+
42
+ .active-scaffold div.actions a img,
43
+ .active-scaffold td.actions a img {
44
+ border: none;
45
+ vertical-align: middle;
46
+ }
47
+
48
+ .active-scaffold div.actions a.disabled img,
49
+ .active-scaffold td.actions a.disabled img {
50
+ opacity: 0.5;
51
+ }
52
+
53
+ .active-scaffold .clear-fix {
54
+ clear: both;
55
+ }
56
+
57
+ noscript.active-scaffold {
58
+ border-left: solid 5px #f66;
59
+ background-color: #fbb;
60
+ font-size: 11px;
61
+ font-weight: bold;
62
+ padding: 5px 20px 5px 5px;
63
+ color: #333;
64
+ }
65
+
66
+ /* Header
67
+ ======================== */
68
+
69
+ .active-scaffold-header {
70
+ position: relative;
71
+ }
72
+
73
+ .blue-theme .active-scaffold-header {
74
+ background-color: #005CB8;
75
+ }
76
+
77
+ .active-scaffold-header h2 {
78
+ padding: 2px 0px;
79
+ margin: 0;
80
+ color: #555;
81
+ font: bold 160% arial, sans-serif;
82
+ }
83
+
84
+ .blue-theme .active-scaffold-header h2 {
85
+ color: #fff;
86
+ padding: 2px 5px 4px 5px;
87
+ }
88
+
89
+ .active-scaffold-header div.actions a,
90
+ .active-scaffold-header div.actions {
91
+ float: right;
92
+ font: bold 14px arial;
93
+ letter-spacing: -1px;
94
+ text-decoration: none;
95
+ padding: 1px 2px;
96
+ white-space: nowrap;
97
+ margin-left: 5px;
98
+ background-position: 1px 50%;
99
+ background-repeat: no-repeat;
100
+ }
101
+
102
+ .active-scaffold-header div.actions div.action_group {
103
+ display: inline;
104
+ float: right;
105
+ }
106
+
107
+ .active-scaffold-header div.actions div.action_group li a,
108
+ .active-scaffold-header div.actions div.action_group li div {
109
+ float: none;
110
+ margin: 0 2px;
111
+ }
112
+
113
+ .active-scaffold-header div.actions .action_group ul {
114
+ line-height: 130%;
115
+ top: 14px;
116
+ }
117
+
118
+ .view .active-scaffold-header div.actions a,
119
+ .view .active-scaffold-header div.actions div,
120
+ .view .active-scaffold-header div.actions div.action_group {
121
+ float: left;
122
+ }
123
+
124
+ .blue-theme .active-scaffold-header div.actions a {
125
+ color: #fff;
126
+ }
127
+
128
+ .active-scaffold-header div.actions a.disabled {
129
+ color: #666;
130
+ opacity: 0.5;
131
+ }
132
+
133
+ .blue-theme .active-scaffold-header div.actions a.disabled {
134
+ color: #fff;
135
+ opacity: 0.5;
136
+ }
137
+
138
+ .active-scaffold-header div.actions a.new,
139
+ .active-scaffold-header div.actions a.new_existing,
140
+ .active-scaffold-header div.actions a.show_search,
141
+ .active-scaffold-header div.actions a.show_config_list,
142
+ .active-scaffold-header div.actions div.action_group div {
143
+ padding-left: 19px;
144
+ background-position: 1px 50%;
145
+ background-repeat: no-repeat;
146
+ }
147
+
148
+ .active-scaffold-header div.actions div.action_group div {
149
+ padding: 1px 2px 1px 19px;
150
+ background-position: 1px 50%;
151
+ background-repeat: no-repeat;
152
+ margin-left: 5px;
153
+ background-image: url(../../../images/active_scaffold/default/gears.png); /* default icon for actions or override with css */
154
+ }
155
+
156
+ .active-scaffold-header div.actions a.show_config_list {
157
+ background-image: url(../../../images/active_scaffold/default/config.png);
158
+ }
159
+
160
+ .active-scaffold-header div.actions a.new,
161
+ .active-scaffold-header div.actions a.new_existing {
162
+ background-image: url(../../../images/active_scaffold/default/add.gif);
163
+ }
164
+
165
+ .active-scaffold-header div.actions a.show_search {
166
+ background-image: url(../../../images/active_scaffold/default/magnifier.png);
167
+ }
168
+
169
+ .blue-theme .active-scaffold-header div.actions a:hover {
170
+ background-color: #378CDF;
171
+ }
172
+
173
+ .active-scaffold-header div.actions a.disabled:hover {
174
+ background-color: transparent;
175
+ cursor: default;
176
+ }
177
+
178
+ .active-scaffold-header div.actions {
179
+ position: absolute;
180
+ right: 5px;
181
+ top: 5px;
182
+ text-align: right;
183
+ }
184
+
185
+ /* Table :: Column Headers
186
+ ============================= */
187
+
188
+ .active-scaffold th {
189
+ background-color: #555;
190
+ text-align: left;
191
+ }
192
+
193
+ .active-scaffold th a,
194
+ .active-scaffold th p {
195
+ font: bold 11px arial, sans-serif;
196
+ display: block;
197
+ background-color: #555;
198
+ }
199
+
200
+ .active-scaffold th a, .active-scaffold th a:visited {
201
+ color: #fff;
202
+ padding: 2px 2px 2px 5px;
203
+ }
204
+
205
+ .active-scaffold th p {
206
+ color: #eee;
207
+ padding: 2px 5px;
208
+ }
209
+
210
+ .active-scaffold th a:hover {
211
+ background-color: #000;
212
+ color: #ff8;
213
+ }
214
+
215
+ .active-scaffold th.sorted {
216
+ background-color: #333;
217
+ }
218
+
219
+ .active-scaffold th.sorted a {
220
+ padding-right: 18px;
221
+ }
222
+
223
+ .active-scaffold th.asc a,
224
+ .active-scaffold th.asc a:hover {
225
+ background: #333 url(../../../images/active_scaffold/default/arrow_up.gif) right 50% no-repeat;
226
+ }
227
+
228
+ .active-scaffold th.desc a,
229
+ .active-scaffold th.desc a:hover {
230
+ background: #333 url(../../../images/active_scaffold/default/arrow_down.gif) right 50% no-repeat;
231
+ }
232
+
233
+ .active-scaffold th.loading a,
234
+ .active-scaffold th.loading a:hover {
235
+ background: #333 url(../../../images/active_scaffold/default/indicator-small.gif) right 50% no-repeat;
236
+ }
237
+
238
+ .active-scaffold th .mark_heading {
239
+ margin-left: 5px;
240
+ }
241
+
242
+ /* Table :: Record Rows
243
+ ============================= */
244
+
245
+ .active-scaffold tr.record {
246
+ background-color: #E6F2FF;
247
+ }
248
+ .active-scaffold tr.record td {
249
+ padding: 5px 4px;
250
+ color: #333;
251
+ font-family: Verdana, sans-serif;
252
+ font-size: 11px;
253
+ border-bottom: solid 1px #C5DBF7;
254
+ border-left: solid 1px #C5DBF7;
255
+ }
256
+
257
+ .active-scaffold tr.record td.messages-container {
258
+ padding: 0px;
259
+ }
260
+
261
+ .active-scaffold tr.even-record {
262
+ background-color: #fff;
263
+ }
264
+ .active-scaffold tr.even-record td {
265
+ border-left-color: #ddd;
266
+ }
267
+
268
+ .active-scaffold tr.record td.sorted {
269
+ background-color: #B9DCFF;
270
+ border-bottom-color: #AFD0F5;
271
+ }
272
+
273
+ .active-scaffold tr.even-record td.sorted {
274
+ background-color: #E6F2FF;
275
+ border-bottom-color: #AFD0F5;
276
+ }
277
+
278
+ .active-scaffold tbody.records td.empty {
279
+ color: #999;
280
+ text-align: center;
281
+ }
282
+
283
+ .active-scaffold td.numeric,
284
+ .active-scaffold-calculations td {
285
+ text-align: right;
286
+ }
287
+
288
+ /* Table :: Actions (Edit, Delete)
289
+ ============================= */
290
+ .active-scaffold tr.record td.actions {
291
+ border-right: solid 1px #ccc;
292
+ padding: 0;
293
+ min-width: 1%;
294
+ }
295
+
296
+ .active-scaffold tr.record td.actions table {
297
+ float: right;
298
+ width: auto;
299
+ margin-right: 5px;
300
+ }
301
+
302
+ .active-scaffold tr.record td.actions table td {
303
+ border: none;
304
+ text-align: right;
305
+ padding: 0 2px;
306
+ }
307
+
308
+ .active-scaffold tr.record td.actions a,
309
+ .active-scaffold tr.record td.actions div {
310
+ font: bold 11px verdana, sans-serif;
311
+ letter-spacing: -1px;
312
+ padding: 2px;
313
+ margin: 0 2px;
314
+ line-height: 16px;
315
+ white-space: nowrap;
316
+ }
317
+
318
+ .active-scaffold .actions .action_group div:hover {
319
+ background-color: #ff8;
320
+ }
321
+
322
+ .active-scaffold .actions .action_group {
323
+ position: relative;
324
+ text-align: left;
325
+ color: #0066CC;
326
+ }
327
+
328
+ .active-scaffold .actions .action_group ul {
329
+ border: 2px solid #005CB8;
330
+ list-style-type: none;
331
+ margin: 0;
332
+ padding: 0;
333
+ position: absolute;
334
+ line-height: 200%;
335
+ display: none;
336
+ width: 150px;
337
+ right: 0px;
338
+ }
339
+
340
+ .active-scaffold .actions .action_group ul ul {
341
+ display: none;
342
+ position: absolute;
343
+ top: 0;
344
+ right: 150px;
345
+ }
346
+
347
+ .active-scaffold .actions .action_group ul li {
348
+ background: none repeat scroll 0 0 #EEE;
349
+ border-bottom: 1px dashed #222;
350
+ display: block;
351
+ padding-bottom: 5px;
352
+ position: relative;
353
+ width: auto;
354
+ z-index: 2;
355
+ }
356
+
357
+ .active-scaffold .actions .action_group ul li.top {
358
+ border-top: 1px solid #005CB8;
359
+ }
360
+
361
+ .active-scaffold .actions .action_group ul li a {
362
+ display: block;
363
+ color: #333;
364
+ margin: 0;
365
+ padding: 3px 5px 3px 25px;
366
+ }
367
+
368
+ .active-scaffold .actions .action_group:hover ul ul,
369
+ .active-scaffold .actions .action_group:hover ul ul ul {
370
+ display: none;
371
+ }
372
+
373
+ .active-scaffold .actions .action_group:hover ul,
374
+ .active-scaffold .actions .action_group ul li:hover > ul,
375
+ .active-scaffold .actions .action_group ul ul li:hover ul {
376
+ display: block;
377
+ }
378
+
379
+
380
+
381
+
382
+ /* Table :: Inline Adapter
383
+ ============================= */
384
+
385
+ .active-scaffold .view {
386
+ background-color: #DAFFCD;
387
+ padding: 4px;
388
+ border: solid 1px #7FcF00;
389
+ }
390
+
391
+ .active-scaffold tbody.records td.inline-adapter-cell .view {
392
+ border-top: none;
393
+ }
394
+
395
+ .active-scaffold .before-header td.inline-adapter-cell .view {
396
+ border-bottom: none;
397
+ }
398
+
399
+ .active-scaffold a.inline-adapter-close {
400
+ float: right;
401
+ text-indent: -4000px;
402
+ width: 16px;
403
+ height: 17px;
404
+ background: url(../../../images/active_scaffold/default/close.gif) 0 0 no-repeat;
405
+ }
406
+
407
+ /* Nested
408
+ ======================== */
409
+
410
+ .blue-theme .active-scaffold .active-scaffold-header,
411
+ .blue-theme .active-scaffold .active-scaffold-footer {
412
+ background-color: #1F7F00;
413
+
414
+ background: transparent;
415
+ }
416
+
417
+ .active-scaffold .active-scaffold .active-scaffold-header {
418
+ margin-right: 15px;
419
+ }
420
+
421
+ .active-scaffold .active-scaffold .active-scaffold-header h2 {
422
+ font-size: 12px;
423
+ font-weight: bold;
424
+ }
425
+
426
+ .blue-theme .active-scaffold .active-scaffold-header h2,
427
+ .active-scaffold .active-scaffold .active-scaffold-footer {
428
+ color: #444;
429
+ }
430
+
431
+ .active-scaffold .active-scaffold .active-scaffold-header div.actions {
432
+ top: 0px;
433
+ right: 0px;
434
+ }
435
+
436
+ .active-scaffold .active-scaffold .active-scaffold-header div.actions a,
437
+ .active-scaffold .active-scaffold .active-scaffold-header div.actions div {
438
+ font: bold 11px verdana, sans-serif;
439
+ padding: 0 2px 1px 17px;
440
+ }
441
+
442
+ .blue-theme .active-scaffold .active-scaffold-header div.actions a,
443
+ .blue-theme .active-scaffold .active-scaffold-header div.actions a:visited {
444
+ color: #06c;
445
+ }
446
+
447
+ .blue-theme .active-scaffold .active-scaffold-header div.actions a:hover {
448
+ background-color: #ff8;
449
+ }
450
+
451
+ .active-scaffold .active-scaffold .view {
452
+ background-color: transparent;
453
+ padding: 0px;
454
+ border: none;
455
+ }
456
+
457
+ .active-scaffold .active-scaffold td {
458
+ background-color: #ECFFE7;
459
+ border-bottom: solid 1px #CDF7C5;
460
+ border-left: solid 1px #CDF7C5;
461
+ }
462
+
463
+ .active-scaffold .active-scaffold td.inline-adapter-cell {
464
+ background-color: #FFFFBB;
465
+ padding: 4px;
466
+ border: solid 1px #DDDF37;
467
+ border-top: none;
468
+ }
469
+
470
+ .active-scaffold .active-scaffold .active-scaffold td.inline-adapter-cell {
471
+ background-color: #DAFFCD;
472
+ padding: 4px;
473
+ border: solid 1px #7FcF00;
474
+ border-top: none;
475
+ }
476
+
477
+ .active-scaffold .active-scaffold .active-scaffold-footer {
478
+ font-size: 11px;
479
+ }
480
+
481
+ /* Footer
482
+ ========================== */
483
+
484
+ .active-scaffold-calculations td {
485
+ background-color: #eee;
486
+ border-top: 2px solid #005CB8;
487
+ font: bold 12px arial, sans-serif;
488
+ }
489
+
490
+ .active-scaffold .active-scaffold-footer {
491
+ padding: 3px 0px 2px 0px;
492
+ border-bottom: none;
493
+ font: bold 12px arial, sans-serif;
494
+ }
495
+
496
+ .blue-theme .active-scaffold-footer {
497
+ background-color: #005CB8;
498
+ color: #ccc;
499
+ }
500
+
501
+ .active-scaffold-footer .active-scaffold-pagination {
502
+ float: right;
503
+ white-space: nowrap;
504
+ margin-right: 5px;
505
+ }
506
+
507
+ .blue-theme .active-scaffold-footer .active-scaffold-records {
508
+ margin-left: 5px;
509
+ }
510
+
511
+ .active-scaffold-footer a {
512
+ text-decoration: none;
513
+ letter-spacing: 0;
514
+ padding: 0 2px;
515
+ margin: 0 -2px;
516
+ font: bold 12px arial, sans-serif;
517
+ }
518
+
519
+ .blue-theme .active-scaffold-footer a,
520
+ .blue-theme .active-scaffold-footer a:visited {
521
+ color: #fff;
522
+ }
523
+
524
+ .blue-theme .active-scaffold-footer a:hover {
525
+ background-color: #378CDF;
526
+ }
527
+
528
+ .active-scaffold-footer .next {
529
+ margin-left: 0;
530
+ padding-left: 5px;
531
+ border-left: solid 1px #ccc;
532
+ }
533
+
534
+ .active-scaffold-footer .previous {
535
+ margin-right: 0;
536
+ padding-right: 5px;
537
+ border-right: solid 1px #ccc;
538
+ }
539
+
540
+ /* Messages
541
+ ========================= */
542
+
543
+ .active-scaffold .messages-container,
544
+ .active-scaffold .active-scaffold .messages-container{
545
+ padding: 0;
546
+ margin: 0 7px;
547
+ border: none;
548
+ }
549
+
550
+ .active-scaffold .empty-message, .active-scaffold .filtered-message {
551
+ background-color: #e8e8e8;
552
+ padding: 4px;
553
+ text-align: center;
554
+ color: #666;
555
+ }
556
+
557
+ .active-scaffold .message {
558
+ font-size: 11px;
559
+ font-weight: bold;
560
+ padding: 5px 20px 5px 5px;
561
+ color: #333;
562
+ position: relative;
563
+ margin: 2px 7px;
564
+ line-height: 12px;
565
+ }
566
+
567
+ .active-scaffold .message a {
568
+ position: absolute;
569
+ right: 10px;
570
+ top: 4px;
571
+ padding: 0;
572
+ font: bold 11px verdana, sans-serif;
573
+ letter-spacing: -1px;
574
+ }
575
+
576
+ .active-scaffold .messages-container .message {
577
+ margin: 0;
578
+ }
579
+
580
+ .active-scaffold .error-message {
581
+ border-left: solid 5px #f66;
582
+ background-color: #fbb;
583
+ }
584
+
585
+ .active-scaffold .warning-message {
586
+ border-left: solid 5px #ff6;
587
+ background-color: #ffb;
588
+ }
589
+
590
+ .active-scaffold .info-message {
591
+ border-left: solid 5px #66f;
592
+ background-color: #bbf;
593
+ }
594
+
595
+ /* Error Styling
596
+ ========================== */
597
+
598
+ .active-scaffold .errorExplanation {
599
+ background-color: #fcc;
600
+ margin: 2px 0;
601
+ border: solid 1px #f66;
602
+ }
603
+
604
+ .active-scaffold fieldset {
605
+ clear: both;
606
+ }
607
+
608
+ .active-scaffold .errorExplanation h2 {
609
+ padding: 2px 5px;
610
+ color: #333;
611
+ font-size: 11px;
612
+ margin: 0;
613
+ letter-spacing: 0;
614
+ font-family: Verdana;
615
+ background-color: #f66;
616
+ }
617
+
618
+ .active-scaffold .errorExplanation ul {
619
+ margin: 0;
620
+ padding: 0 2px 4px 25px;
621
+ list-style: disc;
622
+ }
623
+
624
+ .active-scaffold .errorExplanation p {
625
+ font-size: 11px;
626
+ padding: 2px 5px;
627
+ font-family: Verdana;
628
+ margin: 0;
629
+ }
630
+
631
+ .active-scaffold .errorExplanation ul li {
632
+ font: bold 11px verdana;
633
+ letter-spacing: -1px;
634
+ margin: 0;
635
+ padding: 0;
636
+ background-color: transparent;
637
+ }
638
+
639
+ /* Loading Indicators
640
+ ============================== */
641
+
642
+ .active-scaffold .loading-indicator {
643
+ vertical-align: text-bottom;
644
+ width: 16px;
645
+ margin: 0;
646
+ }
647
+
648
+ .active-scaffold .active-scaffold-header .loading-indicator {
649
+ margin-bottom: 3px;
650
+ }
651
+
652
+ /* Show
653
+ ============================= */
654
+
655
+ .active-scaffold .show-view dl {
656
+ margin-left: 5px;
657
+ }
658
+
659
+ .active-scaffold .show-view dt {
660
+ width: 12em;
661
+ float: left;
662
+ clear: left;
663
+ font: normal 11px verdana, sans-serif;
664
+ color: #555;
665
+ line-height: 16px;
666
+ }
667
+
668
+ .active-scaffold .show-view dd {
669
+ float: left;
670
+ font: bold 14px arial;
671
+ padding-left: 5px;
672
+ margin-bottom: 5px;
673
+ }
674
+
675
+ /* Form
676
+ ============================== */
677
+
678
+ .active-scaffold .submit {
679
+ font-weight: bold;
680
+ font-size: 14px;
681
+ font-family: Arial, sans-serif;
682
+ letter-spacing: 0;
683
+ margin: 0;
684
+ margin-top: 5px;
685
+ }
686
+
687
+ .active-scaffold form p {
688
+ clear: both;
689
+ }
690
+
691
+ .active-scaffold fieldset {
692
+ border: none;
693
+ }
694
+
695
+ .active-scaffold h4,
696
+ .active-scaffold h5 {
697
+ padding: 2px;
698
+ margin: 0;
699
+ text-transform: none;
700
+ color: #1F7F00;
701
+ letter-spacing: -1px;
702
+ font: bold 16px arial;
703
+ }
704
+
705
+ .active-scaffold h5 {
706
+ padding: 0;
707
+ margin: 5px 0 2px 0;
708
+ font-size: 14px;
709
+ letter-spacing: 0;
710
+ }
711
+
712
+ .active-scaffold ol {
713
+ clear: both;
714
+ float: none;
715
+ padding: 2px;
716
+ margin-left: 5px;
717
+ list-style: none;
718
+ }
719
+
720
+ .active-scaffold p.form-footer {
721
+ clear: both;
722
+ }
723
+
724
+ .active-scaffold a.as_cancel,
725
+ .active-scaffold p.form-footer a {
726
+ font: bold 14px arial, sans-serif;
727
+ letter-spacing: 0;
728
+ }
729
+
730
+ /* Form :: Fields
731
+ ============================== */
732
+
733
+ .active-scaffold li.form-element {
734
+ clear: both;
735
+ }
736
+
737
+ .active-scaffold label {
738
+ font: normal 11px verdana, sans-serif;
739
+ color: #555;
740
+ }
741
+
742
+ .active-scaffold li.form-element dt {
743
+ float: left;
744
+ width: 12em;
745
+ padding: 6px 0;
746
+ }
747
+
748
+ .active-scaffold li.form-element dd {
749
+ float: left;
750
+ }
751
+
752
+ .active-scaffold li.form-element dd input[type="checkbox"] {
753
+ margin-top: 6px;
754
+ }
755
+
756
+ .active-scaffold .form dd {
757
+ margin: 0;
758
+ }
759
+
760
+
761
+ .active-scaffold .description {
762
+ display: inline-block;
763
+ color: #999;
764
+ font-size: 10px;
765
+ margin-left: 5px;
766
+ }
767
+
768
+ .active-scaffold .required label {
769
+ font-weight: bold;
770
+ }
771
+
772
+ .active-scaffold label.example {
773
+ font-size: 11px;
774
+ font-family: arial;
775
+ color: #888;
776
+ }
777
+
778
+ .active-scaffold input.text-input,
779
+ .active-scaffold select {
780
+ font: bold 16px arial;
781
+ letter-spacing: -1px;
782
+ border: solid 1px #1F7F00;
783
+ }
784
+
785
+ .active-scaffold input.text-input {
786
+ padding: 2px;
787
+ }
788
+
789
+ .active-scaffold .fieldWithErrors input,
790
+ .active-scaffold .fieldWithErrors textarea,
791
+ .active-scaffold .fieldWithErrors select {
792
+ border: solid 1px #f00;
793
+ }
794
+
795
+ .active-scaffold select {
796
+ padding: 1px;
797
+ }
798
+
799
+ .active-scaffold input.example {
800
+ color: #aaa;
801
+ }
802
+
803
+ .active-scaffold select:focus,
804
+ .active-scaffold input.text-input:focus {
805
+ background-color: #ffc;
806
+ }
807
+
808
+ .active-scaffold textarea {
809
+ font-family: Arial, sans-serif;
810
+ font-size: 12px;
811
+ padding: 1px;
812
+ border: solid 1px #1F7F00;
813
+ }
814
+
815
+ .active-scaffold .checkbox-list {
816
+ padding-left: 0px;
817
+ }
818
+
819
+ .active-scaffold .checkbox-list li {
820
+ padding-right: 5px;
821
+ display: inline;
822
+ }
823
+
824
+ .active-scaffold .checkbox-list li label {
825
+ padding: 0 0 0 2px;
826
+ }
827
+
828
+ .active-scaffold .draggable-list {
829
+ float: left;
830
+ width: 300px;
831
+ margin-right: 15px;
832
+ min-height: 30px;
833
+ max-height: 100px;
834
+ overflow: auto;
835
+ background-color: #FFFF88;
836
+ }
837
+
838
+ .active-scaffold .draggable-list.hover {
839
+ opacity: 0.5;
840
+ }
841
+
842
+ .active-scaffold .draggable-list.selected {
843
+ background-color: #7FCF00;
844
+ }
845
+
846
+ .active-scaffold .draggable-list li {
847
+ display: block;
848
+ }
849
+
850
+ .active-scaffold .draggable-list input {
851
+ display: none;
852
+ }
853
+
854
+ /* Form :: Sub-Sections
855
+ ============================== */
856
+
857
+ .active-scaffold li.sub-section {
858
+ clear: left;
859
+ padding: 5px 0;
860
+ }
861
+
862
+ /* Form :: Association Sub-Forms
863
+ ============================== */
864
+
865
+ .active-scaffold .sub-form {
866
+ float: left;
867
+ clear: left;
868
+ padding: 5px 0;
869
+ padding-left: 5px;
870
+ }
871
+
872
+ .active-scaffold .sub-form h5 {
873
+ margin-left: -5px;
874
+ }
875
+
876
+ .active-scaffold .sub-form table,
877
+ .active-scaffold .sub-form table td {
878
+ width: auto;
879
+ background: none;
880
+ }
881
+
882
+ .active-scaffold .sub-form table th {
883
+ font: normal 10px verdana, sans-serif;
884
+ color: #555;
885
+ padding: 0 5px 0 1px;
886
+ background: none;
887
+ }
888
+
889
+ .active-scaffold .horizontal-sub-form td dt label {
890
+ display: none;
891
+ }
892
+
893
+ .active-scaffold .sub-form .checkbox-list {
894
+ padding: 0 2px 2px 2px;
895
+ background-color: #fff;
896
+ border: solid 1px #1F7F00;
897
+ }
898
+
899
+ .active-scaffold .sub-form .checkbox-list label {
900
+ display: block;
901
+ }
902
+
903
+ .active-scaffold .sub-form table td {
904
+ border: none;
905
+ background-color: transparent;
906
+ padding: 1px;
907
+ vertical-align: top;
908
+ color: #999;
909
+ }
910
+
911
+ .active-scaffold .sub-form .actions {
912
+ vertical-align: middle;
913
+ background-color: transparent;
914
+ clear: left;
915
+ }
916
+
917
+ .active-scaffold .sub-form .association-record a.destroy {
918
+ font-weight: bold;
919
+ display: block;
920
+ height: 16px;
921
+ padding: 0;
922
+ width: 16px;
923
+ text-indent: -4000px;
924
+ background: url(../../../images/active_scaffold/default/cross.png) 0 0 no-repeat;
925
+ }
926
+
927
+ .active-scaffold .sub-form .locked a.destroy {
928
+ display: none;
929
+ }
930
+
931
+ .active-scaffold .sub-form .association-record a {
932
+ font: bold 12px arial;
933
+ }
934
+
935
+ .active-scaffold .sub-form input.text-input,
936
+ .active-scaffold .sub-form select {
937
+ letter-spacing: 0;
938
+ font: bold 12px arial;
939
+ }
940
+
941
+ .active-scaffold .sub-form .footer-wrapper {
942
+ margin-top: 3px;
943
+ margin-right: 10px;
944
+ }
945
+
946
+ .active-scaffold .sub-form .footer {
947
+ color: #999;
948
+ padding: 3px 5px;
949
+ }
950
+
951
+ .active-scaffold .sub-form .footer select,
952
+ .active-scaffold .sub-form .footer input {
953
+ font-weight: bold;
954
+ font-size: 12px;
955
+ padding: 0;
956
+ }
957
+
958
+ .active-scaffold a.visibility-toggle {
959
+ font-size: 100%;
960
+ }
961
+
962
+ .active-scaffold-found {
963
+ float:left;
964
+ }