merb-admin 0.8.1 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. data/.gitignore +29 -27
  2. data/Gemfile +24 -22
  3. data/Gemfile.lock +86 -0
  4. data/LICENSE +20 -20
  5. data/README.rdoc +54 -58
  6. data/Rakefile +11 -44
  7. data/app/controllers/application.rb +6 -6
  8. data/app/controllers/main.rb +191 -191
  9. data/app/helpers/application_helper.rb +64 -64
  10. data/app/helpers/main_helper.rb +167 -167
  11. data/app/models/.gitkeep +0 -0
  12. data/app/views/layout/_message.html.erb +10 -10
  13. data/app/views/layout/dashboard.html.erb +34 -34
  14. data/app/views/layout/form.html.erb +48 -48
  15. data/app/views/layout/list.html.erb +42 -42
  16. data/app/views/main/_belongs_to.html.erb +29 -29
  17. data/app/views/main/_big_decimal.html.erb +12 -12
  18. data/app/views/main/_boolean.html.erb +7 -7
  19. data/app/views/main/_date.html.erb +12 -12
  20. data/app/views/main/_datetime.html.erb +12 -12
  21. data/app/views/main/_float.html.erb +12 -12
  22. data/app/views/main/_has_many.html.erb +16 -16
  23. data/app/views/main/_has_one.html.erb +30 -30
  24. data/app/views/main/_integer.html.erb +12 -12
  25. data/app/views/main/_properties.html.erb +18 -18
  26. data/app/views/main/_string.html.erb +15 -15
  27. data/app/views/main/_text.html.erb +11 -11
  28. data/app/views/main/_time.html.erb +12 -12
  29. data/app/views/main/_timestamp.html.erb +12 -12
  30. data/app/views/main/delete.html.erb +28 -28
  31. data/app/views/main/edit.html.erb +19 -19
  32. data/app/views/main/index.html.erb +22 -22
  33. data/app/views/main/list.html.erb +93 -93
  34. data/app/views/main/new.html.erb +16 -16
  35. data/config/init.rb +30 -0
  36. data/config/router.rb +4 -0
  37. data/lib/abstract_model.rb +84 -86
  38. data/lib/active_record_support.rb +147 -147
  39. data/lib/datamapper_support.rb +139 -140
  40. data/lib/generic_support.rb +13 -13
  41. data/lib/merb-admin.rb +99 -99
  42. data/lib/merb-admin/merbtasks.rb +103 -103
  43. data/lib/merb-admin/slicetasks.rb +174 -174
  44. data/lib/merb-admin/spectasks.rb +55 -55
  45. data/lib/merb-admin/version.rb +3 -0
  46. data/lib/sequel_support.rb +275 -275
  47. data/merb-admin.gemspec +42 -232
  48. data/public/javascripts/CollapsedFieldsets.js +85 -85
  49. data/public/javascripts/DateTimeShortcuts.js +255 -255
  50. data/public/javascripts/RelatedObjectLookups.js +96 -96
  51. data/public/javascripts/SelectBox.js +111 -111
  52. data/public/javascripts/SelectFilter2.js +113 -113
  53. data/public/javascripts/actions.js +39 -39
  54. data/public/javascripts/calendar.js +143 -143
  55. data/public/javascripts/core.js +176 -176
  56. data/public/javascripts/dateparse.js +233 -233
  57. data/public/javascripts/getElementsBySelector.js +167 -167
  58. data/public/javascripts/i18n.js +33 -33
  59. data/public/javascripts/ordering.js +137 -137
  60. data/public/javascripts/timeparse.js +94 -94
  61. data/public/javascripts/urlify.js +140 -140
  62. data/public/stylesheets/base.css +746 -746
  63. data/public/stylesheets/changelists.css +269 -269
  64. data/public/stylesheets/dashboard.css +24 -24
  65. data/public/stylesheets/forms.css +327 -327
  66. data/public/stylesheets/global.css +142 -142
  67. data/public/stylesheets/ie.css +50 -50
  68. data/public/stylesheets/layout.css +29 -29
  69. data/public/stylesheets/login.css +54 -54
  70. data/public/stylesheets/master.css +1 -1
  71. data/public/stylesheets/patch-iewin.css +7 -7
  72. data/public/stylesheets/rtl.css +206 -206
  73. data/public/stylesheets/widgets.css +506 -506
  74. data/screenshots/create.png +0 -0
  75. data/screenshots/delete.png +0 -0
  76. data/screenshots/edit.png +0 -0
  77. data/screenshots/index.png +0 -0
  78. data/screenshots/list.png +0 -0
  79. data/screenshots/new.png +0 -0
  80. data/spec/controllers/main_spec.rb +25 -25
  81. data/spec/migrations/activerecord/001_create_divisions_migration.rb +13 -13
  82. data/spec/migrations/activerecord/002_create_drafts_migration.rb +19 -19
  83. data/spec/migrations/activerecord/003_create_leagues_migration.rb +12 -12
  84. data/spec/migrations/activerecord/004_create_players_migration.rb +19 -20
  85. data/spec/migrations/activerecord/005_create_teams_migration.rb +22 -22
  86. data/spec/migrations/sequel/001_create_divisions_migration.rb +15 -15
  87. data/spec/migrations/sequel/002_create_drafts_migration.rb +21 -21
  88. data/spec/migrations/sequel/003_create_leagues_migration.rb +14 -14
  89. data/spec/migrations/sequel/004_create_players_migration.rb +21 -22
  90. data/spec/migrations/sequel/005_create_teams_migration.rb +24 -24
  91. data/spec/models/activerecord/division.rb +7 -7
  92. data/spec/models/activerecord/draft.rb +11 -11
  93. data/spec/models/activerecord/league.rb +6 -6
  94. data/spec/models/activerecord/player.rb +8 -8
  95. data/spec/models/activerecord/team.rb +13 -13
  96. data/spec/models/datamapper/division.rb +12 -12
  97. data/spec/models/datamapper/draft.rb +18 -18
  98. data/spec/models/datamapper/league.rb +11 -11
  99. data/spec/models/datamapper/player.rb +20 -21
  100. data/spec/models/datamapper/team.rb +22 -22
  101. data/spec/models/sequel/division.rb +15 -15
  102. data/spec/models/sequel/draft.rb +19 -19
  103. data/spec/models/sequel/league.rb +14 -14
  104. data/spec/models/sequel/player.rb +18 -18
  105. data/spec/models/sequel/team.rb +21 -21
  106. data/spec/requests/main_spec.rb +763 -763
  107. data/spec/spec_helper.rb +113 -112
  108. metadata +247 -41
  109. data/VERSION +0 -1
