tb_core 1.2.8 → 1.3.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/admin/core/application.js +1 -2
- data/app/assets/javascripts/admin/core/dashboard.js +1 -1
- data/app/assets/javascripts/admin/core/modal.js +4 -13
- data/app/assets/javascripts/admin/core/users.js +0 -120
- data/app/assets/stylesheets/admin/core/application.css.scss +106 -367
- data/app/assets/stylesheets/admin/core/login.css.scss +3 -29
- data/app/controllers/admin/application_controller.rb +1 -2
- data/app/controllers/admin/user_sessions_controller.rb +0 -3
- data/app/controllers/admin/users_controller.rb +3 -13
- data/app/controllers/password_resets_controller.rb +1 -0
- data/app/controllers/spud/application_controller.rb +8 -14
- data/app/controllers/user_sessions_controller.rb +1 -0
- data/app/helpers/admin/application_helper.rb +11 -15
- data/app/helpers/twice_baked/application_helper.rb +24 -1
- data/app/models/spud/spud_user_model.rb +7 -0
- data/app/views/admin/dashboard/index.html.erb +2 -4
- data/app/views/admin/password_resets/index.html.erb +4 -4
- data/app/views/admin/password_resets/show.html.erb +10 -9
- data/app/views/admin/roles/_form.html.erb +20 -22
- data/app/views/admin/roles/index.html.erb +23 -21
- data/app/views/admin/settings/_form.html.erb +36 -45
- data/app/views/admin/settings/edit.html.erb +1 -1
- data/app/views/admin/setup/new.html.erb +37 -46
- data/app/views/admin/user_sessions/new.html.erb +15 -12
- data/app/views/admin/users/_form.html.erb +16 -86
- data/app/views/admin/users/edit.html.erb +1 -1
- data/app/views/admin/users/index.html.erb +47 -27
- data/app/views/admin/users/new.html.erb +1 -1
- data/app/views/admin/users/show.html.erb +21 -31
- data/app/views/layouts/admin/_flashes.html.erb +19 -0
- data/app/views/layouts/admin/application.html.erb +39 -48
- data/app/views/layouts/admin/detail.html.erb +16 -30
- data/app/views/layouts/admin/error_page.html.erb +2 -1
- data/app/views/layouts/admin/login.html.erb +4 -11
- data/app/views/layouts/user_sessions.html.erb +6 -0
- data/app/views/password_resets/index.html.erb +4 -4
- data/app/views/password_resets/show.html.erb +7 -7
- data/app/views/user_sessions/new.html.erb +6 -6
- data/config/locales/en.yml +10 -0
- data/lib/generators/spud/module_generator.rb +6 -4
- data/lib/generators/spud/setup_generator.rb +7 -39
- data/lib/generators/spud/templates/assets/application.css.scss +5 -0
- data/lib/generators/spud/templates/assets/application.js +1 -0
- data/lib/generators/spud/templates/views/admin/_form.html.erb +7 -18
- data/lib/generators/spud/templates/views/admin/index.html.erb +39 -28
- data/lib/generators/spud/templates/views/admin/show.html.erb +6 -7
- data/lib/generators/spud/templates/views/frontend/index.html.erb +2 -1
- data/lib/generators/spud/templates/views/frontend/show.html.erb +6 -4
- data/lib/generators/spud/templates/views/layouts/application.html.erb +16 -6
- data/lib/spud_core/configuration.rb +1 -1
- data/lib/spud_core/engine.rb +9 -1
- data/lib/spud_core/version.rb +1 -1
- data/lib/tb_core/form_builder.rb +254 -0
- data/spec/helpers/spud/admin/application_helper_spec.rb +5 -5
- metadata +38 -14
- data/app/assets/javascripts/admin/core/split_pane.js +0 -150
- data/app/assets/libs/bootstrap/css/bootstrap-responsive.css +0 -1088
- data/app/assets/libs/bootstrap/css/bootstrap.css.scss +0 -5893
- data/app/assets/libs/bootstrap/img/glyphicons-halflings-white.png +0 -0
- data/app/assets/libs/bootstrap/img/glyphicons-halflings.png +0 -0
- data/app/assets/libs/bootstrap/js/bootstrap.js +0 -2025
- data/app/assets/stylesheets/admin/core/roles.css +0 -4
- data/app/assets/stylesheets/admin/core/split_pane.css.scss +0 -126
- data/app/assets/stylesheets/admin/core/users.css.scss +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c19a45ee39c064d4f8fe5a37e83d2ee26979a73a
|
4
|
+
data.tar.gz: 729eb2c4d3de9ca6993fc8bbff3b5dfd26614e99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a68766b6aaa05c91257c6c80761287f99ede62739efd62e3362477931c1e63af69f75bac9c1cc0f4a67e097e34d2e40ec0d90bbafafda4356e5d305dc3c4c8e
|
7
|
+
data.tar.gz: 3322a942a600a29b95e517522bb30e7d3853d7e5da2c80cf38c89ce99dd7b4098ed013812e37c99bf4c866d731b237fb893fecee5ba9dfc8f2b35b786667334c
|
@@ -1,8 +1,7 @@
|
|
1
1
|
//= require jquery
|
2
2
|
//= require jquery_ujs
|
3
3
|
//= require tinymce-jquery
|
4
|
-
//= require bootstrap
|
5
|
-
//= require datepicker/js/bootstrap-datepicker
|
4
|
+
//= require bootstrap-sprockets
|
6
5
|
//= require jquery-ui/jquery-ui
|
7
6
|
//= require ../../tb_core
|
8
7
|
//= require_self
|
@@ -29,7 +29,7 @@ var updateBadges = function() {
|
|
29
29
|
};
|
30
30
|
|
31
31
|
var updateBadge = function(badge_id, count) {
|
32
|
-
var badgeIcon = $('#' + badge_id).find('.
|
32
|
+
var badgeIcon = $('#' + badge_id).find('.dash-icon-badge');
|
33
33
|
if(badgeIcon.length === 0) {
|
34
34
|
return;
|
35
35
|
}
|
@@ -13,15 +13,16 @@ spud.admin.modal = {
|
|
13
13
|
var defaultFooter = modal.find('.modal-footer-default');
|
14
14
|
if(options.buttons){
|
15
15
|
var newFooter = defaultFooter.clone();
|
16
|
-
newFooter.addClass('modal-footer-additional');
|
16
|
+
newFooter.removeClass('modal-footer-default').addClass('modal-footer-additional');
|
17
17
|
newFooter.find('.form-submit').remove();
|
18
18
|
for(var key in options.buttons){
|
19
|
-
newFooter.append('<button class="btn '+key+'">'+options.buttons[key]+'</button>');
|
19
|
+
newFooter.append('<button class="btn btn-default '+key+'">'+options.buttons[key]+'</button>');
|
20
20
|
}
|
21
21
|
defaultFooter.hide();
|
22
|
-
|
22
|
+
newFooter.insertAfter(defaultFooter);
|
23
23
|
}
|
24
24
|
else{
|
25
|
+
$('modal-footer-additional').remove();
|
25
26
|
defaultFooter.show();
|
26
27
|
}
|
27
28
|
modal.modal('show');
|
@@ -35,13 +36,3 @@ spud.admin.modal = {
|
|
35
36
|
};
|
36
37
|
|
37
38
|
})();
|
38
|
-
|
39
|
-
function displayModalDialogWithOptions(options){
|
40
|
-
console.warn('displayModalDialogWithOptions() is deprecated, please use spud.admin.modal.displayWithOptions.');
|
41
|
-
spud.admin.modal.displayWithOptions(options);
|
42
|
-
}
|
43
|
-
|
44
|
-
function hideModalDialog(){
|
45
|
-
console.warn('hideModalDialog() is deprecated, please use spud.admin.modal.hide');
|
46
|
-
spud.admin.modal.hide();
|
47
|
-
}
|
@@ -4,128 +4,8 @@ var splitPane;
|
|
4
4
|
|
5
5
|
spud.admin.users = {
|
6
6
|
index: function(){
|
7
|
-
splitPane = new spud.admin.SplitPane('.admin-users-split-pane');
|
8
|
-
$('.admin-user-add-btn').on('click', true, clickedAddEditUser);
|
9
|
-
$('.admin-users-split-pane').on('click', '.admin-user-edit-btn', clickedAddEditUser);
|
10
|
-
$('.admin-users-split-pane').on('click', '.admin-user-edit-cancel-btn', clickedCancelAddEditUser);
|
11
|
-
$('.admin-users-split-pane').on('click', '.admin-user-delete-btn', clickedDeleteUser);
|
12
|
-
$('.admin-users-split-pane').on('submit', '.admin-user-form', submittedUserForm);
|
13
|
-
$('body').on('click', '.split-pane-refresh-btn', clickedRefreshButton);
|
14
|
-
if(typeof(FormData) != 'undefined'){
|
15
|
-
_html5Upload = true;
|
16
|
-
}
|
17
|
-
}
|
18
|
-
};
|
19
|
-
|
20
|
-
var _userHtmlCache;
|
21
|
-
var _previouslySelected;
|
22
|
-
var _html5Upload;
|
23
|
-
|
24
|
-
var clickedAddEditUser = function(e){
|
25
|
-
e.preventDefault();
|
26
|
-
_previouslySelected = splitPane.getActiveItem();
|
27
|
-
_userHtmlCache = splitPane.getContentAreaHtml();
|
28
|
-
var isAdd = e.data;
|
29
|
-
if(isAdd){
|
30
|
-
splitPane.deselectActiveItem();
|
31
|
-
}
|
32
|
-
var title = $(this).attr('title');
|
33
|
-
var url = $(this).attr('href');
|
34
|
-
$.ajax(url, {
|
35
|
-
dataType:'html',
|
36
|
-
success:function(html){
|
37
|
-
splitPane.setContentAreaHtml(html);
|
38
|
-
splitPane.setToolbarTitle(title);
|
39
|
-
if(!_html5Upload){
|
40
|
-
splitPane.find('input[type=file]').each(function(){
|
41
|
-
$(this).replaceWith('<em>File upload requires an HTML5-capable browser.</em>');
|
42
|
-
});
|
43
|
-
}
|
44
|
-
}
|
45
|
-
});
|
46
|
-
};
|
47
|
-
|
48
|
-
var clickedCancelAddEditUser = function(e){
|
49
|
-
e.preventDefault();
|
50
|
-
splitPane.setContentAreaHtml(_userHtmlCache);
|
51
|
-
splitPane.setActiveItem(_previouslySelected);
|
52
|
-
splitPane.setToolbarTitle('');
|
53
|
-
};
|
54
7
|
|
55
|
-
var clickedDeleteUser = function(e){
|
56
|
-
e.preventDefault();
|
57
|
-
var url = $(this).attr('href');
|
58
|
-
$.ajax(url, {
|
59
|
-
dataType:'json',
|
60
|
-
type:'post',
|
61
|
-
data: {_method:'delete'},
|
62
|
-
success:function(html){
|
63
|
-
splitPane.removeCurrentlySelectedItem();
|
64
|
-
splitPane.setToolbarTitle('');
|
65
|
-
}
|
66
|
-
});
|
67
|
-
};
|
68
|
-
|
69
|
-
var submittedUserForm = function(e){
|
70
|
-
e.preventDefault();
|
71
|
-
var form = $(this);
|
72
|
-
var url = form.attr('action');
|
73
|
-
|
74
|
-
var submit = form.find('input[type=submit]');
|
75
|
-
submit.val(submit.attr('data-loading-text')).attr('disabled', true);
|
76
|
-
|
77
|
-
if(_html5Upload){
|
78
|
-
var fd = new FormData();
|
79
|
-
form.find('input, select').each(function(i, input){
|
80
|
-
input = $(input);
|
81
|
-
var name = input.prop('name');
|
82
|
-
var type = input.attr('type');
|
83
|
-
if(type == 'file'){
|
84
|
-
var file = input[0].files[0];
|
85
|
-
if(file !== undefined){
|
86
|
-
fd.append(name, file);
|
87
|
-
}
|
88
|
-
}
|
89
|
-
else if(type == 'checkbox'){
|
90
|
-
if(input.is(':checked')){
|
91
|
-
fd.append(name, input.val());
|
92
|
-
}
|
93
|
-
}
|
94
|
-
else{
|
95
|
-
fd.append(name, input.val());
|
96
|
-
}
|
97
|
-
});
|
98
|
-
var xhr = new XMLHttpRequest();
|
99
|
-
xhr.addEventListener('load', function(e){
|
100
|
-
splitPane.setContentAreaHtml(e.target.response);
|
101
|
-
if(this.status >= 200 && this.status < 400){
|
102
|
-
splitPane.refreshList();
|
103
|
-
}
|
104
|
-
});
|
105
|
-
xhr.open('POST', url);
|
106
|
-
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
107
|
-
xhr.send(fd);
|
108
8
|
}
|
109
|
-
else{
|
110
|
-
$.ajax(url, {
|
111
|
-
dataType:'html',
|
112
|
-
type: 'post',
|
113
|
-
data: form.serialize(),
|
114
|
-
success:function(html, textStatus, jqXHR){
|
115
|
-
splitPane.setContentAreaHtml(html);
|
116
|
-
splitPane.refreshList();
|
117
|
-
},
|
118
|
-
error:function(jqXHR, textStatus, errorThrown){
|
119
|
-
splitPane.setContentAreaHtml(jqXHR.responseText);
|
120
|
-
}
|
121
|
-
});
|
122
|
-
}
|
123
|
-
};
|
124
|
-
|
125
|
-
var clickedRefreshButton = function(e){
|
126
|
-
e.preventDefault();
|
127
|
-
splitPane.refreshList();
|
128
9
|
};
|
129
10
|
|
130
11
|
})();
|
131
|
-
|
@@ -1,406 +1,145 @@
|
|
1
|
-
//= require
|
2
|
-
//= require datepicker/css/datepicker
|
3
|
-
//= require jquery-ui//jquery-ui
|
1
|
+
//= require jquery-ui/jquery-ui
|
4
2
|
//= require_self
|
5
|
-
//=
|
6
|
-
|
7
|
-
|
3
|
+
//= require_directory
|
4
|
+
|
5
|
+
@import "bootstrap-sprockets";
|
6
|
+
@import "bootstrap";
|
8
7
|
|
9
8
|
body {
|
10
9
|
background:#eee;
|
11
10
|
background-color:#eee;
|
12
11
|
margin: 0 0;
|
13
12
|
}
|
14
|
-
|
15
|
-
|
16
|
-
text-decoration:none;
|
17
|
-
}
|
18
|
-
.btn a:visited {
|
19
|
-
color:none;
|
20
|
-
}
|
21
|
-
a:hover {
|
22
|
-
text-decoration:underline;
|
23
|
-
}
|
24
|
-
a:hover .ui-button-text {
|
25
|
-
color:#fff;
|
26
|
-
}
|
13
|
+
|
14
|
+
// Header
|
27
15
|
#header {
|
28
|
-
position: relative;
|
29
|
-
padding: 5px 15px;
|
30
|
-
background:#fc862a;
|
31
|
-
background-image: linear-gradient(top, #fc862a 5%, #f56a0e 53%);
|
32
|
-
background-image: -o-linear-gradient(top, #fc862a 5%, #f56a0e 53%);
|
33
|
-
background-image: -moz-linear-gradient(top, #fc862a 5%, #f56a0e 53%);
|
34
|
-
background-image: -webkit-linear-gradient(top, #fc862a 5%, #f56a0e 53%);
|
35
|
-
background-image: -ms-linear-gradient(top, #fc862a 5%, #f56a0e 53%);
|
36
|
-
background-image: -webkit-gradient(
|
37
|
-
linear,
|
38
|
-
left top,
|
39
|
-
left bottom,
|
40
|
-
color-stop(0.05, #fc862a),
|
41
|
-
color-stop(0.53, #f56a0e)
|
42
|
-
);
|
43
|
-
color:#fff;
|
44
|
-
font: normal 14px/18px sans-serif;
|
45
|
-
}
|
46
|
-
#header a,
|
47
|
-
#header a:visited {
|
48
|
-
color:#eee;
|
49
|
-
font-weight:normal;
|
50
|
-
}
|
51
|
-
.production-alert-header{
|
52
16
|
padding: 5px 15px;
|
53
|
-
background: #
|
54
|
-
p{
|
55
|
-
font-size: 12px;
|
56
|
-
line-height: 16px;
|
57
|
-
margin: 0;
|
58
|
-
}
|
59
|
-
}
|
60
|
-
.greeting {
|
61
|
-
color:#fff;
|
62
|
-
}
|
63
|
-
|
64
|
-
#header #user_meta {
|
65
|
-
float: right;
|
66
|
-
}
|
67
|
-
|
68
|
-
#header h1 {
|
69
|
-
font: normal 18px/18px sans-serif;
|
17
|
+
background: #333;
|
70
18
|
color: #fff;
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
}
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
line-height:100px;
|
81
|
-
}
|
82
|
-
#breadcrumbs {
|
83
|
-
background:#fff;
|
84
|
-
height:25px;
|
85
|
-
/*border-top:1px solid rgb(200,148,72);*/
|
86
|
-
border-bottom:1px solid #999;
|
87
|
-
line-height:25px;
|
88
|
-
padding:5px 15px;
|
89
|
-
/*box-shadow: 0px 0px 10px #888;*/
|
90
|
-
|
91
|
-
}
|
92
|
-
#breadcrumbs a,
|
93
|
-
#breadcrumbs a:visited {
|
94
|
-
color:#006699;
|
95
|
-
text-decoration:none;
|
96
|
-
}
|
97
|
-
#breadcrumbs a:hover {
|
98
|
-
color:#006699;
|
99
|
-
text-decoration:underline;
|
100
|
-
}
|
101
|
-
#breadcrumbs a.active,
|
102
|
-
#breadcrumbs a.active:hover {
|
103
|
-
color:#000;
|
104
|
-
text-decoration:none;
|
105
|
-
}
|
106
|
-
|
107
|
-
#content {
|
108
|
-
padding:15px 15px;
|
19
|
+
font-size: 14px;
|
20
|
+
h1{
|
21
|
+
font: normal 18px/18px sans-serif;
|
22
|
+
color: #fff;
|
23
|
+
display: inline;
|
24
|
+
}
|
25
|
+
a{
|
26
|
+
color: white;
|
27
|
+
}
|
109
28
|
}
|
110
29
|
|
111
|
-
|
30
|
+
// Admin Apps
|
31
|
+
.admin-application {
|
112
32
|
width:150px;
|
113
33
|
background:#fff;
|
114
|
-
/*height:150px;*/
|
115
34
|
float:left;
|
116
|
-
|
117
35
|
text-align:center;
|
118
36
|
border:1px solid transparent;
|
119
37
|
border-radius:10px;
|
120
|
-
margin: 0
|
121
|
-
|
122
|
-
-webkit-user-select: none;
|
123
|
-
-khtml-user-select: none;
|
124
|
-
-moz-user-select: none;
|
125
|
-
-ms-user-select: none;
|
38
|
+
margin: 0 20px 20px 0;
|
39
|
+
position: relative;
|
126
40
|
user-select: none;
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
41
|
+
&:hover{
|
42
|
+
background:#fff;
|
43
|
+
border:1px solid #ccc;
|
44
|
+
}
|
45
|
+
a, a:visited{
|
46
|
+
display:block;
|
47
|
+
color:#000;
|
48
|
+
padding:10px 10px;
|
49
|
+
text-decoration:none;
|
50
|
+
}
|
51
|
+
img {
|
52
|
+
width: 125px;
|
53
|
+
border: none;
|
54
|
+
height: 125px;
|
55
|
+
}
|
56
|
+
.dash-icon-badge{
|
57
|
+
display: none;
|
58
|
+
position: absolute;
|
59
|
+
right: -15px;
|
60
|
+
top: -15px;
|
61
|
+
width: 36px;
|
62
|
+
height: 36px;
|
63
|
+
background: #e55137;
|
64
|
+
border-radius: 18px;
|
65
|
+
color: white;
|
66
|
+
line-height: 36px;
|
67
|
+
font-size: 15px;
|
68
|
+
}
|
145
69
|
}
|
146
70
|
|
147
|
-
|
71
|
+
// Detail
|
72
|
+
.detail-wrapper {
|
148
73
|
background:#fff;
|
149
|
-
width:960px;
|
150
74
|
min-height:300px;
|
151
75
|
border-radius:10px;
|
152
|
-
margin:
|
153
|
-
|
154
|
-
.
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
display:block;
|
161
|
-
width:50px;
|
162
|
-
height:50px;
|
163
|
-
float:left;
|
164
|
-
margin:0 10px 10px 10px;
|
165
|
-
}
|
166
|
-
.detail_wrapper h2 img {
|
167
|
-
|
168
|
-
width:100px;
|
169
|
-
|
170
|
-
|
171
|
-
}
|
172
|
-
.data_controls {
|
173
|
-
display:block;
|
174
|
-
margin-top:20px;
|
175
|
-
margin-right:10px;
|
176
|
-
float:right;
|
177
|
-
}
|
178
|
-
.data-table th {
|
179
|
-
position:relative;
|
180
|
-
padding-right:20px;
|
181
|
-
}
|
182
|
-
.data_controls{
|
183
|
-
.form-search{
|
76
|
+
margin: 0 auto 20px;
|
77
|
+
padding: 15px;
|
78
|
+
.detail-title{
|
79
|
+
margin: 0 0 15px;
|
80
|
+
}
|
81
|
+
.app-thumbnail{
|
82
|
+
width: 40px;
|
83
|
+
height: 40px;
|
184
84
|
display: inline-block;
|
85
|
+
margin: 0;
|
185
86
|
}
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
}
|
192
|
-
|
193
|
-
float:left;
|
194
|
-
width:225px;
|
195
|
-
min-height:200px;
|
196
|
-
}
|
197
|
-
#detail_nav {
|
198
|
-
padding-right:5px;
|
199
|
-
}
|
200
|
-
#detail_main_wrapper {
|
201
|
-
width:705px;
|
202
|
-
min-height:200px;
|
203
|
-
float:left;
|
87
|
+
.data-controls{
|
88
|
+
float: right;
|
89
|
+
}
|
90
|
+
.pagination{
|
91
|
+
margin-bottom: 0;
|
92
|
+
}
|
93
|
+
.details{
|
204
94
|
|
205
|
-
}
|
206
|
-
#detail_main {
|
207
|
-
padding-left:5px;
|
95
|
+
}
|
208
96
|
}
|
209
97
|
|
210
|
-
|
98
|
+
// Forms
|
211
99
|
div.field_with_errors {
|
212
|
-
|
100
|
+
display: inline;
|
213
101
|
}
|
214
|
-
.
|
215
|
-
|
216
|
-
color:#F00;
|
217
|
-
margin-left:100px;
|
102
|
+
div.field_with_errors label, .form-field-error, .form-errors {
|
103
|
+
color: crimson;
|
218
104
|
}
|
219
|
-
|
220
|
-
|
105
|
+
.date-select{
|
106
|
+
&.form-control{
|
107
|
+
display: inline-block;
|
108
|
+
}
|
109
|
+
&.year{
|
110
|
+
width: 20%
|
111
|
+
}
|
112
|
+
&.month{
|
113
|
+
width: 35%
|
114
|
+
}
|
115
|
+
&.day{
|
116
|
+
width: 20%
|
117
|
+
}
|
118
|
+
}
|
119
|
+
.datetime-select{
|
120
|
+
&.form-control{
|
121
|
+
display: inline-block;
|
122
|
+
}
|
123
|
+
&.year{
|
124
|
+
width: 20%;
|
125
|
+
}
|
126
|
+
&.month{
|
127
|
+
width: 22.3%;
|
128
|
+
}
|
129
|
+
&.day, &.hour, &.minute{
|
130
|
+
width: 15%;
|
131
|
+
}
|
221
132
|
}
|
222
133
|
|
223
|
-
|
224
|
-
/*Table Layout*/
|
134
|
+
// Tables
|
225
135
|
td.no-wrap{
|
226
136
|
white-space: nowrap;
|
227
137
|
}
|
228
|
-
.
|
229
|
-
|
230
|
-
|
231
|
-
border-radius:10px;
|
232
|
-
border-collapse:collapse;
|
233
|
-
}
|
234
|
-
.admin-table thead tr{
|
235
|
-
background:#424242;
|
236
|
-
color:#fff;
|
237
|
-
|
238
|
-
border-radius:10px 10px 0 0;
|
239
|
-
}
|
240
|
-
.admin-table th {
|
241
|
-
font-weight:normal;
|
242
|
-
text-align:left;
|
243
|
-
padding: 5px 10px;
|
244
|
-
}
|
245
|
-
.admin-table td {
|
246
|
-
vertical-align:top;
|
247
|
-
padding: 5px 10px;
|
248
|
-
}
|
249
|
-
.admin-table tbody tr{
|
250
|
-
-webkit-transition: background 0.1s ease-in;
|
251
|
-
-moz-transition: background 0.1s ease-in;
|
252
|
-
}
|
253
|
-
.admin-table tbody tr:nth-child(even){
|
254
|
-
background: #f1f1f1;
|
255
|
-
}
|
256
|
-
.admin-table tbody tr:hover{
|
257
|
-
background: #FFEDDF;
|
258
|
-
}
|
259
|
-
.admin-table tbody tr:nth-child(even):hover{
|
260
|
-
background: #FAE7D9;
|
261
|
-
}
|
262
|
-
|
263
|
-
.admin-table th .current {
|
264
|
-
padding-right: 12px;
|
265
|
-
background-repeat: no-repeat;
|
266
|
-
background-position: right center;
|
267
|
-
}
|
268
|
-
.admin-table th a, .admin-table th a:visited {
|
269
|
-
color:#fff;
|
270
|
-
}
|
271
|
-
|
272
|
-
.admin-table th a:hover {
|
273
|
-
text-decoration: none;
|
274
|
-
}
|
275
|
-
|
276
|
-
.admin-table th .asc {
|
277
|
-
background-image: image-url("admin/up_arrow.gif");
|
278
|
-
}
|
279
|
-
|
280
|
-
.admin-table th .desc {
|
281
|
-
background-image: image-url("admin/down_arrow.gif");
|
282
|
-
}
|
283
|
-
|
284
|
-
|
285
|
-
.info_card {
|
286
|
-
width:400px;
|
287
|
-
padding:0 10px;
|
288
|
-
margin:0 auto;
|
289
|
-
border: 1px solid #BFBAB0;
|
290
|
-
background-color: #F2EFE9;
|
291
|
-
background: #F2EFE9 -webkit-gradient(linear, left top, left 60%, from(#FFFFFF), to(#E9EFF2)) ;
|
292
|
-
background: -moz-linear-gradient(top, #FFFFFF 0%, #E9EFF2 100%);
|
293
|
-
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffFFFFFF,endColorstr=#ffE9EFF2);
|
294
|
-
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffFFFFFF,endColorstr=#ffE9EFF2)";
|
295
|
-
}
|
296
|
-
.right_floated{
|
297
|
-
float:right;
|
298
|
-
}
|
299
|
-
.left_floated {
|
300
|
-
float:left;
|
301
|
-
}
|
302
|
-
.edit_controls {
|
303
|
-
float:right;
|
304
|
-
clear:both;
|
305
|
-
padding:2px;
|
306
|
-
}
|
307
|
-
.page_list
|
308
|
-
{
|
309
|
-
border-top:1px solid #eee;
|
310
|
-
padding-top:10px;
|
311
|
-
}
|
312
|
-
.page_row {
|
313
|
-
clear:both;
|
314
|
-
/*height:42px;*/
|
315
|
-
line-height:42px;
|
316
|
-
padding-left:5px;
|
317
|
-
}
|
318
|
-
.page_row:hover {
|
319
|
-
background:#eee;
|
320
|
-
}
|
321
|
-
.left_guide {
|
322
|
-
border-left:2px solid #999;
|
323
|
-
margin-left:20px;
|
324
|
-
}
|
325
|
-
.formtab_buttons li {
|
326
|
-
width:auto;
|
327
|
-
clear:none;
|
328
|
-
}
|
329
|
-
.formtab label {
|
330
|
-
float:none;
|
331
|
-
margin:0;
|
332
|
-
}
|
333
|
-
.formtab {
|
334
|
-
width:910px;
|
335
|
-
padding: 0 0 !important;
|
336
|
-
overflow-y:visible;
|
337
|
-
}
|
338
|
-
.formtab textarea {
|
339
|
-
width:910px;
|
340
|
-
|
341
|
-
margin: 0 0;
|
342
|
-
height:200px;
|
343
|
-
}
|
344
|
-
form h2 {
|
345
|
-
line-height:20px !important;
|
346
|
-
height:20px;
|
347
|
-
}
|
348
|
-
|
349
|
-
form input.full-width {
|
350
|
-
display: block;
|
351
|
-
width: 99%;
|
352
|
-
}
|
353
|
-
/* Pagination
|
354
|
-
--------------- */
|
355
|
-
.spud_admin_pagination{
|
356
|
-
margin: 10px 0;
|
357
|
-
overflow: hidden;
|
358
|
-
}
|
359
|
-
.spud_admin_pagination .pagination{
|
360
|
-
float: right;
|
361
|
-
}
|
362
|
-
|
363
|
-
/*Retina CSS*/
|
364
|
-
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
|
365
|
-
only screen and (-o-min-device-pixel-ratio: 3/2),
|
366
|
-
only screen and (min--moz-device-pixel-ratio: 1.5),
|
367
|
-
only screen and (min-device-pixel-ratio: 1.5) {
|
368
|
-
|
369
|
-
}
|
370
|
-
|
371
|
-
.footer {
|
372
|
-
clear:both;
|
373
|
-
margin-top:10px;
|
374
|
-
position:absolute;
|
375
|
-
text-align:right;
|
376
|
-
font-size:.8em;
|
377
|
-
right:10px;
|
378
|
-
height:10px;
|
379
|
-
bottom:10px;
|
380
|
-
}
|
381
|
-
|
382
|
-
/* Modal Dialogs
|
383
|
-
---------------*/
|
384
|
-
#modal_window .form-actions-no-modal{
|
385
|
-
display: none;
|
138
|
+
td.table-actions{
|
139
|
+
white-space: nowrap;
|
140
|
+
text-align: right;
|
386
141
|
}
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
position: relative;
|
391
|
-
.dash_icon_badge {
|
392
|
-
display: none;
|
393
|
-
position: absolute;
|
394
|
-
right: -28px;
|
395
|
-
top: -28px;
|
396
|
-
width: 40px;
|
397
|
-
height: 40px;
|
398
|
-
background: #e55137;
|
399
|
-
-moz-border-radius: 70px;
|
400
|
-
-webkit-border-radius: 20px;
|
401
|
-
border-radius: 20px;
|
402
|
-
color: white;
|
403
|
-
line-height: 36px;
|
404
|
-
font-size: 15px;
|
405
|
-
}
|
142
|
+
.table .nesting-spacer{
|
143
|
+
display: inline-block;
|
144
|
+
width: 5%;
|
406
145
|
}
|