active_scaffold 3.1.20 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. data/app/assets/javascripts/jquery/active_scaffold.js +4 -1
  2. data/app/assets/javascripts/prototype/active_scaffold.js +4 -1
  3. data/app/assets/stylesheets/{active_scaffold.scss~ → active_scaffold.css.scss} +5 -2
  4. data/app/assets/stylesheets/{active_scaffold_colors.scss → active_scaffold_colors.css.scss} +4 -0
  5. data/app/assets/stylesheets/active_scaffold_extensions.css.erb +2 -0
  6. data/app/assets/stylesheets/active_scaffold_images.css.scss +43 -0
  7. data/lib/active_scaffold/actions/core.rb +1 -0
  8. data/lib/active_scaffold/actions/nested.rb +0 -1
  9. data/lib/active_scaffold/extensions/action_view_rendering.rb +1 -1
  10. data/lib/active_scaffold/helpers/form_column_helpers.rb +1 -0
  11. data/lib/active_scaffold/version.rb +2 -2
  12. data/test/mock_app/.gitignore +2 -0
  13. metadata +86 -164
  14. data/app/assets/javascripts/active_scaffold.js.erb~ +0 -16
  15. data/app/assets/javascripts/jquery/active_scaffold.js~ +0 -1053
  16. data/app/assets/javascripts/jquery/draggable_lists.js~ +0 -27
  17. data/app/assets/javascripts/prototype/active_scaffold.js~ +0 -1037
  18. data/app/assets/stylesheets/active_scaffold.css.erb +0 -11
  19. data/app/assets/stylesheets/active_scaffold.css.erb~ +0 -11
  20. data/app/assets/stylesheets/active_scaffold.css.scss.erb~ +0 -1120
  21. data/app/assets/stylesheets/active_scaffold.css.scss~ +0 -11
  22. data/app/assets/stylesheets/active_scaffold.css~ +0 -11
  23. data/app/assets/stylesheets/active_scaffold_colors.css +0 -244
  24. data/app/assets/stylesheets/active_scaffold_colors.css.scss~ +0 -481
  25. data/app/assets/stylesheets/active_scaffold_default.css.erb +0 -47
  26. data/app/assets/stylesheets/active_scaffold_default.css.erb~ +0 -57
  27. data/app/assets/stylesheets/active_scaffold_default.css.scss~ +0 -1092
  28. data/app/assets/stylesheets/active_scaffold_default.css~ +0 -923
  29. data/app/assets/stylesheets/active_scaffold_layout.css~ +0 -922
  30. data/app/assets/stylesheets/blue-theme.css~ +0 -1150
  31. data/config/locales/es.yml~ +0 -120
  32. data/frontends/default/views/_action_group.html.erb~ +0 -24
  33. data/frontends/default/views/_base_form.html.erb~ +0 -42
  34. data/frontends/default/views/_form.html.erb~ +0 -26
  35. data/frontends/default/views/_form_association.html.erb~ +0 -19
  36. data/frontends/default/views/_form_association_footer.html.erb~ +0 -48
  37. data/frontends/default/views/_horizontal_subform.html.erb~ +0 -32
  38. data/frontends/default/views/_horizontal_subform_header.html.erb~ +0 -11
  39. data/frontends/default/views/_horizontal_subform_record.html.erb~ +0 -38
  40. data/frontends/default/views/_list_actions.html.erb~ +0 -15
  41. data/frontends/default/views/_list_inline_adapter.html.erb~ +0 -10
  42. data/frontends/default/views/_list_messages.html.erb~ +0 -30
  43. data/frontends/default/views/_list_pagination.html.erb~ +0 -11
  44. data/frontends/default/views/_list_pagination_links.html.erb~ +0 -0
  45. data/frontends/default/views/_list_with_header.html.erb~ +0 -36
  46. data/frontends/default/views/_render_field.js.erb~ +0 -23
  47. data/frontends/default/views/_row.html.erb~ +0 -6
  48. data/frontends/default/views/_show.html.erb~ +0 -8
  49. data/frontends/default/views/_update_form.html.erb~ +0 -6
  50. data/frontends/default/views/_vertical_subform.html.erb~ +0 -12
  51. data/frontends/default/views/add_existing.js.erb~ +0 -18
  52. data/frontends/default/views/add_existing_form.html.erb~ +0 -5
  53. data/frontends/default/views/create.html.erb~ +0 -5
  54. data/frontends/default/views/edit_associated.js.erb~ +0 -13
  55. data/frontends/default/views/on_create.js.erb~ +0 -45
  56. data/frontends/default/views/on_update.js.erb~ +0 -31
  57. data/frontends/default/views/render_field.js.erb~ +0 -1
  58. data/frontends/default/views/search.html.erb~ +0 -5
  59. data/frontends/default/views/show.html.erb~ +0 -5
  60. data/frontends/default/views/update.html.erb~ +0 -8
  61. data/frontends/default/views/update_column.js.erb~ +0 -16
  62. data/lib/active_scaffold.rb~ +0 -373
  63. data/lib/active_scaffold/actions/core.rb~ +0 -203
  64. data/lib/active_scaffold/actions/create.rb~ +0 -148
  65. data/lib/active_scaffold/actions/list.rb~ +0 -196
  66. data/lib/active_scaffold/actions/nested.rb~ +0 -247
  67. data/lib/active_scaffold/actions/search.rb~ +0 -49
  68. data/lib/active_scaffold/actions/subform.rb~ +0 -27
  69. data/lib/active_scaffold/actions/update.rb~ +0 -150
  70. data/lib/active_scaffold/attribute_params.rb~ +0 -203
  71. data/lib/active_scaffold/bridges/date_picker/helper.rb~ +0 -180
  72. data/lib/active_scaffold/bridges/record_select/helpers.rb~ +0 -86
  73. data/lib/active_scaffold/bridges/shared/date_bridge.rb~ +0 -209
  74. data/lib/active_scaffold/config/base.rb~ +0 -72
  75. data/lib/active_scaffold/config/list.rb~ +0 -195
  76. data/lib/active_scaffold/config/nested.rb~ +0 -41
  77. data/lib/active_scaffold/config/search.rb~ +0 -74
  78. data/lib/active_scaffold/constraints.rb~ +0 -186
  79. data/lib/active_scaffold/data_structures/action_columns.rb~ +0 -140
  80. data/lib/active_scaffold/data_structures/action_link.rb~ +0 -179
  81. data/lib/active_scaffold/data_structures/nested_info.rb~ +0 -147
  82. data/lib/active_scaffold/extensions/action_controller_rendering.rb~ +0 -22
  83. data/lib/active_scaffold/extensions/action_view_rendering.rb~ +0 -120
  84. data/lib/active_scaffold/extensions/active_association_reflection.rb~ +0 -22
  85. data/lib/active_scaffold/extensions/cache_association.rb~ +0 -12
  86. data/lib/active_scaffold/extensions/reverse_associations.rb~ +0 -64
  87. data/lib/active_scaffold/extensions/routing_mapper.rb~ +0 -48
  88. data/lib/active_scaffold/extensions/unsaved_associated.rb~ +0 -62
  89. data/lib/active_scaffold/finder.rb~ +0 -370
  90. data/lib/active_scaffold/helpers/controller_helpers.rb~ +0 -92
  91. data/lib/active_scaffold/helpers/form_column_helpers.rb~ +0 -320
  92. data/lib/active_scaffold/helpers/id_helpers.rb~ +0 -123
  93. data/lib/active_scaffold/helpers/list_column_helpers.rb~ +0 -370
  94. data/lib/active_scaffold/helpers/search_column_helpers.rb~ +0 -263
  95. data/lib/active_scaffold/helpers/view_helpers.rb~ +0 -350
