caboose-cms 0.2.49 → 0.2.50
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/assets/javascripts/caboose/admin.js +0 -4
- data/app/assets/javascripts/caboose/modal.js +1 -42
- data/app/assets/javascripts/caboose/modal_integration.js +42 -0
- data/app/assets/stylesheets/caboose/admin.css +313 -0
- data/app/views/layouts/caboose/admin.html.erb +1 -1
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWM4ZWUxMzk2YzUwZTVhZTNjYjQ1MTU1MTUyYTgwNzM5YzEwYWVjNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MWQzZmNkZDg1ZGYzZWVhZDc4NGJhN2ZiNzA2ZjdkMGE5NzBlNDI0OA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDJhZjU0Y2M2ZTFmMzhmZjhlYjczZThlMjZhZjRiNWQ2MDRkMWNmZmY5YTQw
|
10
|
+
NjY3YTQ4OGQ5ZDlmM2VkY2RlN2EzYjg4N2VlMzY2NDEwNTA3MTViNGU5ZThh
|
11
|
+
ZjUwMGQ5ZjRlZmQ3MDc5ZGJmZmVlODA2MmFmYWUyZGE4NDNjNjE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGJlYWRmZTAzMGI3YzQ1Y2FjZmUzOTJlODdkYjE1ODJlYWYzMTgzNmRiMWMy
|
14
|
+
MTRiMTViMGQyZjNmZTBkOWE3OGI1NTVlZDY0M2YwNzNlMjBiMWZmYjc2ODI0
|
15
|
+
MDM1Njg5M2MyZDhhOTE3YTkyNzU3Mjg4YTM2NDNjYTIyN2JlNzY=
|
@@ -13,45 +13,4 @@
|
|
13
13
|
//= require jquery
|
14
14
|
//= require jquery_ujs
|
15
15
|
//= require colorbox-rails
|
16
|
-
|
17
|
-
var CabooseModal = function(w, h) {
|
18
|
-
if (!h)
|
19
|
-
{
|
20
|
-
$('#modal_content').css('width', w);
|
21
|
-
h = $('#modal_content').outerHeight(true);
|
22
|
-
}
|
23
|
-
if (parent.$.fn.colorbox)
|
24
|
-
this.resize(w, h);
|
25
|
-
};
|
26
|
-
|
27
|
-
CabooseModal.prototype = {
|
28
|
-
|
29
|
-
width: 0,
|
30
|
-
height: 0,
|
31
|
-
set_width: function(w) { this.width = w; this.colorbox(); },
|
32
|
-
set_height: function(h) { this.height = h; this.colorbox(); },
|
33
|
-
resize: function(w, h) { this.width = w; this.height = h; this.colorbox(); },
|
34
|
-
|
35
|
-
// Resizes the height of the modal based on the content height
|
36
|
-
autosize: function(msg, msg_container) {
|
37
|
-
if (msg)
|
38
|
-
$('#' + (msg_container ? msg_container : 'message')).empty().append(msg);
|
39
|
-
this.height = $('#modal_content').outerHeight(true);
|
40
|
-
this.colorbox();
|
41
|
-
},
|
42
|
-
|
43
|
-
colorbox: function() {
|
44
|
-
if (parent && parent.$.fn.colorbox)
|
45
|
-
{
|
46
|
-
parent.$.fn.colorbox.resize({
|
47
|
-
innerWidth: '' + this.width + 'px',
|
48
|
-
innerHeight: '' + this.height + 'px'
|
49
|
-
});
|
50
|
-
}
|
51
|
-
},
|
52
|
-
|
53
|
-
close: function() {
|
54
|
-
if (parent && parent.$.fn.colorbox)
|
55
|
-
parent.$.fn.colorbox.close();
|
56
|
-
}
|
57
|
-
};
|
16
|
+
//= require caboose/modal_integration
|
@@ -1,4 +1,46 @@
|
|
1
1
|
|
2
|
+
var CabooseModal = function(w, h) {
|
3
|
+
if (!h)
|
4
|
+
{
|
5
|
+
$('#modal_content').css('width', w);
|
6
|
+
h = $('#modal_content').outerHeight(true);
|
7
|
+
}
|
8
|
+
if (parent.$.fn.colorbox)
|
9
|
+
this.resize(w, h);
|
10
|
+
};
|
11
|
+
|
12
|
+
CabooseModal.prototype = {
|
13
|
+
|
14
|
+
width: 0,
|
15
|
+
height: 0,
|
16
|
+
set_width: function(w) { this.width = w; this.colorbox(); },
|
17
|
+
set_height: function(h) { this.height = h; this.colorbox(); },
|
18
|
+
resize: function(w, h) { this.width = w; this.height = h; this.colorbox(); },
|
19
|
+
|
20
|
+
// Resizes the height of the modal based on the content height
|
21
|
+
autosize: function(msg, msg_container) {
|
22
|
+
if (msg)
|
23
|
+
$('#' + (msg_container ? msg_container : 'message')).empty().append(msg);
|
24
|
+
this.height = $('#modal_content').outerHeight(true);
|
25
|
+
this.colorbox();
|
26
|
+
},
|
27
|
+
|
28
|
+
colorbox: function() {
|
29
|
+
if (parent && parent.$.fn.colorbox)
|
30
|
+
{
|
31
|
+
parent.$.fn.colorbox.resize({
|
32
|
+
innerWidth: '' + this.width + 'px',
|
33
|
+
innerHeight: '' + this.height + 'px'
|
34
|
+
});
|
35
|
+
}
|
36
|
+
},
|
37
|
+
|
38
|
+
close: function() {
|
39
|
+
if (parent && parent.$.fn.colorbox)
|
40
|
+
parent.$.fn.colorbox.close();
|
41
|
+
}
|
42
|
+
};
|
43
|
+
|
2
44
|
$(document).ready(function() {
|
3
45
|
$('#caboose_login' ).colorbox({ iframe: true, initialWidth: 400, initialHeight: 200, innerWidth: 400, innerHeight: 200, scrolling: false, transition: 'fade', closeButton: false, onComplete: fix_colorbox, opacity: 0.50 });
|
4
46
|
$('#caboose_register' ).colorbox({ iframe: true, initialWidth: 400, initialHeight: 324, innerWidth: 400, innerHeight: 324, scrolling: false, transition: 'fade', closeButton: false, onComplete: fix_colorbox, opacity: 0.50 });
|
@@ -97,3 +97,316 @@ p.current_page_editing {
|
|
97
97
|
margin: 0;
|
98
98
|
padding: 10px 10px 10px 30px;
|
99
99
|
}
|
100
|
+
|
101
|
+
#content p.loading {
|
102
|
+
background-image: url('/assets/caboose/loading_white_on_black.gif');
|
103
|
+
background-position: 0 center;
|
104
|
+
background-repeat: no-repeat;
|
105
|
+
color: #ccc;
|
106
|
+
font-weight: normal;
|
107
|
+
font-size: 16pt;
|
108
|
+
padding: 10px 10px 10px 40px;
|
109
|
+
}
|
110
|
+
|
111
|
+
#content div.yesnobox {
|
112
|
+
position: absolute;
|
113
|
+
top: 0;
|
114
|
+
left: 0;
|
115
|
+
z-index: 22;
|
116
|
+
background-color: rgba(0, 0, 0, 0.9);
|
117
|
+
font-size: 20px;
|
118
|
+
text-align: center;
|
119
|
+
}
|
120
|
+
|
121
|
+
#content div.yesnobox div {
|
122
|
+
padding: 20px;
|
123
|
+
}
|
124
|
+
|
125
|
+
#content div.yesnobox input {
|
126
|
+
width: auto;
|
127
|
+
}
|
128
|
+
|
129
|
+
div.model_attribute_text {
|
130
|
+
color: #000;
|
131
|
+
}
|
132
|
+
|
133
|
+
#content div.top_right_controls {
|
134
|
+
position: absolute;
|
135
|
+
top: 0;
|
136
|
+
right: 0;
|
137
|
+
}
|
138
|
+
|
139
|
+
#content div.top_right_controls a {
|
140
|
+
display: inline-block;
|
141
|
+
margin: 0;
|
142
|
+
padding: 4px 8px;
|
143
|
+
}
|
144
|
+
|
145
|
+
input, select, textarea {
|
146
|
+
font-family: Helvetica, arial;
|
147
|
+
border: 1px solid #ccc;
|
148
|
+
-moz-border-radius: 2px;
|
149
|
+
-webkit-border-radius: 2px;
|
150
|
+
border-radius: 2px;
|
151
|
+
padding: 4px 8px;
|
152
|
+
height: 34px;
|
153
|
+
font-size: 20px;
|
154
|
+
z-index: 20;
|
155
|
+
}
|
156
|
+
|
157
|
+
input.dirty,
|
158
|
+
textarea.dirty {
|
159
|
+
background: #fff799;
|
160
|
+
}
|
161
|
+
|
162
|
+
select {
|
163
|
+
padding: 0;
|
164
|
+
height: 44px;
|
165
|
+
}
|
166
|
+
|
167
|
+
option {
|
168
|
+
|
169
|
+
}
|
170
|
+
|
171
|
+
select.fake {
|
172
|
+
background: transparent;
|
173
|
+
position: absolute;
|
174
|
+
top: 0;
|
175
|
+
left: 0;
|
176
|
+
color: transparent;
|
177
|
+
}
|
178
|
+
|
179
|
+
select.fake option {
|
180
|
+
background: #fff;
|
181
|
+
color: #000;
|
182
|
+
}
|
183
|
+
|
184
|
+
#content .bound_input_check a,
|
185
|
+
#content .bound_input_cancel a {
|
186
|
+
border: 1px solid #ccc;
|
187
|
+
-moz-border-radius: 2px;
|
188
|
+
-webkit-border-radius: 2px;
|
189
|
+
border-radius: 2px;
|
190
|
+
|
191
|
+
font-size: 28px;
|
192
|
+
text-align: center;
|
193
|
+
background: #00cc00;
|
194
|
+
color: #fff;
|
195
|
+
|
196
|
+
display: block;
|
197
|
+
padding: 4px 0;
|
198
|
+
height: 34px;
|
199
|
+
}
|
200
|
+
|
201
|
+
#content .bound_input_check a.loading {
|
202
|
+
background-image: url(/assets/caboose/loading_green.gif);
|
203
|
+
background-color: #00cc00;
|
204
|
+
background-repeat: no-repeat;
|
205
|
+
background-position: 6px 5px;
|
206
|
+
color: rgba(255, 255, 255, 0.0);
|
207
|
+
}
|
208
|
+
|
209
|
+
#content .bound_textarea_controls a {
|
210
|
+
display: inline-block;
|
211
|
+
margin: 3px 0 0 1px;
|
212
|
+
padding: 8px 0 6px 0;
|
213
|
+
background: #ccc;
|
214
|
+
color: #000;
|
215
|
+
text-align: center;
|
216
|
+
border: #666 1px solid;
|
217
|
+
}
|
218
|
+
|
219
|
+
#content .bound_textarea_controls a.save { width: 60px; }
|
220
|
+
#content .bound_textarea_controls a.discard { width: 80px; }
|
221
|
+
|
222
|
+
#content .note,
|
223
|
+
#content .error {
|
224
|
+
margin: 0;
|
225
|
+
}
|
226
|
+
|
227
|
+
#content .placeholder {
|
228
|
+
display: block;
|
229
|
+
margin: 0;
|
230
|
+
padding: 0 5px 0 0;
|
231
|
+
height: 34px;
|
232
|
+
|
233
|
+
position: absolute;
|
234
|
+
top: 12px;
|
235
|
+
left: 10px;
|
236
|
+
z-index: 19;
|
237
|
+
}
|
238
|
+
|
239
|
+
#content .placeholder span {
|
240
|
+
display: block;
|
241
|
+
font-size: 20px;
|
242
|
+
color: #757575;
|
243
|
+
}
|
244
|
+
|
245
|
+
#content input[type='checkbox'] {
|
246
|
+
position: absolute;
|
247
|
+
top: 4px;
|
248
|
+
left: 0;
|
249
|
+
z-index: 19;
|
250
|
+
|
251
|
+
margin: 0;
|
252
|
+
padding: 0;
|
253
|
+
width: 20px;
|
254
|
+
}
|
255
|
+
|
256
|
+
#content .search_form {
|
257
|
+
position: absolute;
|
258
|
+
top: 0;
|
259
|
+
right: 0;
|
260
|
+
}
|
261
|
+
|
262
|
+
#content table.data {
|
263
|
+
border-collapse: collapse;
|
264
|
+
}
|
265
|
+
|
266
|
+
#content table.data th {
|
267
|
+
background: #333;
|
268
|
+
border: #333 1px solid;
|
269
|
+
color: #fff;
|
270
|
+
margin: 0;
|
271
|
+
padding: 0;
|
272
|
+
}
|
273
|
+
|
274
|
+
#content table.data th a {
|
275
|
+
color: #fff;
|
276
|
+
display: block;
|
277
|
+
text-decoration: none;
|
278
|
+
border: none;
|
279
|
+
padding: 8px 12px;
|
280
|
+
}
|
281
|
+
|
282
|
+
#content table.data th a:hover {
|
283
|
+
color: #000;
|
284
|
+
background: #fff;
|
285
|
+
}
|
286
|
+
|
287
|
+
#content table.data td {
|
288
|
+
background: #fff;
|
289
|
+
border: #333 1px solid;
|
290
|
+
margin: 0;
|
291
|
+
padding: 8px 12px;
|
292
|
+
}
|
293
|
+
|
294
|
+
#content table.data tr:nth-child(even) td {
|
295
|
+
background-color: #efefef;
|
296
|
+
}
|
297
|
+
|
298
|
+
|
299
|
+
#content table.data tr:nth-child(odd) td {
|
300
|
+
background-color: transparent;
|
301
|
+
}
|
302
|
+
|
303
|
+
#content table.data tr:hover td,
|
304
|
+
#content table.data tr:nth-child(even):hover td,
|
305
|
+
#content table.data tr:nth-child(odd):hover td {
|
306
|
+
background: #fff799;
|
307
|
+
cursor: pointer;
|
308
|
+
cursor: hand;
|
309
|
+
}
|
310
|
+
|
311
|
+
/*******************************************************************************
|
312
|
+
Modeljs
|
313
|
+
*******************************************************************************/
|
314
|
+
|
315
|
+
#content div.model_attribute_text {
|
316
|
+
color: #fff;
|
317
|
+
}
|
318
|
+
|
319
|
+
#content .model_attribute {
|
320
|
+
background: none repeat scroll 0 0 transparent;
|
321
|
+
display: block;
|
322
|
+
padding: 2px 4px;
|
323
|
+
text-decoration: none;
|
324
|
+
}
|
325
|
+
|
326
|
+
#content .clear {
|
327
|
+
clear: both;
|
328
|
+
line-height: 0;
|
329
|
+
}
|
330
|
+
|
331
|
+
/*******************************************************************************
|
332
|
+
Message boxes
|
333
|
+
*******************************************************************************/
|
334
|
+
|
335
|
+
#content .note {
|
336
|
+
padding: 20px;
|
337
|
+
background: #fef49c;
|
338
|
+
color: #000000;
|
339
|
+
font-weight: bold;
|
340
|
+
font-size: 1.4em;
|
341
|
+
}
|
342
|
+
|
343
|
+
#content .note_small {
|
344
|
+
display: block;
|
345
|
+
padding: 4px 10px;
|
346
|
+
background: #fef49c;
|
347
|
+
color: #000000;
|
348
|
+
font-size: 1em;
|
349
|
+
}
|
350
|
+
|
351
|
+
#content .error {
|
352
|
+
background: #9c171b;
|
353
|
+
color: #ffffff;
|
354
|
+
}
|
355
|
+
|
356
|
+
#content .error a {
|
357
|
+
color: #fff;
|
358
|
+
}
|
359
|
+
|
360
|
+
#content .error a:hover {
|
361
|
+
color: #000;
|
362
|
+
}
|
363
|
+
|
364
|
+
#content .success {
|
365
|
+
background: #009900;
|
366
|
+
color: #ffffff;
|
367
|
+
}
|
368
|
+
|
369
|
+
#content .success a {
|
370
|
+
color: #ffffff;
|
371
|
+
}
|
372
|
+
|
373
|
+
/*******************************************************************************
|
374
|
+
Page Bar Generator
|
375
|
+
*******************************************************************************/
|
376
|
+
|
377
|
+
.page_links {
|
378
|
+
|
379
|
+
}
|
380
|
+
|
381
|
+
.page_links a {
|
382
|
+
display: inline-block;
|
383
|
+
margin: 0 2px;
|
384
|
+
padding: 5px 8px 3px 8px;
|
385
|
+
|
386
|
+
border: #333 1px solid;
|
387
|
+
background: #333;
|
388
|
+
color: #fff;
|
389
|
+
text-decoration: none;
|
390
|
+
}
|
391
|
+
|
392
|
+
.page_links a:hover {
|
393
|
+
background: #505050;
|
394
|
+
color: #fff;
|
395
|
+
}
|
396
|
+
|
397
|
+
.page_links .middle_links a {
|
398
|
+
|
399
|
+
}
|
400
|
+
|
401
|
+
.page_links span.current_page {
|
402
|
+
display: inline-block;
|
403
|
+
padding: 5px 8px 3px 8px;
|
404
|
+
|
405
|
+
border: #333 1px solid;
|
406
|
+
background: #ccc;
|
407
|
+
color: #000;
|
408
|
+
text-decoration: none;
|
409
|
+
}
|
410
|
+
|
411
|
+
#search_form input[type='text'] { height: 20px; padding: 6px 12px; }
|
412
|
+
#search_form input[type='submit'] { height: 35px; padding: 0 12px; }
|
data/lib/caboose/version.rb
CHANGED