active_scaffold 3.0.0

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