@@ -1,11 +0,0 @@
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
- *= require active_scaffold_layout
9
- *= require active_scaffold_default
10
- */
11
- @import 'active_scaffold_colors<%= '.css' unless defined? Sass %>';
@@ -1,11 +0,0 @@
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
- *= require active_scaffold_layout
9
- *= require active_scaffold_default
10
- */
11
- @import 'active_scaffold_colors<%= '.css' unless defined? SASS %>';
@@ -1,1120 +0,0 @@
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
-
11
- $disabled_color: #999 !default;
12
- $actions_disabled_color: #666 !default;
13
- $link_color: #06c !default;
14
- $hover_bg: #ff8 !default;
15
- $header_color: #555 !default;
16
-
17
- $column_header_bg: $header_color !default;
18
- $column_header_link_color: #fff !default;
19
- $column_header_link_hover_bg: #000 !default;
20
- $column_header_link_hover_color: #ff8 !default;
21
- $column_header_color: #eee !default;
22
- $column_header_sorted_bg: #333 !default;
23
-
24
- $column_bg: #E6F2FF !default;
25
- $column_even_bg: #fff !default;
26
- $column_color: #333 !default;
27
- $column_empty_color: #999 !default;
28
- $column_border_color: #C5DBF7 !default;
29
- $column_even_border_color: #ddd !default;
30
- $column_actions_border_color: #ccc !default;
31
-
32
- $column_sorted_bg: #B9DCFF !default;
33
- $column_sorted_border_color: #AFD0F5 !default;
34
- $column_even_sorted_bg: #E6F2FF !default;
35
- $column_even_sorted_border_color: #AFD0F5 !default;
36
-
37
- $calculations_bg: #eee !default;
38
- $calculations_border_color: #005CB8 !default;
39
-
40
- $action_group_color: #0066CC !default;
41
- $action_group_hover_bg: #ff8 !default;
42
- $action_group_border_color: #005CB8 !default;
43
- $action_group_items_bg: #EEE !default;
44
- $action_group_items_border_color: #222 !default;
45
- $action_group_link_color: $column_color !default;
46
-
47
- $nested_bg: #DAFFCD !default;
48
- $nested_border_color: #7FCF00 !default;
49
- $nested_footer_color: #444 !default;
50
- $nested_column_bg: #ECFFE7 !default;
51
- $nested_column_border_color: $column_border_color !default;
52
-
53
- $second_nested_bg: #FFFFBB !default;
54
- $second_nested_border_color: #DDDF37 !default;
55
-
56
- $third_nested_bg: $nested_bg !default;
57
- $third_nested_border_color: $nested_border_color !default;
58
-
59
- $pagination_border_color: #ccc !default;
60
- $msg_color: #333 !default;
61
- $msg_error_bg: #fbb !default;
62
- $msg_error_border_color: #f66 !default;
63
- $msg_warning_bg: #ffb !default;
64
- $msg_warning_border_color: #ff6 !default;
65
- $msg_info_bg: #bbf !default;
66
- $msg_info_border_color: #66f !default;
67
- $msg_filtered_bg: #e8e8e8 !default;
68
- $msg_filtered_color: #666 !default;
69
-
70
- $form_title_color: #1F7F00 !default;
71
- $label_color: $header_color !default;
72
- $description_color: #999 !default;
73
- $placeholder_color: #aaa !default;
74
- $input_border_color: $form_title_color !default;
75
- $input_error_border_color: #f00 !default;
76
- $input_focus_bg: #ffc !default;
77
-
78
- $draggable_list_bg: #FFFF88 !default;
79
- $draggable_list_selected_bg: #7FCF00 !default;
80
- $checkbox_list_bg: #fff !default;
81
-
82
- $subform_color: #999 !default;
83
- $subform_header_color: $header_color !default;
84
- $subform_footer_color: $subform_color !default;
85
-
86
- .active-scaffold form,
87
- .active-scaffold table,
88
- .active-scaffold p,
89
- .active-scaffold div,
90
- .active-scaffold fieldset {
91
- margin: 0;
92
- padding: 0;
93
- }
94
-
95
- .active-scaffold {
96
- margin: 5px 0;
97
- }
98
-
99
- .active-scaffold table {
100
- width: 100%;
101
- border-collapse: separate;
102
- }
103
-
104
- .active-scaffold a,
105
- .active-scaffold a:visited {
106
- color: <%= @link_color %>;
107
- text-decoration: none;
108
- }
109
-
110
- .active-scaffold a.disabled {
111
- color: <%= @disabled_color %>;
112
- }
113
-
114
- .active-scaffold a:hover, .active-scaffold div.hover, .active-scaffold td span.hover {
115
- background-color: <%= @hover_bg %>;
116
- }
117
-
118
- .active-scaffold div.actions a img,
119
- .active-scaffold td.actions a img {
120
- border: none;
121
- vertical-align: middle;
122
- }
123
-
124
- .active-scaffold div.actions a.disabled img,
125
- .active-scaffold td.actions a.disabled img {
126
- opacity: 0.5;
127
- }
128
-
129
- .active-scaffold .clear-fix {
130
- clear: both;
131
- }
132
-
133
- noscript.active-scaffold {
134
- border-left: solid 5px <%= @msg_error_border_color %>;
135
- background-color: <%= @msg_error_bg %>;
136
- font-size: 11px;
137
- font-weight: bold;
138
- padding: 5px 20px 5px 5px;
139
- color: <%= @column_color %>;
140
- }
141
-
142
- .active-scaffold .mark_record_column {
143
- width: 1px;
144
- }
145
-
146
- /* Header
147
- ======================== */
148
-
149
- .active-scaffold-header {
150
- position: relative;
151
- }
152
-
153
- .active-scaffold-header h2 {
154
- padding: 2px 0px;
155
- margin: 0;
156
- color: <%= @header_color %>;
157
- font: bold 160% arial, sans-serif;
158
- }
159
-
160
- .active-scaffold-header div.actions a,
161
- .active-scaffold-header div.actions {
162
- float: right;
163
- font: bold 14px arial;
164
- letter-spacing: -1px;
165
- text-decoration: none;
166
- padding: 1px 2px;
167
- white-space: nowrap;
168
- margin-left: 5px;
169
- background-position: 1px 50%;
170
- background-repeat: no-repeat;
171
- }
172
-
173
- .active-scaffold-header div.actions a {
174
- padding: 5px 5px;
175
- margin-left: 0px;
176
- }
177
-
178
- .active-scaffold .active-scaffold .active-scaffold-header div.actions > a {
179
- padding: 1px 5px;
180
- }
181
-
182
- .active-scaffold-header div.actions div.action_group {
183
- display: inline;
184
- float: right;
185
- }
186
-
187
- .active-scaffold-header div.actions div.action_group li a,
188
- .active-scaffold-header div.actions div.action_group li div {
189
- float: none;
190
- margin: 0;
191
- }
192
-
193
- .active-scaffold-header div.actions .action_group ul {
194
- line-height: 130%;
195
- top: 19px;
196
- }
197
-
198
- .active-scaffold .active-scaffold .active-scaffold-header div.actions .action_group ul {
199
- top: 14px;
200
- }
201
-
202
- .view .active-scaffold-header div.actions a,
203
- .view .active-scaffold-header div.actions div,
204
- .view .active-scaffold-header div.actions div.action_group {
205
- float: left;
206
- }
207
-
208
- .active-scaffold-header div.actions a.disabled {
209
- color: <%= @actions_disabled_color %>;
210
- opacity: 0.5;
211
- }
212
-
213
- .active-scaffold-header div.actions a.new,
214
- .active-scaffold-header div.actions a.new_existing,
215
- .active-scaffold-header div.actions a.show_search,
216
- .active-scaffold-header div.actions a.show_config_list,
217
- .active-scaffold-header div.actions div.action_group div {
218
- margin:0;
219
- padding: 5px 5px 5px 25px;
220
- background-position: 5px 50%;
221
- background-repeat: no-repeat;
222
- }
223
-
224
- .active-scaffold .active-scaffold .active-scaffold-header div.actions > a.new,
225
- .active-scaffold .active-scaffold .active-scaffold-header div.actions > a.new_existing,
226
- .active-scaffold .active-scaffold .active-scaffold-header div.actions > a.show_search,
227
- .active-scaffold .active-scaffold .active-scaffold-header div.actions > a.show_config_list,
228
- .active-scaffold .active-scaffold .active-scaffold-header div.actions div.action_group > div {
229
- margin:0;
230
- padding: 1px 5px 1px 20px;
231
- background-position: 1px 50%;
232
- background-repeat: no-repeat;
233
- }
234
-
235
- .active-scaffold-header div.actions div.action_group div {
236
- background-image: url(<%= asset_path 'active_scaffold/gears.png' %>); /* default icon for actions or override with css */
237
- }
238
-
239
- .active-scaffold-header div.actions a.show_config_list {
240
- background-image: url(<%= asset_path 'active_scaffold/config.png' %>);
241
- }
242
-
243
- .active-scaffold-header div.actions a.new,
244
- .active-scaffold-header div.actions a.new_existing {
245
- background-image: url(<%= asset_path 'active_scaffold/add.gif' %>);
246
- }
247
-
248
- .active-scaffold-header div.actions a.show_search {
249
-
250
- background-image: url(<%= asset_path 'active_scaffold/magnifier.png' %>);
251
- }
252
-
253
- .active-scaffold-header div.actions a.disabled:hover {
254
- background-color: transparent;
255
- cursor: default;
256
- }
257
-
258
- .active-scaffold-header div.actions {
259
- position: absolute;
260
- right: 5px;
261
- top: 5px;
262
- text-align: right;
263
- }
264
-
265
- /* Table :: Column Headers
266
- ============================= */
267
-
268
- .active-scaffold th {
269
- background-color: <%= @column_header_bg %>;
270
- text-align: left;
271
- }
272
-
273
- .active-scaffold th a,
274
- .active-scaffold th p {
275
- font: bold 11px arial, sans-serif;
276
- display: block;
277
- background-color: <%= @column_header_bg %>;
278
- }
279
-
280
- .active-scaffold th a, .active-scaffold th a:visited {
281
- color: <%= @column_header_link_color %>;
282
- padding: 2px 2px 2px 5px;
283
- }
284
-
285
- .active-scaffold th p {
286
- color: <%= @column_header_color %>;
287
- padding: 2px 5px;
288
- }
289
-
290
- .active-scaffold th a:hover {
291
- background-color: <%= @column_header_link_hover_bg %>;
292
- color: <%= @column_header_link_hover_color %>;
293
- }
294
-
295
- .active-scaffold th.sorted {
296
- background-color: <%= @column_header_sorted_bg %>;
297
- }
298
-
299
- .active-scaffold th.sorted a {
300
- padding-right: 18px;
301
- }
302
-
303
- .active-scaffold th.asc a,
304
- .active-scaffold th.asc a:hover {
305
- background: <%= @column_header_sorted_bg %> url(<%= asset_path 'active_scaffold/arrow_up.gif' %>) right 50% no-repeat;
306
- }
307
-
308
- .active-scaffold th.desc a,
309
- .active-scaffold th.desc a:hover {
310
- background: <%= @column_header_sorted_bg %> url(<%= asset_path 'active_scaffold/arrow_down.gif' %>) right 50% no-repeat;
311
- }
312
-
313
- .active-scaffold th.loading a,
314
- .active-scaffold th.loading a:hover {
315
- background: <%= @column_header_sorted_bg %> url(<%= asset_path 'active_scaffold/indicator-small.gif' %>) right 50% no-repeat;
316
- }
317
-
318
- .active-scaffold th .mark_heading {
319
- margin-left: 5px;
320
- }
321
-
322
- .active-scaffold th.hidden, .active-scaffold td.hidden {
323
- display: none;
324
- }
325
-
326
- /* Table :: Record Rows
327
- ============================= */
328
-
329
- .active-scaffold tr.record {
330
- background-color: <%= @column_bg %>;
331
- }
332
- .active-scaffold tr.record td {
333
- padding: 5px 4px;
334
- color: <%= @column_color %>;
335
- font-family: Verdana, sans-serif;
336
- font-size: 11px;
337
- border: solid 1px <%= @column_border_color %>;
338
- border-width: 0 0 1px 1px;
339
- }
340
-
341
- .active-scaffold tr.record td.messages-container {
342
- padding: 0px;
343
- }
344
-
345
- .active-scaffold tr.even-record {
346
- background-color: <%= @column_even_bg %>;
347
- }
348
- .active-scaffold tr.even-record td {
349
- border-left-color: <%= @column_even_border_color %>;
350
- }
351
-
352
- .active-scaffold tr.record td.sorted {
353
- background-color: <%= @column_sorted_bg %>;
354
- border-bottom-color: <%= @column_sorted_border_color %>;
355
- }
356
-
357
- .active-scaffold tr.even-record td.sorted {
358
- background-color: <%= @column_even_sorted_bg %>;
359
- border-bottom-color: <%= @column_even_sorted_border_color %>;
360
- }
361
-
362
- .active-scaffold tbody.records td.empty {
363
- color: <%= @column_empty_color %>;
364
- text-align: center;
365
- }
366
-
367
- .active-scaffold td.numeric,
368
- .active-scaffold-calculations td {
369
- text-align: right;
370
- }
371
-
372
- /* Table :: Actions (Edit, Delete)
373
- ============================= */
374
- .active-scaffold tr.record td.actions {
375
- border-right: solid 1px <%= @column_actions_border_color %>;
376
- padding: 0;
377
- min-width: 1%;
378
- }
379
-
380
- .active-scaffold tr.record td.actions table {
381
- float: right;
382
- width: auto;
383
- margin-right: 5px;
384
- }
385
-
386
- .active-scaffold tr.record td.actions table td {
387
- border: none;
388
- text-align: right;
389
- padding: 0 2px;
390
- }
391
-
392
- .active-scaffold tr.record td.actions a,
393
- .active-scaffold tr.record td.actions div {
394
- font: bold 11px verdana, sans-serif;
395
- letter-spacing: -1px;
396
- padding: 2px;
397
- margin: 0 2px;
398
- line-height: 16px;
399
- white-space: nowrap;
400
- }
401
-
402
- .active-scaffold tr.record td.actions a.disabled {
403
- color: <%= @actions_disabled_color %>;
404
- opacity: 0.5;
405
- }
406
-
407
- .active-scaffold .actions .action_group div:hover {
408
- background-color: <%= @action_group_hover_bg %>;
409
- }
410
-
411
- .active-scaffold .actions .action_group {
412
- position: relative;
413
- text-align: left;
414
- color: <%= @action_group_color %>;
415
- }
416
-
417
- .active-scaffold .actions .action_group ul {
418
- border: 2px solid <%= @action_group_border_color %>;
419
- list-style-type: none;
420
- margin: 0;
421
- padding: 0;
422
- position: absolute;
423
- line-height: 200%;
424
- display: none;
425
- width: 150px;
426
- right: 0px;
427
- }
428
-
429
- .active-scaffold .actions .action_group ul ul {
430
- display: none;
431
- position: absolute;
432
- top: 0;
433
- right: 150px;
434
- }
435
-
436
- .active-scaffold .actions .action_group ul li {
437
- background: none repeat scroll 0 0 <%= @action_group_items_bg %>;
438
- border-top: 1px dashed <%= @action_group_items_border_color %>;
439
- display: block;
440
- position: relative;
441
- width: auto;
442
- z-index: 2;
443
- }
444
-
445
- .active-scaffold .actions .action_group ul li div {
446
- margin: 0;
447
- padding: 5px 5px 5px 25px;
448
- background-position: 5px 50%;
449
- background-repeat: no-repeat;
450
- }
451
-
452
- .active-scaffold .actions .action_group ul li a {
453
- display: block;
454
- color: <%= @action_group_link_color %>;
455
- margin: 0;
456
- padding: 5px 5px 5px 25px;
457
- background-position: 5px 50%;
458
- background-repeat: no-repeat;
459
- }
460
-
461
- .active-scaffold .actions .action_group ul li.top {
462
- border-top-width: 0px;
463
- }
464
-
465
- .active-scaffold .actions .action_group:hover ul ul,
466
- .active-scaffold .actions .action_group:hover ul ul ul {
467
- display: none;
468
- }
469
-
470
- .active-scaffold .actions .action_group:hover ul,
471
- .active-scaffold .actions .action_group ul li:hover > ul,
472
- .active-scaffold .actions .action_group ul ul li:hover ul {
473
- display: block;
474
- }
475
-
476
- /* Table :: Inline Adapter
477
- ============================= */
478
-
479
- .active-scaffold .view {
480
- background-color: <%= @nested_bg %>;
481
- padding: 4px;
482
- border: solid 1px <%= @nested_border_color %>;
483
- }
484
-
485
- .active-scaffold tbody.records td.inline-adapter-cell .view {
486
- border-top: none;
487
- }
488
-
489
- .active-scaffold .before-header td.inline-adapter-cell .view {
490
- border-bottom: none;
491
- }
492
-
493
- .active-scaffold a.inline-adapter-close {
494
- float: right;
495
- text-indent: -4000px;
496
- width: 16px;
497
- height: 17px;
498
- background: url(<%= asset_path 'active_scaffold/close.gif' %>) 0 0 no-repeat;
499
- }
500
-
501
- /* Nested
502
- ======================== */
503
-
504
- .active-scaffold .active-scaffold .active-scaffold-header {
505
- margin-right: 25px;
506
- }
507
-
508
- .active-scaffold .active-scaffold .active-scaffold-header h2 {
509
- font-size: 12px;
510
- font-weight: bold;
511
- }
512
-
513
- .active-scaffold .active-scaffold .active-scaffold-footer {
514
- color: <%= @nested_footer_color %>;
515
- }
516
-
517
- .active-scaffold .active-scaffold .active-scaffold-header div.actions {
518
- top: 0px;
519
- right: 0px;
520
- }
521
-
522
- .active-scaffold .active-scaffold .active-scaffold-header div.actions a,
523
- .active-scaffold .active-scaffold .active-scaffold-header div.actions div {
524
- font: bold 11px verdana, sans-serif;
525
- }
526
-
527
- .active-scaffold .active-scaffold .view {
528
- background-color: transparent;
529
- padding: 0px;
530
- border: none;
531
- }
532
-
533
- .active-scaffold .active-scaffold td {
534
- background-color: <%= @nested_column_bg %>;
535
- border-bottom: solid 1px <%= @nested_column_border_color %>;
536
- border-left: solid 1px <%= @nested_column_border_color %>;
537
- }
538
-
539
- .active-scaffold .active-scaffold td.inline-adapter-cell {
540
- background-color: <%= @second_nested_bg %>;
541
- padding: 4px;
542
- border: solid 1px <%= @second_nested_border_color %>;
543
- border-top: none;
544
- }
545
-
546
- .active-scaffold .active-scaffold .active-scaffold td.inline-adapter-cell {
547
- background-color: <%= @third_nested_bg %>;
548
- padding: 4px;
549
- border: solid 1px <%= @third_nested_border_color %>;
550
- border-top: none;
551
- }
552
-
553
- .active-scaffold .active-scaffold .active-scaffold-footer {
554
- font-size: 11px;
555
- }
556
-
557
- /* Footer
558
- ========================== */
559
-
560
- .active-scaffold-calculations td {
561
- background-color: <%= @calculations_bg %>;
562
- border-top: 2px solid <%= @calculations_border_color %>;
563
- font: bold 12px arial, sans-serif;
564
- }
565
-
566
- .active-scaffold .active-scaffold-footer {
567
- padding: 3px 0px 2px 0px;
568
- border-bottom: none;
569
- font: bold 12px arial, sans-serif;
570
- }
571
-
572
- .active-scaffold-footer .active-scaffold-pagination {
573
- float: right;
574
- white-space: nowrap;
575
- margin-right: 5px;
576
- }
577
-
578
- .active-scaffold-footer a {
579
- text-decoration: none;
580
- letter-spacing: 0;
581
- padding: 0 2px;
582
- margin: 0 -2px;
583
- font: bold 12px arial, sans-serif;
584
- }
585
-
586
- .active-scaffold-footer .next {
587
- margin-left: 0;
588
- padding-left: 5px;
589
- border-left: solid 1px <%= @pagination_border_color %>;
590
- }
591
-
592
- .active-scaffold-footer .previous {
593
- margin-right: 0;
594
- padding-right: 5px;
595
- border-right: solid 1px <%= @pagination_border_color %>;
596
- }
597
-
598
- /* Messages
599
- ========================= */
600
-
601
- .active-scaffold .messages-container,
602
- .active-scaffold .active-scaffold .messages-container{
603
- padding: 0;
604
- margin: 0 7px;
605
- border: none;
606
- }
607
-
608
- .active-scaffold .empty-message, .active-scaffold .filtered-message {
609
- background-color: <%= @msg_filtered_bg %>;
610
- padding: 4px;
611
- text-align: center;
612
- color: <%= @msg_filtered_color %>;
613
- }
614
-
615
- .active-scaffold .message {
616
- font-size: 11px;
617
- font-weight: bold;
618
- padding: 5px 20px 5px 5px;
619
- color: <%= @msg_color %>;
620
- position: relative;
621
- margin: 2px 7px;
622
- line-height: 12px;
623
- }
624
-
625
- .active-scaffold .message a {
626
- position: absolute;
627
- right: 10px;
628
- top: 4px;
629
- padding: 0;
630
- font: bold 11px verdana, sans-serif;
631
- letter-spacing: -1px;
632
- }
633
-
634
- .active-scaffold .messages-container .message {
635
- margin: 0;
636
- }
637
-
638
- .active-scaffold .error-message {
639
- border-left: solid 5px <%= @msg_error_border_color %>;
640
- background-color: <%= @msg_error_bg %>;
641
- }
642
-
643
- .active-scaffold .warning-message {
644
- border-left: solid 5px <%= @msg_warning_border_color %>;
645
- background-color: <%= @msg_warning_bg %>;
646
- }
647
-
648
- .active-scaffold .info-message {
649
- border-left: solid 5px <%= @msg_info_border_color %>;
650
- background-color: <%= @msg_info_bg %>;
651
- }
652
-
653
- /* Error Styling
654
- ========================== */
655
-
656
- .active-scaffold .errorExplanation {
657
- background-color: <%= @msg_error_bg %>;
658
- margin: 2px 0;
659
- border: solid 1px <%= @msg_error_border_color %>;
660
- }
661
-
662
- .active-scaffold fieldset {
663
- clear: both;
664
- }
665
-
666
- .active-scaffold .errorExplanation h2 {
667
- padding: 2px 5px;
668
- color: <%= @msg_color %>;
669
- font-size: 11px;
670
- margin: 0;
671
- letter-spacing: 0;
672
- font-family: Verdana;
673
- background-color: <%= @msg_error_border_color %>;
674
- }
675
-
676
- .active-scaffold .errorExplanation ul {
677
- margin: 0;
678
- padding: 0 2px 4px 25px;
679
- list-style: disc;
680
- }
681
-
682
- .active-scaffold .errorExplanation p {
683
- font-size: 11px;
684
- padding: 2px 5px;
685
- font-family: Verdana;
686
- margin: 0;
687
- }
688
-
689
- .active-scaffold .errorExplanation ul li {
690
- font: bold 11px verdana;
691
- letter-spacing: -1px;
692
- margin: 0;
693
- padding: 0;
694
- background-color: transparent;
695
- }
696
-
697
- /* Loading Indicators
698
- ============================== */
699
-
700
- .active-scaffold .loading-indicator {
701
- vertical-align: text-bottom;
702
- width: 16px;
703
- margin: 0;
704
- }
705
-
706
- .active-scaffold .active-scaffold-header .loading-indicator {
707
- margin-top: 3px;
708
- }
709
-
710
- /* Show
711
- ============================= */
712
-
713
- .active-scaffold .show-view dl {
714
- margin-left: 5px;
715
- }
716
- .active-scaffold .show-view dl dl {
717
- margin-left: 0px;
718
- }
719
-
720
- .active-scaffold .show-view dt {
721
- width: 12em;
722
- float: left;
723
- clear: left;
724
- font: normal 11px verdana, sans-serif;
725
- color: <%= @label_color %>;
726
- line-height: 16px;
727
- }
728
-
729
- .active-scaffold .show-view dd {
730
- float: left;
731
- font: bold 14px arial;
732
- padding-left: 5px;
733
- margin-bottom: 5px;
734
- }
735
-
736
- /* Form
737
- ============================== */
738
-
739
- .active-scaffold dl {
740
- margin: 0;
741
- }
742
-
743
- .active-scaffold .submit {
744
- font-weight: bold;
745
- font-size: 14px;
746
- font-family: Arial, sans-serif;
747
- letter-spacing: 0;
748
- margin: 0;
749
- margin-top: 5px;
750
- }
751
-
752
- .active-scaffold form p {
753
- clear: both;
754
- }
755
-
756
- .active-scaffold fieldset {
757
- border: none;
758
- }
759
-
760
- .active-scaffold h4,
761
- .active-scaffold h5 {
762
- padding: 2px;
763
- margin: 0;
764
- text-transform: none;
765
- color: <%= @form_title_color %>;
766
- letter-spacing: -1px;
767
- font: bold 16px arial;
768
- }
769
-
770
- .active-scaffold h5 {
771
- padding: 0;
772
- margin: 5px 0 2px 0;
773
- font-size: 14px;
774
- letter-spacing: 0;
775
- }
776
-
777
- .active-scaffold ol {
778
- clear: both;
779
- float: none;
780
- padding: 2px;
781
- margin-left: 5px;
782
- list-style: none;
783
- }
784
-
785
- .active-scaffold p.form-footer {
786
- clear: both;
787
- }
788
-
789
- .active-scaffold a.as_cancel,
790
- .active-scaffold p.form-footer a {
791
- font: bold 14px arial, sans-serif;
792
- letter-spacing: 0;
793
- }
794
-
795
- /* Form :: Fields
796
- ============================== */
797
-
798
- .active-scaffold li.form-element {
799
- clear: both;
800
- }
801
-
802
- .active-scaffold label {
803
- font: normal 11px verdana, sans-serif;
804
- color: <%= @label_color %>;
805
- }
806
-
807
- .active-scaffold li.form-element dt {
808
- float: left;
809
- width: 12em;
810
- padding: 6px 0;
811
- }
812
-
813
- .active-scaffold li.form-element dd {
814
- float: left;
815
- }
816
-
817
- .active-scaffold li.form-element dd p,
818
- .active-scaffold li.form-element dd input[type="checkbox"] {
819
- margin-top: 6px;
820
- }
821
-
822
- .active-scaffold .form dd {
823
- margin: 0;
824
- }
825
-
826
-
827
- .active-scaffold .description {
828
- display: inline-block;
829
- color: <%= @description_color %>;
830
- font-size: 10px;
831
- margin-left: 5px;
832
- }
833
-
834
- .active-scaffold .required label {
835
- font-weight: bold;
836
- }
837
-
838
- .active-scaffold label.example {
839
- font-size: 11px;
840
- font-family: arial;
841
- color: <%= @placeholder_color %>;
842
- }
843
-
844
- .active-scaffold input.text-input,
845
- .active-scaffold select {
846
- font: bold 16px arial;
847
- letter-spacing: -1px;
848
- border: solid 1px <%= @input_border_color %>;
849
- }
850
-
851
- .active-scaffold input.text-input {
852
- padding: 2px;
853
- }
854
-
855
- .active-scaffold .fieldWithErrors input,
856
- .active-scaffold .field_with_errors input,
857
- .active-scaffold .fieldWithErrors textarea,
858
- .active-scaffold .field_with_errors textarea,
859
- .active-scaffold .fieldWithErrors select,
860
- .active-scaffold .field_with_errors select {
861
- border: solid 1px <%= @input_error_border_color %>;
862
- }
863
-
864
- .active-scaffold select {
865
- padding: 1px;
866
- }
867
-
868
- .active-scaffold input.example {
869
- color: <%= @placeholder_color %>;
870
- }
871
-
872
- .active-scaffold select:focus,
873
- .active-scaffold input.text-input:focus {
874
- background-color: <%= @input_focus_bg %>;
875
- }
876
-
877
- .active-scaffold textarea {
878
- font-family: Arial, sans-serif;
879
- font-size: 12px;
880
- padding: 1px;
881
- border: solid 1px <%= @input_border_color %>;
882
- }
883
-
884
- .active-scaffold .checkbox-list {
885
- padding-left: 0px;
886
- }
887
-
888
- .active-scaffold .checkbox-list li {
889
- padding-right: 5px;
890
- display: inline;
891
- }
892
-
893
- .active-scaffold .checkbox-list li label {
894
- padding: 0 0 0 2px;
895
- }
896
-
897
- .active-scaffold .draggable-list {
898
- float: left;
899
- width: 300px;
900
- margin-right: 15px;
901
- min-height: 30px;
902
- max-height: 100px;
903
- overflow: auto;
904
- background-color: <%= @draggable_list_bg %>;
905
- }
906
-
907
- .active-scaffold .draggable-list.hover {
908
- opacity: 0.5;
909
- }
910
-
911
- .active-scaffold .draggable-list.selected {
912
- background-color: <%= @draggable_list_selected_bg %>;
913
- }
914
-
915
- .active-scaffold .draggable-list li {
916
- display: block;
917
- }
918
-
919
- li.draggable-item {
920
- list-style: none;
921
- }
922
- li.draggable-item input,
923
- .active-scaffold .draggable-list input {
924
- display: none;
925
- }
926
-
927
- /* Form :: Sub-Sections
928
- ============================== */
929
-
930
- .active-scaffold li.sub-section {
931
- clear: left;
932
- padding: 5px 0;
933
- }
934
-
935
- /* Form :: Association Sub-Forms
936
- ============================== */
937
-
938
- .active-scaffold .sub-form {
939
- float: left;
940
- clear: left;
941
- padding: 5px 0;
942
- padding-left: 5px;
943
- }
944
-
945
- .active-scaffold .sub-form h5 {
946
- margin-left: -5px;
947
- }
948
-
949
- .active-scaffold .sub-form table,
950
- .active-scaffold .sub-form table td {
951
- width: auto;
952
- background: none;
953
- }
954
-
955
- .active-scaffold .sub-form table th {
956
- font: normal 10px verdana, sans-serif;
957
- color: <%= @subform_header_color %>;
958
- padding: 0 5px 0 1px;
959
- background: none;
960
- }
961
-
962
- .active-scaffold .horizontal-sub-form td dt label {
963
- display: none;
964
- }
965
-
966
- .active-scaffold .sub-form .checkbox-list {
967
- padding: 0 2px 2px 2px;
968
- background-color: <%= @checkbox_list_bg %>;
969
- border: solid 1px <%= @input_border_color %>;
970
- }
971
-
972
- .active-scaffold .sub-form .checkbox-list label {
973
- display: block;
974
- }
975
-
976
- .active-scaffold .sub-form table td {
977
- border: none;
978
- background-color: transparent;
979
- padding: 1px;
980
- vertical-align: top;
981
- color: <%= @subform_color %>;
982
- }
983
-
984
- .active-scaffold .sub-form .actions {
985
- vertical-align: middle;
986
- background-color: transparent;
987
- clear: left;
988
- }
989
-
990
- .active-scaffold .sub-form .association-record a.destroy {
991
- font-weight: bold;
992
- display: block;
993
- height: 16px;
994
- padding: 0;
995
- width: 16px;
996
- text-indent: -4000px;
997
- background: url(<%= asset_path 'active_scaffold/cross.png' %>) 0 0 no-repeat;
998
- }
999
-
1000
- .active-scaffold .sub-form .locked a.destroy {
1001
- display: none;
1002
- }
1003
-
1004
- .active-scaffold .sub-form .association-record a {
1005
- font: bold 12px arial;
1006
- }
1007
-
1008
- .active-scaffold .sub-form input.text-input,
1009
- .active-scaffold .sub-form select {
1010
- letter-spacing: 0;
1011
- font: bold 12px arial;
1012
- }
1013
-
1014
- .active-scaffold .sub-form .footer-wrapper {
1015
- margin-top: 3px;
1016
- margin-right: 10px;
1017
- }
1018
-
1019
- .active-scaffold .sub-form .footer {
1020
- color: <%= @subform_footer_color %>;
1021
- padding: 3px 5px;
1022
- }
1023
-
1024
- .active-scaffold .sub-form .footer select,
1025
- .active-scaffold .sub-form .footer input {
1026
- font-weight: bold;
1027
- font-size: 12px;
1028
- padding: 0;
1029
- }
1030
-
1031
- .active-scaffold a.visibility-toggle {
1032
- font-size: 100%;
1033
- }
1034
-
1035
- .active-scaffold-found {
1036
- float:left;
1037
- }
1038
-
1039
- .as_touch a.inline-adapter-close {
1040
- width: 25px;
1041
- height: 27px;
1042
- background: url(<%= asset_path 'active_scaffold/close_touch.png' %>) 0 0 no-repeat;
1043
- }
1044
-
1045
- .as_touch .as_paginate {
1046
- font-size: 20px;
1047
- padding: 3px 10px;
1048
- }
1049
-
1050
- .as_touch .active-scaffold-header div.actions a {
1051
- padding: 7px 5px;
1052
- }
1053
-
1054
- .as_touch .active-scaffold .active-scaffold-header div.actions a {
1055
- padding: 7px 5px;
1056
- }
1057
-
1058
- .as_touch .active-scaffold-header div.actions .action_group ul {
1059
- line-height: 130%;
1060
- top: 23px;
1061
- }
1062
-
1063
- .as_touch .active-scaffold .active-scaffold-header div.actions .action_group ul {
1064
- top: 23px;
1065
- }
1066
-
1067
- .as_touch .active-scaffold-header div.actions a.new,
1068
- .as_touch .active-scaffold-header div.actions a.new_existing,
1069
- .as_touch .active-scaffold-header div.actions a.show_search,
1070
- .as_touch .active-scaffold-header div.actions a.show_config_list,
1071
- .as_touch .active-scaffold-header div.actions div.action_group div {
1072
- padding: 7px 5px 7px 25px;
1073
- }
1074
-
1075
- .as_touch .active-scaffold .active-scaffold-header div.actions > a.new,
1076
- .as_touch .active-scaffold .active-scaffold-header div.actions > a.new_existing,
1077
- .as_touch .active-scaffold .active-scaffold-header div.actions > a.show_search,
1078
- .as_touch .active-scaffold .active-scaffold-header div.actions > a.show_config_list,
1079
- .as_touch .active-scaffold .active-scaffold-header div.actions div.action_group > div {
1080
- padding: 7px 5px 7px 25px;
1081
- background-position: 5px 50%;
1082
- }
1083
-
1084
- .as_touch .actions .action_group ul li div {
1085
- padding: 7px 5px 7px 25px;
1086
- }
1087
-
1088
- .as_touch .actions .action_group ul li a {
1089
- padding: 7px 5px 7px 25px;
1090
- }
1091
-
1092
- .as_touch .active-scaffold-header h2 {
1093
- padding: 4px 0px;
1094
- }
1095
-
1096
- .as_touch .active-scaffold .active-scaffold-header div.actions a,
1097
- .as_touch .active-scaffold .active-scaffold-header div.actions div {
1098
- font: bold 14px arial;
1099
- }
1100
-
1101
- .as_touch .active-scaffold .active-scaffold-header div.actions {
1102
- right: 15px;
1103
- }
1104
-
1105
- .as_touch tr.record {
1106
- line-height: 130%;
1107
- }
1108
-
1109
- .as_touch th a, .as_touch th a:visited {
1110
- color: <%= @column_header_link_color %>;
1111
- padding: 5px 2px 5px 5px;
1112
- }
1113
-
1114
- .as_touch tr.record td {
1115
- padding: 5px 10px;
1116
- }
1117
-
1118
- <% require_asset "jquery-ui" %>
1119
- <% ActiveScaffold.stylesheets.each {|css| require_asset css} %>
1120
- <% ActiveScaffold::Bridges.all_stylesheets.each {|css| require_asset css} %>