active_scaffold_san 3.0.18

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