active_scaffold 3.1.5 → 3.1.6

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