@@ -1,2 +1,2 @@
1
- html, body { margin: 0; padding: 0; }
1
+ html, body { margin: 0; padding: 0; }
2
2
  #container { width: 800px; margin: 4em auto; padding: 4em 4em 6em 4em; background: #DDDDDD; }
@@ -1,8 +1,8 @@
1
- * html #container { position:static; } /* keep header from flowing off the page */
2
- * html .colMS #content-related { margin-right:0; margin-left:10px; position:static; } /* put the right sidebars back on the page */
3
- * html .colSM #content-related { margin-right:10px; margin-left:-115px; position:static; } /* put the left sidebars back on the page */
4
- * html .form-row { height:1%; }
5
- * html .dashboard #content { width:768px; } /* proper fixed width for dashboard in IE6 */
6
- * html .dashboard #content-main { width:535px; } /* proper fixed width for dashboard in IE6 */
7
- * html #changelist-filter ul { margin-right:-10px; } /* fix right margin for changelist filters in IE6 */
1
+ * html #container { position:static; } /* keep header from flowing off the page */
2
+ * html .colMS #content-related { margin-right:0; margin-left:10px; position:static; } /* put the right sidebars back on the page */
3
+ * html .colSM #content-related { margin-right:10px; margin-left:-115px; position:static; } /* put the left sidebars back on the page */
4
+ * html .form-row { height:1%; }
5
+ * html .dashboard #content { width:768px; } /* proper fixed width for dashboard in IE6 */
6
+ * html .dashboard #content-main { width:535px; } /* proper fixed width for dashboard in IE6 */
7
+ * html #changelist-filter ul { margin-right:-10px; } /* fix right margin for changelist filters in IE6 */
8
8
  * html .change-list .filtered { height:400px; } /* IE ignores min-height, but treats height as if it were min-height */
