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