@@ -1,206 +1,206 @@
1
- body {
2
- direction: rtl;
3
- }
4
-
5
- /* LOGIN */
6
-
7
- .login .form-row {
8
- float: right;
9
- }
10
-
11
- .login .form-row label {
12
- float: right;
13
- padding-left: 0.5em;
14
- padding-right: 0;
15
- text-align: left;
16
- }
17
-
18
- .login .submit-row {
19
- clear: both;
20
- padding: 1em 9.4em 0 0;
21
- }
22
-
23
- /* GLOBAL */
24
-
25
- th {
26
- text-align: right;
27
- }
28
-
29
- .module h2, .module caption {
30
- text-align: right;
31
- }
32
-
33
- .addlink, .changelink {
34
- padding-left: 0px;
35
- padding-right: 12px;
36
- background-position: 100% 0.2em;
37
- }
38
-
39
- .deletelink {
40
- padding-left: 0px;
41
- padding-right: 12px;
42
- background-position: 100% 0.25em;
43
- }
44
-
45
- .object-tools {
46
- float: left;
47
- }
48
-
49
- /* LAYOUT */
50
-
51
- #user-tools {
52
- right: auto;
53
- left: 0;
54
- text-align: left;
55
- }
56
-
57
- div.breadcrumbs {
58
- text-align: right;
59
- }
60
-
61
- #content-main {
62
- float: right;
63
- }
64
-
65
- #content-related {
66
- float: left;
67
- margin-left: -19em;
68
- margin-right: auto;
69
- }
70
-
71
- .colMS {
72
- margin-left: 20em !important;
73
- margin-right: 10px !important;
74
- }
75
-
76
- /* dashboard styles */
77
-
78
- .dashboard .module table td a {
79
- padding-left: .6em;
80
- padding-right: 12px;
81
- }
82
-
83
- /* changelists styles */
84
-
85
- .change-list .filtered {
86
- background: white url(../images/changelist-bg_rtl.gif) top left repeat-y !important;
87
- }
88
-
89
- .change-list .filtered table {
90
- border-left: 1px solid #ddd;
91
- border-right: 0px none;
92
- }
93
-
94
- #changelist-filter {
95
- right: auto;
96
- left: 0;
97
- border-left: 0px none;
98
- border-right: 1px solid #ddd;
99
- }
100
-
101
- .change-list .filtered table, .change-list .filtered .paginator, .filtered #toolbar, .filtered div.xfull {
102
- margin-right: 0px !important;
103
- margin-left: 160px !important;
104
- }
105
-
106
- #changelist-filter li.selected {
107
- border-left: 0px none;
108
- padding-left: 0px;
109
- margin-left: 0;
110
- border-right: 5px solid #ccc;
111
- padding-right: 5px;
112
- margin-right: -10px;
113
- }
114
-
115
- /* FORMS */
116
-
117
- .aligned label {
118
- padding: 0 0 3px 1em;
119
- float: right;
120
- }
121
-
122
- .submit-row {
123
- text-align: left
124
- }
125
-
126
- .submit-row p.deletelink-box {
127
- float: right;
128
- }
129
-
130
- .submit-row .deletelink {
131
- background: url(../images/icon_deletelink.gif) 0 50% no-repeat;
132
- padding-right: 14px;
133
- }
134
-
135
- .vDateField, .vTimeField {
136
- margin-left: 2px;
137
- }
138
-
139
- form ul.inline li {
140
- float: right;
141
- padding-right: 0;
142
- padding-left: 7px;
143
- }
144
-
145
- input[type=submit].default, .submit-row input.default {
146
- float: left;
147
- }
148
-
149
- fieldset .field-box {
150
- float: right;
151
- margin-left: 20px;
152
- }
153
-
154
- .errorlist li {
155
- background-position: 100% .3em;
156
- padding: 4px 25px 4px 5px;
157
- }
158
-
159
- .errornote {
160
- background-position: 100% .3em;
161
- padding: 4px 25px 4px 5px;
162
- }
163
-
164
- /* WIDGETS */
165
-
166
- .calendarnav-previous {
167
- top: 0;
168
- left: auto;
169
- right: 0;
170
- }
171
-
172
- .calendarnav-next {
173
- top: 0;
174
- right: auto;
175
- left: 0;
176
- }
177
-
178
- .calendar caption, .calendarbox h2 {
179
- text-align: center;
180
- }
181
-
182
- .selector {
183
- float: right;
184
- }
185
-
186
- .selector .selector-filter {
187
- text-align: right;
188
- }
189
-
190
- /* MISC */
191
-
192
- .inline-related h2 {
193
- text-align: right
194
- }
195
-
196
- .inline-related h3 span.delete {
197
- padding-right: 20px;
198
- padding-left: inherit;
199
- left: 10px;
200
- right: inherit;
201
- }
202
-
203
- .inline-related h3 span.delete label {
204
- margin-left: inherit;
205
- margin-right: 2px;
206
- }
1
+ body {
2
+ direction: rtl;
3
+ }
4
+
5
+ /* LOGIN */
6
+
7
+ .login .form-row {
8
+ float: right;
9
+ }
10
+
11
+ .login .form-row label {
12
+ float: right;
13
+ padding-left: 0.5em;
14
+ padding-right: 0;
15
+ text-align: left;
16
+ }
17
+
18
+ .login .submit-row {
19
+ clear: both;
20
+ padding: 1em 9.4em 0 0;
21
+ }
22
+
23
+ /* GLOBAL */
24
+
25
+ th {
26
+ text-align: right;
27
+ }
28
+
29
+ .module h2, .module caption {
30
+ text-align: right;
31
+ }
32
+
33
+ .addlink, .changelink {
34
+ padding-left: 0px;
35
+ padding-right: 12px;
36
+ background-position: 100% 0.2em;
37
+ }
38
+
39
+ .deletelink {
40
+ padding-left: 0px;
41
+ padding-right: 12px;
42
+ background-position: 100% 0.25em;
43
+ }
44
+
45
+ .object-tools {
46
+ float: left;
47
+ }
48
+
49
+ /* LAYOUT */
50
+
51
+ #user-tools {
52
+ right: auto;
53
+ left: 0;
54
+ text-align: left;
55
+ }
56
+
57
+ div.breadcrumbs {
58
+ text-align: right;
59
+ }
60
+
61
+ #content-main {
62
+ float: right;
63
+ }
64
+
65
+ #content-related {
66
+ float: left;
67
+ margin-left: -19em;
68
+ margin-right: auto;
69
+ }
70
+
71
+ .colMS {
72
+ margin-left: 20em !important;
73
+ margin-right: 10px !important;
74
+ }
75
+
76
+ /* dashboard styles */
77
+
78
+ .dashboard .module table td a {
79
+ padding-left: .6em;
80
+ padding-right: 12px;
81
+ }
82
+
83
+ /* changelists styles */
84
+
85
+ .change-list .filtered {
86
+ background: white url(../images/changelist-bg_rtl.gif) top left repeat-y !important;
87
+ }
88
+
89
+ .change-list .filtered table {
90
+ border-left: 1px solid #ddd;
91
+ border-right: 0px none;
92
+ }
93
+
94
+ #changelist-filter {
95
+ right: auto;
96
+ left: 0;
97
+ border-left: 0px none;
98
+ border-right: 1px solid #ddd;
99
+ }
100
+
101
+ .change-list .filtered table, .change-list .filtered .paginator, .filtered #toolbar, .filtered div.xfull {
102
+ margin-right: 0px !important;
103
+ margin-left: 160px !important;
104
+ }
105
+
106
+ #changelist-filter li.selected {
107
+ border-left: 0px none;
108
+ padding-left: 0px;
109
+ margin-left: 0;
110
+ border-right: 5px solid #ccc;
111
+ padding-right: 5px;
112
+ margin-right: -10px;
113
+ }
114
+
115
+ /* FORMS */
116
+
117
+ .aligned label {
118
+ padding: 0 0 3px 1em;
119
+ float: right;
120
+ }
121
+
122
+ .submit-row {
123
+ text-align: left
124
+ }
125
+
126
+ .submit-row p.deletelink-box {
127
+ float: right;
128
+ }
129
+
130
+ .submit-row .deletelink {
131
+ background: url(../images/icon_deletelink.gif) 0 50% no-repeat;
132
+ padding-right: 14px;
133
+ }
134
+
135
+ .vDateField, .vTimeField {
136
+ margin-left: 2px;
137
+ }
138
+
139
+ form ul.inline li {
140
+ float: right;
141
+ padding-right: 0;
142
+ padding-left: 7px;
143
+ }
144
+
145
+ input[type=submit].default, .submit-row input.default {
146
+ float: left;
147
+ }
148
+
149
+ fieldset .field-box {
150
+ float: right;
151
+ margin-left: 20px;
152
+ }
153
+
154
+ .errorlist li {
155
+ background-position: 100% .3em;
156
+ padding: 4px 25px 4px 5px;
157
+ }
158
+
159
+ .errornote {
160
+ background-position: 100% .3em;
161
+ padding: 4px 25px 4px 5px;
162
+ }
163
+
164
+ /* WIDGETS */
165
+
166
+ .calendarnav-previous {
167
+ top: 0;
168
+ left: auto;
169
+ right: 0;
170
+ }
171
+
172
+ .calendarnav-next {
173
+ top: 0;
174
+ right: auto;
175
+ left: 0;
176
+ }
177
+
178
+ .calendar caption, .calendarbox h2 {
179
+ text-align: center;
180
+ }
181
+
182
+ .selector {
183
+ float: right;
184
+ }
185
+
186
+ .selector .selector-filter {
187
+ text-align: right;
188
+ }
189
+
190
+ /* MISC */
191
+
192
+ .inline-related h2 {
193
+ text-align: right
194
+ }
195
+
196
+ .inline-related h3 span.delete {
197
+ padding-right: 20px;
198
+ padding-left: inherit;
199
+ left: 10px;
200
+ right: inherit;
201
+ }
202
+
203
+ .inline-related h3 span.delete label {
204
+ margin-left: inherit;
205
+ margin-right: 2px;
206
+ }
@@ -1,506 +1,506 @@
1
- /* SELECTOR (FILTER INTERFACE) */
2
-
3
- .selector {
4
- width: 580px;
5
- float: left;
6
- }
7
-
8
- .selector select {
9
- width: 270px;
10
- height: 17.2em;
11
- }
12
-
13
- .selector-available, .selector-chosen {
14
- float: left;
15
- width: 270px;
16
- text-align: center;
17
- margin-bottom: 5px;
18
- }
19
-
20
- .selector-available h2, .selector-chosen h2 {
21
- border: 1px solid #ccc;
22
- }
23
-
24
- .selector .selector-available h2 {
25
- background: white url(../images/nav-bg.gif) bottom left repeat-x;
26
- color: #666;
27
- }
28
-
29
- .selector .selector-filter {
30
- background: white;
31
- border: 1px solid #ccc;
32
- border-width: 0 1px;
33
- padding: 3px;
34
- color: #999;
35
- font-size: 10px;
36
- margin: 0;
37
- text-align: left;
38
- }
39
-
40
- .selector .selector-chosen .selector-filter {
41
- padding: 4px 5px;
42
- }
43
-
44
- .selector .selector-available input {
45
- width: 230px;
46
- }
47
-
48
- .selector ul.selector-chooser {
49
- float: left;
50
- width: 22px;
51
- height: 50px;
52
- background: url(../images/chooser-bg.gif) top center no-repeat;
53
- margin: 8em 3px 0 3px;
54
- padding: 0;
55
- }
56
-
57
- .selector-chooser li {
58
- margin: 0;
59
- padding: 3px;
60
- list-style-type: none;
61
- }
62
-
63
- .selector select {
64
- margin-bottom: 5px;
65
- margin-top: 0;
66
- }
67
-
68
- .selector-add, .selector-remove {
69
- width: 16px;
70
- height: 16px;
71
- display: block;
72
- text-indent: -3000px;
73
- }
74
-
75
- .selector-add {
76
- background: url(../images/selector-add.gif) top center no-repeat;
77
- margin-bottom: 2px;
78
- }
79
-
80
- .selector-remove {
81
- background: url(../images/selector-remove.gif) top center no-repeat;
82
- }
83
-
84
- a.selector-chooseall, a.selector-clearall {
85
- display: block;
86
- width: 6em;
87
- text-align: left;
88
- margin-left: auto;
89
- margin-right: auto;
90
- font-weight: bold;
91
- color: #666;
92
- padding: 3px 0 3px 18px;
93
- }
94
-
95
- a.selector-chooseall:hover, a.selector-clearall:hover {
96
- color: #036;
97
- }
98
-
99
- a.selector-chooseall {
100
- width: 7em;
101
- background: url(../images/selector-addall.gif) left center no-repeat;
102
- }
103
-
104
- a.selector-clearall {
105
- background: url(../images/selector-removeall.gif) left center no-repeat;
106
- }
107
-
108
-
109
- /* STACKED SELECTORS */
110
-
111
- .stacked {
112
- float: left;
113
- width: 500px;
114
- }
115
-
116
- .stacked select {
117
- width: 480px;
118
- height: 10.1em;
119
- }
120
-
121
- .stacked .selector-available, .stacked .selector-chosen {
122
- width: 480px;
123
- }
124
-
125
- .stacked .selector-available {
126
- margin-bottom: 0;
127
- }
128
-
129
- .stacked .selector-available input {
130
- width: 442px;
131
- }
132
-
133
- .stacked ul.selector-chooser {
134
- height: 22px;
135
- width: 50px;
136
- margin: 0 0 3px 40%;
137
- background: url(../images/chooser_stacked-bg.gif) top center no-repeat;
138
- }
139
-
140
- .stacked .selector-chooser li {
141
- float: left;
142
- padding: 3px 3px 3px 5px;
143
- }
144
-
145
- .stacked .selector-chooseall, .stacked .selector-clearall {
146
- display: none;
147
- }
148
-
149
- .stacked .selector-add {
150
- background-image: url(../images/selector_stacked-add.gif);
151
- }
152
-
153
- .stacked .selector-remove {
154
- background-image: url(../images/selector_stacked-remove.gif);
155
- }
156
-
157
-
158
- /* DATE AND TIME */
159
-
160
- p.datetime {
161
- line-height: 20px;
162
- margin: 0;
163
- padding: 0;
164
- color: #666;
165
- font-size: 11px;
166
- font-weight: bold;
167
- }
168
-
169
- .datetime span {
170
- font-size: 11px;
171
- color: #ccc;
172
- font-weight: normal;
173
- white-space: nowrap;
174
- }
175
-
176
- table p.datetime {
177
- font-size: 10px;
178
- margin-left: 0;
179
- padding-left: 0;
180
- }
181
-
182
- /* FILE UPLOADS */
183
-
184
- p.file-upload {
185
- line-height: 20px;
186
- margin: 0;
187
- padding: 0;
188
- color: #666;
189
- font-size: 11px;
190
- font-weight: bold;
191
- }
192
-
193
- .file-upload a {
194
- font-weight: normal;
195
- }
196
-
197
- .file-upload .deletelink {
198
- margin-left: 5px;
199
- }
200
-
201
- /* CALENDARS & CLOCKS */
202
-
203
- .calendarbox, .clockbox {
204
- margin: 5px auto;
205
- font-size: 11px;
206
- width: 16em;
207
- text-align: center;
208
- background: white;
209
- position: relative;
210
- }
211
-
212
- .clockbox {
213
- width: auto;
214
- }
215
-
216
- .calendar {
217
- margin: 0;
218
- padding: 0;
219
- }
220
-
221
- .calendar table {
222
- margin: 0;
223
- padding: 0;
224
- border-collapse: collapse;
225
- background: white;
226
- width: 99%;
227
- }
228
-
229
- .calendar caption, .calendarbox h2 {
230
- margin: 0;
231
- font-size: 11px;
232
- text-align: center;
233
- border-top: none;
234
- }
235
-
236
- .calendar th {
237
- font-size: 10px;
238
- color: #666;
239
- padding: 2px 3px;
240
- text-align: center;
241
- background: #e1e1e1 url(../images/nav-bg.gif) 0 50% repeat-x;
242
- border-bottom: 1px solid #ddd;
243
- }
244
-
245
- .calendar td {
246
- font-size: 11px;
247
- text-align: center;
248
- padding: 0;
249
- border-top: 1px solid #eee;
250
- border-bottom: none;
251
- }
252
-
253
- .calendar td.selected a {
254
- background: #C9DBED;
255
- }
256
-
257
- .calendar td.nonday {
258
- background: #efefef;
259
- }
260
-
261
- .calendar td.today a {
262
- background: #ffc;
263
- }
264
-
265
- .calendar td a, .timelist a {
266
- display: block;
267
- font-weight: bold;
268
- padding: 4px;
269
- text-decoration: none;
270
- color: #444;
271
- }
272
-
273
- .calendar td a:hover, .timelist a:hover {
274
- background: #5b80b2;
275
- color: white;
276
- }
277
-
278
- .calendar td a:active, .timelist a:active {
279
- background: #036;
280
- color: white;
281
- }
282
-
283
- .calendarnav {
284
- font-size: 10px;
285
- text-align: center;
286
- color: #ccc;
287
- margin: 0;
288
- padding: 1px 3px;
289
- }
290
-
291
- .calendarnav a:link, #calendarnav a:visited, #calendarnav a:hover {
292
- color: #999;
293
- }
294
-
295
- .calendar-shortcuts {
296
- background: white;
297
- font-size: 10px;
298
- line-height: 11px;
299
- border-top: 1px solid #eee;
300
- padding: 3px 0 4px;
301
- color: #ccc;
302
- }
303
-
304
- .calendarbox .calendarnav-previous, .calendarbox .calendarnav-next {
305
- display: block;
306
- position: absolute;
307
- font-weight: bold;
308
- font-size: 12px;
309
- background: #C9DBED url(../images/default-bg.gif) bottom left repeat-x;
310
- padding: 1px 4px 2px 4px;
311
- color: white;
312
- }
313
-
314
- .calendarnav-previous:hover, .calendarnav-next:hover {
315
- background: #036;
316
- }
317
-
318
- .calendarnav-previous {
319
- top: 0;
320
- left: 0;
321
- }
322
-
323
- .calendarnav-next {
324
- top: 0;
325
- right: 0;
326
- }
327
-
328
- .calendar-cancel {
329
- margin: 0 !important;
330
- padding: 0;
331
- font-size: 10px;
332
- background: #e1e1e1 url(../images/nav-bg.gif) 0 50% repeat-x;
333
- border-top: 1px solid #ddd;
334
- }
335
-
336
- .calendar-cancel a {
337
- padding: 2px;
338
- color: #999;
339
- }
340
-
341
- ul.timelist, .timelist li {
342
- list-style-type: none;
343
- margin: 0;
344
- padding: 0;
345
- }
346
-
347
- .timelist a {
348
- padding: 2px;
349
- }
350
-
351
- /* INLINE ORDERER */
352
-
353
- ul.orderer {
354
- position: relative;
355
- padding: 0 !important;
356
- margin: 0 !important;
357
- list-style-type: none;
358
- }
359
-
360
- ul.orderer li {
361
- list-style-type: none;
362
- display: block;
363
- padding: 0;
364
- margin: 0;
365
- border: 1px solid #bbb;
366
- border-width: 0 1px 1px 0;
367
- white-space: nowrap;
368
- overflow: hidden;
369
- background: #e2e2e2 url(../images/nav-bg-grabber.gif) repeat-y;
370
- }
371
-
372
- ul.orderer li:hover {
373
- cursor: move;
374
- background-color: #ddd;
375
- }
376
-
377
- ul.orderer li a.selector {
378
- margin-left: 12px;
379
- overflow: hidden;
380
- width: 83%;
381
- font-size: 10px !important;
382
- padding: 0.6em 0;
383
- }
384
-
385
- ul.orderer li a:link, ul.orderer li a:visited {
386
- color: #333;
387
- }
388
-
389
- ul.orderer li .inline-deletelink {
390
- position: absolute;
391
- right: 4px;
392
- margin-top: 0.6em;
393
- }
394
-
395
- ul.orderer li.selected {
396
- background-color: #f8f8f8;
397
- border-right-color: #f8f8f8;
398
- }
399
-
400
- ul.orderer li.deleted {
401
- background: #bbb url(../images/deleted-overlay.gif);
402
- }
403
-
404
- ul.orderer li.deleted a:link, ul.orderer li.deleted a:visited {
405
- color: #888;
406
- }
407
-
408
- ul.orderer li.deleted .inline-deletelink {
409
- background-image: url(../images/inline-restore.png);
410
- }
411
-
412
- ul.orderer li.deleted:hover, ul.orderer li.deleted a.selector:hover {
413
- cursor: default;
414
- }
415
-
416
- /* EDIT INLINE */
417
-
418
- .inline-deletelink {
419
- display: block;
420
- text-indent: -9999px;
421
- background: transparent url(../images/inline-delete.png) no-repeat;
422
- width: 15px;
423
- height: 15px;
424
- margin: 0.4em 0;
425
- border: 0px none;
426
- }
427
-
428
- .inline-deletelink:hover {
429
- background-position: -15px 0;
430
- cursor: pointer;
431
- }
432
-
433
- .editinline button.addlink {
434
- border: 0px none;
435
- color: #5b80b2;
436
- font-size: 100%;
437
- cursor: pointer;
438
- }
439
-
440
- .editinline button.addlink:hover {
441
- color: #036;
442
- cursor: pointer;
443
- }
444
-
445
- .editinline table .help {
446
- text-align: right;
447
- float: right;
448
- padding-left: 2em;
449
- }
450
-
451
- .editinline tfoot .addlink {
452
- white-space: nowrap;
453
- }
454
-
455
- .editinline table thead th:last-child {
456
- border-left: none;
457
- }
458
-
459
- .editinline tr.deleted {
460
- background: #ddd url(../images/deleted-overlay.gif);
461
- }
462
-
463
- .editinline tr.deleted .inline-deletelink {
464
- background-image: url(../images/inline-restore.png);
465
- }
466
-
467
- .editinline tr.deleted td:hover {
468
- cursor: default;
469
- }
470
-
471
- .editinline tr.deleted td:first-child {
472
- background-image: none !important;
473
- }
474
-
475
- /* EDIT INLINE - STACKED */
476
-
477
- .editinline-stacked {
478
- min-width: 758px;
479
- }
480
-
481
- .editinline-stacked .inline-object {
482
- margin-left: 210px;
483
- background: white;
484
- }
485
-
486
- .editinline-stacked .inline-source {
487
- float: left;
488
- width: 200px;
489
- background: #f8f8f8;
490
- }
491
-
492
- .editinline-stacked .inline-splitter {
493
- float: left;
494
- width: 9px;
495
- background: #f8f8f8 url(../images/inline-splitter-bg.gif) 50% 50% no-repeat;
496
- border-right: 1px solid #ccc;
497
- }
498
-
499
- .editinline-stacked .controls {
500
- clear: both;
501
- background: #e1e1e1 url(../images/nav-bg.gif) top left repeat-x;
502
- padding: 3px 4px;
503
- font-size: 11px;
504
- border-top: 1px solid #ddd;
505
- }
506
-
1
+ /* SELECTOR (FILTER INTERFACE) */
2
+
3
+ .selector {
4
+ width: 580px;
5
+ float: left;
6
+ }
7
+
8
+ .selector select {
9
+ width: 270px;
10
+ height: 17.2em;
11
+ }
12
+
13
+ .selector-available, .selector-chosen {
14
+ float: left;
15
+ width: 270px;
16
+ text-align: center;
17
+ margin-bottom: 5px;
18
+ }
19
+
20
+ .selector-available h2, .selector-chosen h2 {
21
+ border: 1px solid #ccc;
22
+ }
23
+
24
+ .selector .selector-available h2 {
25
+ background: white url(../images/nav-bg.gif) bottom left repeat-x;
26
+ color: #666;
27
+ }
28
+
29
+ .selector .selector-filter {
30
+ background: white;
31
+ border: 1px solid #ccc;
32
+ border-width: 0 1px;
33
+ padding: 3px;
34
+ color: #999;
35
+ font-size: 10px;
36
+ margin: 0;
37
+ text-align: left;
38
+ }
39
+
40
+ .selector .selector-chosen .selector-filter {
41
+ padding: 4px 5px;
42
+ }
43
+
44
+ .selector .selector-available input {
45
+ width: 230px;
46
+ }
47
+
48
+ .selector ul.selector-chooser {
49
+ float: left;
50
+ width: 22px;
51
+ height: 50px;
52
+ background: url(../images/chooser-bg.gif) top center no-repeat;
53
+ margin: 8em 3px 0 3px;
54
+ padding: 0;
55
+ }
56
+
57
+ .selector-chooser li {
58
+ margin: 0;
59
+ padding: 3px;
60
+ list-style-type: none;
61
+ }
62
+
63
+ .selector select {
64
+ margin-bottom: 5px;
65
+ margin-top: 0;
66
+ }
67
+
68
+ .selector-add, .selector-remove {
69
+ width: 16px;
70
+ height: 16px;
71
+ display: block;
72
+ text-indent: -3000px;
73
+ }
74
+
75
+ .selector-add {
76
+ background: url(../images/selector-add.gif) top center no-repeat;
77
+ margin-bottom: 2px;
78
+ }
79
+
80
+ .selector-remove {
81
+ background: url(../images/selector-remove.gif) top center no-repeat;
82
+ }
83
+
84
+ a.selector-chooseall, a.selector-clearall {
85
+ display: block;
86
+ width: 6em;
87
+ text-align: left;
88
+ margin-left: auto;
89
+ margin-right: auto;
90
+ font-weight: bold;
91
+ color: #666;
92
+ padding: 3px 0 3px 18px;
93
+ }
94
+
95
+ a.selector-chooseall:hover, a.selector-clearall:hover {
96
+ color: #036;
97
+ }
98
+
99
+ a.selector-chooseall {
100
+ width: 7em;
101
+ background: url(../images/selector-addall.gif) left center no-repeat;
102
+ }
103
+
104
+ a.selector-clearall {
105
+ background: url(../images/selector-removeall.gif) left center no-repeat;
106
+ }
107
+
108
+
109
+ /* STACKED SELECTORS */
110
+
111
+ .stacked {
112
+ float: left;
113
+ width: 500px;
114
+ }
115
+
116
+ .stacked select {
117
+ width: 480px;
118
+ height: 10.1em;
119
+ }
120
+
121
+ .stacked .selector-available, .stacked .selector-chosen {
122
+ width: 480px;
123
+ }
124
+
125
+ .stacked .selector-available {
126
+ margin-bottom: 0;
127
+ }
128
+
129
+ .stacked .selector-available input {
130
+ width: 442px;
131
+ }
132
+
133
+ .stacked ul.selector-chooser {
134
+ height: 22px;
135
+ width: 50px;
136
+ margin: 0 0 3px 40%;
137
+ background: url(../images/chooser_stacked-bg.gif) top center no-repeat;
138
+ }
139
+
140
+ .stacked .selector-chooser li {
141
+ float: left;
142
+ padding: 3px 3px 3px 5px;
143
+ }
144
+
145
+ .stacked .selector-chooseall, .stacked .selector-clearall {
146
+ display: none;
147
+ }
148
+
149
+ .stacked .selector-add {
150
+ background-image: url(../images/selector_stacked-add.gif);
151
+ }
152
+
153
+ .stacked .selector-remove {
154
+ background-image: url(../images/selector_stacked-remove.gif);
155
+ }
156
+
157
+
158
+ /* DATE AND TIME */
159
+
160
+ p.datetime {
161
+ line-height: 20px;
162
+ margin: 0;
163
+ padding: 0;
164
+ color: #666;
165
+ font-size: 11px;
166
+ font-weight: bold;
167
+ }
168
+
169
+ .datetime span {
170
+ font-size: 11px;
171
+ color: #ccc;
172
+ font-weight: normal;
173
+ white-space: nowrap;
174
+ }
175
+
176
+ table p.datetime {
177
+ font-size: 10px;
178
+ margin-left: 0;
179
+ padding-left: 0;
180
+ }
181
+
182
+ /* FILE UPLOADS */
183
+
184
+ p.file-upload {
185
+ line-height: 20px;
186
+ margin: 0;
187
+ padding: 0;
188
+ color: #666;
189
+ font-size: 11px;
190
+ font-weight: bold;
191
+ }
192
+
193
+ .file-upload a {
194
+ font-weight: normal;
195
+ }
196
+
197
+ .file-upload .deletelink {
198
+ margin-left: 5px;
199
+ }
200
+
201
+ /* CALENDARS & CLOCKS */
202
+
203
+ .calendarbox, .clockbox {
204
+ margin: 5px auto;
205
+ font-size: 11px;
206
+ width: 16em;
207
+ text-align: center;
208
+ background: white;
209
+ position: relative;
210
+ }
211
+
212
+ .clockbox {
213
+ width: auto;
214
+ }
215
+
216
+ .calendar {
217
+ margin: 0;
218
+ padding: 0;
219
+ }
220
+
221
+ .calendar table {
222
+ margin: 0;
223
+ padding: 0;
224
+ border-collapse: collapse;
225
+ background: white;
226
+ width: 99%;
227
+ }
228
+
229
+ .calendar caption, .calendarbox h2 {
230
+ margin: 0;
231
+ font-size: 11px;
232
+ text-align: center;
233
+ border-top: none;
234
+ }
235
+
236
+ .calendar th {
237
+ font-size: 10px;
238
+ color: #666;
239
+ padding: 2px 3px;
240
+ text-align: center;
241
+ background: #e1e1e1 url(../images/nav-bg.gif) 0 50% repeat-x;
242
+ border-bottom: 1px solid #ddd;
243
+ }
244
+
245
+ .calendar td {
246
+ font-size: 11px;
247
+ text-align: center;
248
+ padding: 0;
249
+ border-top: 1px solid #eee;
250
+ border-bottom: none;
251
+ }
252
+
253
+ .calendar td.selected a {
254
+ background: #C9DBED;
255
+ }
256
+
257
+ .calendar td.nonday {
258
+ background: #efefef;
259
+ }
260
+
261
+ .calendar td.today a {
262
+ background: #ffc;
263
+ }
264
+
265
+ .calendar td a, .timelist a {
266
+ display: block;
267
+ font-weight: bold;
268
+ padding: 4px;
269
+ text-decoration: none;
270
+ color: #444;
271
+ }
272
+
273
+ .calendar td a:hover, .timelist a:hover {
274
+ background: #5b80b2;
275
+ color: white;
276
+ }
277
+
278
+ .calendar td a:active, .timelist a:active {
279
+ background: #036;
280
+ color: white;
281
+ }
282
+
283
+ .calendarnav {
284
+ font-size: 10px;
285
+ text-align: center;
286
+ color: #ccc;
287
+ margin: 0;
288
+ padding: 1px 3px;
289
+ }
290
+
291
+ .calendarnav a:link, #calendarnav a:visited, #calendarnav a:hover {
292
+ color: #999;
293
+ }
294
+
295
+ .calendar-shortcuts {
296
+ background: white;
297
+ font-size: 10px;
298
+ line-height: 11px;
299
+ border-top: 1px solid #eee;
300
+ padding: 3px 0 4px;
301
+ color: #ccc;
302
+ }
303
+
304
+ .calendarbox .calendarnav-previous, .calendarbox .calendarnav-next {
305
+ display: block;
306
+ position: absolute;
307
+ font-weight: bold;
308
+ font-size: 12px;
309
+ background: #C9DBED url(../images/default-bg.gif) bottom left repeat-x;
310
+ padding: 1px 4px 2px 4px;
311
+ color: white;
312
+ }
313
+
314
+ .calendarnav-previous:hover, .calendarnav-next:hover {
315
+ background: #036;
316
+ }
317
+
318
+ .calendarnav-previous {
319
+ top: 0;
320
+ left: 0;
321
+ }
322
+
323
+ .calendarnav-next {
324
+ top: 0;
325
+ right: 0;
326
+ }
327
+
328
+ .calendar-cancel {
329
+ margin: 0 !important;
330
+ padding: 0;
331
+ font-size: 10px;
332
+ background: #e1e1e1 url(../images/nav-bg.gif) 0 50% repeat-x;
333
+ border-top: 1px solid #ddd;
334
+ }
335
+
336
+ .calendar-cancel a {
337
+ padding: 2px;
338
+ color: #999;
339
+ }
340
+
341
+ ul.timelist, .timelist li {
342
+ list-style-type: none;
343
+ margin: 0;
344
+ padding: 0;
345
+ }
346
+
347
+ .timelist a {
348
+ padding: 2px;
349
+ }
350
+
351
+ /* INLINE ORDERER */
352
+
353
+ ul.orderer {
354
+ position: relative;
355
+ padding: 0 !important;
356
+ margin: 0 !important;
357
+ list-style-type: none;
358
+ }
359
+
360
+ ul.orderer li {
361
+ list-style-type: none;
362
+ display: block;
363
+ padding: 0;
364
+ margin: 0;
365
+ border: 1px solid #bbb;
366
+ border-width: 0 1px 1px 0;
367
+ white-space: nowrap;
368
+ overflow: hidden;
369
+ background: #e2e2e2 url(../images/nav-bg-grabber.gif) repeat-y;
370
+ }
371
+
372
+ ul.orderer li:hover {
373
+ cursor: move;
374
+ background-color: #ddd;
375
+ }
376
+
377
+ ul.orderer li a.selector {
378
+ margin-left: 12px;
379
+ overflow: hidden;
380
+ width: 83%;
381
+ font-size: 10px !important;
382
+ padding: 0.6em 0;
383
+ }
384
+
385
+ ul.orderer li a:link, ul.orderer li a:visited {
386
+ color: #333;
387
+ }
388
+
389
+ ul.orderer li .inline-deletelink {
390
+ position: absolute;
391
+ right: 4px;
392
+ margin-top: 0.6em;
393
+ }
394
+
395
+ ul.orderer li.selected {
396
+ background-color: #f8f8f8;
397
+ border-right-color: #f8f8f8;
398
+ }
399
+
400
+ ul.orderer li.deleted {
401
+ background: #bbb url(../images/deleted-overlay.gif);
402
+ }
403
+
404
+ ul.orderer li.deleted a:link, ul.orderer li.deleted a:visited {
405
+ color: #888;
406
+ }
407
+
408
+ ul.orderer li.deleted .inline-deletelink {
409
+ background-image: url(../images/inline-restore.png);
410
+ }
411
+
412
+ ul.orderer li.deleted:hover, ul.orderer li.deleted a.selector:hover {
413
+ cursor: default;
414
+ }
415
+
416
+ /* EDIT INLINE */
417
+
418
+ .inline-deletelink {
419
+ display: block;
420
+ text-indent: -9999px;
421
+ background: transparent url(../images/inline-delete.png) no-repeat;
422
+ width: 15px;
423
+ height: 15px;
424
+ margin: 0.4em 0;
425
+ border: 0px none;
426
+ }
427
+
428
+ .inline-deletelink:hover {
429
+ background-position: -15px 0;
430
+ cursor: pointer;
431
+ }
432
+
433
+ .editinline button.addlink {
434
+ border: 0px none;
435
+ color: #5b80b2;
436
+ font-size: 100%;
437
+ cursor: pointer;
438
+ }
439
+
440
+ .editinline button.addlink:hover {
441
+ color: #036;
442
+ cursor: pointer;
443
+ }
444
+
445
+ .editinline table .help {
446
+ text-align: right;
447
+ float: right;
448
+ padding-left: 2em;
449
+ }
450
+
451
+ .editinline tfoot .addlink {
452
+ white-space: nowrap;
453
+ }
454
+
455
+ .editinline table thead th:last-child {
456
+ border-left: none;
457
+ }
458
+
459
+ .editinline tr.deleted {
460
+ background: #ddd url(../images/deleted-overlay.gif);
461
+ }
462
+
463
+ .editinline tr.deleted .inline-deletelink {
464
+ background-image: url(../images/inline-restore.png);
465
+ }
466
+
467
+ .editinline tr.deleted td:hover {
468
+ cursor: default;
469
+ }
470
+
471
+ .editinline tr.deleted td:first-child {
472
+ background-image: none !important;
473
+ }
474
+
475
+ /* EDIT INLINE - STACKED */
476
+
477
+ .editinline-stacked {
478
+ min-width: 758px;
479
+ }
480
+
481
+ .editinline-stacked .inline-object {
482
+ margin-left: 210px;
483
+ background: white;
484
+ }
485
+
486
+ .editinline-stacked .inline-source {
487
+ float: left;
488
+ width: 200px;
489
+ background: #f8f8f8;
490
+ }
491
+
492
+ .editinline-stacked .inline-splitter {
493
+ float: left;
494
+ width: 9px;
495
+ background: #f8f8f8 url(../images/inline-splitter-bg.gif) 50% 50% no-repeat;
496
+ border-right: 1px solid #ccc;
497
+ }
498
+
499
+ .editinline-stacked .controls {
500
+ clear: both;
501
+ background: #e1e1e1 url(../images/nav-bg.gif) top left repeat-x;
502
+ padding: 3px 4px;
503
+ font-size: 11px;
504
+ border-top: 1px solid #ddd;
505
+ }
506
+