adminsite 2.0.0
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.
- checksums.yaml +7 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +209 -0
- data/MIT-LICENSE +20 -0
- data/README.markdown +122 -0
- data/Rakefile +14 -0
- data/USAGE +18 -0
- data/VERSION +1 -0
- data/app/admin_configs/adminsite/adminsite_admin_user_admin_config.rb +43 -0
- data/app/admin_configs/adminsite/adminsite_file_asset_admin_config.rb +32 -0
- data/app/admin_configs/adminsite/adminsite_page_admin_config.rb +46 -0
- data/app/admin_configs/adminsite/adminsite_page_layout_admin_config.rb +31 -0
- data/app/assets/images/adminsite/admin/accept.png +0 -0
- data/app/assets/images/adminsite/admin/add.png +0 -0
- data/app/assets/images/adminsite/admin/arrow_left.png +0 -0
- data/app/assets/images/adminsite/admin/arrow_refresh.png +0 -0
- data/app/assets/images/adminsite/admin/arrow_up.png +0 -0
- data/app/assets/images/adminsite/admin/cross.png +0 -0
- data/app/assets/images/adminsite/admin/logo.gif +0 -0
- data/app/assets/images/adminsite/admin/logo.png +0 -0
- data/app/assets/images/adminsite/admin/magnifier.png +0 -0
- data/app/assets/images/adminsite/admin/newspaper_add.png +0 -0
- data/app/assets/images/adminsite/admin/newspaper_delete.png +0 -0
- data/app/assets/images/adminsite/admin/openid-icon-small.gif +0 -0
- data/app/assets/images/adminsite/admin/page_white_magnify.png +0 -0
- data/app/assets/images/adminsite/admin/pencil.png +0 -0
- data/app/assets/images/adminsite/admin/rails.png +0 -0
- data/app/assets/images/adminsite/admin/reorder.gif +0 -0
- data/app/assets/images/adminsite/admin/spinner.gif +0 -0
- data/app/assets/javascripts/adminsite/admin.js +13 -0
- data/app/assets/javascripts/adminsite/admin/code_editor.js.coffee +40 -0
- data/app/assets/javascripts/adminsite/admin/hide_and_show.js +26 -0
- data/app/assets/stylesheets/adminsite/admin.scss +16 -0
- data/app/assets/stylesheets/adminsite/admin/base.scss +521 -0
- data/app/assets/stylesheets/adminsite/admin/code_editor.scss +29 -0
- data/app/assets/stylesheets/adminsite/admin/pagination.scss +28 -0
- data/app/controllers/adminsite/admin/adminsite_admin_users_controller.rb +21 -0
- data/app/controllers/adminsite/admin/adminsite_file_assets_controller.rb +57 -0
- data/app/controllers/adminsite/admin/adminsite_page_layouts_controller.rb +41 -0
- data/app/controllers/adminsite/admin/adminsite_pages_controller.rb +40 -0
- data/app/controllers/adminsite/admin/base_controller.rb +16 -0
- data/app/controllers/adminsite/admin/crud_controller.rb +27 -0
- data/app/controllers/adminsite/admin/iframe_controller.rb +28 -0
- data/app/controllers/adminsite/admin/resources_controller.rb +148 -0
- data/app/controllers/adminsite/admin_application_controller.rb +9 -0
- data/app/controllers/adminsite/admin_user_sessions_controller.rb +5 -0
- data/app/controllers/adminsite/contents_controller.rb +88 -0
- data/app/helpers/admin/adminsite_application_helper.rb +174 -0
- data/app/helpers/admin_application_helper.rb +3 -0
- data/app/models/adminsite/admin_config/base.rb +100 -0
- data/app/models/adminsite/admin_user.rb +10 -0
- data/app/models/adminsite/file_asset.rb +22 -0
- data/app/models/adminsite/page.rb +59 -0
- data/app/models/adminsite/page_layout.rb +9 -0
- data/app/views/adminsite/admin/adminsite_file_assets/index.html.haml +39 -0
- data/app/views/adminsite/admin/adminsite_page_layouts/edit.html.haml +5 -0
- data/app/views/adminsite/admin/adminsite_page_layouts/index.html.haml +9 -0
- data/app/views/adminsite/admin/adminsite_page_layouts/new.html.haml +5 -0
- data/app/views/adminsite/admin/adminsite_pages/edit.html.haml +5 -0
- data/app/views/adminsite/admin/adminsite_pages/index.html.haml +16 -0
- data/app/views/adminsite/admin/adminsite_pages/new.html.haml +5 -0
- data/app/views/adminsite/admin/crud/index.html.haml +4 -0
- data/app/views/adminsite/admin/crud/show.html.haml +15 -0
- data/app/views/adminsite/admin/iframe/index.haml +14 -0
- data/app/views/adminsite/admin/resources/_form.haml +6 -0
- data/app/views/adminsite/admin/resources/_list.haml +18 -0
- data/app/views/adminsite/admin/resources/_search_form.html.haml +41 -0
- data/app/views/adminsite/admin/resources/edit.haml +13 -0
- data/app/views/adminsite/admin/resources/index.haml +13 -0
- data/app/views/adminsite/admin/resources/new.haml +14 -0
- data/app/views/adminsite/admin/resources/show.haml +15 -0
- data/app/views/adminsite/admin/shared/_admin_menu.html.haml +6 -0
- data/app/views/adminsite/admin/shared/_content_menu.html.haml +4 -0
- data/app/views/adminsite/admin/shared/_page_assets_list.html.haml +6 -0
- data/app/views/adminsite/admin/shared/_syntax_help.html.haml +24 -0
- data/app/views/adminsite/admin_user_sessions/new.html.haml +14 -0
- data/app/views/layouts/adminsite/admin.html.haml +31 -0
- data/config/initializers/adminsite_constants.rb +2 -0
- data/config/initializers/assets.rb +7 -0
- data/config/initializers/devise.rb +265 -0
- data/config/initializers/filter_parameter_logging.rb +4 -0
- data/config/initializers/paperclip.rb +15 -0
- data/config/initializers/time_formats.rb +1 -0
- data/config/locales/da.devise.yaml +57 -0
- data/config/locales/da.yaml +199 -0
- data/config/locales/en.devise.yaml +60 -0
- data/config/locales/en.yaml +205 -0
- data/config/routes.rb +17 -0
- data/db/migrate/20101007000000_create_admin.rb +59 -0
- data/db/migrate/20101007000001_create_cms_tables.rb +39 -0
- data/lib/adminsite.rb +28 -0
- data/lib/adminsite/configuration.rb +15 -0
- data/lib/adminsite/engine.rb +30 -0
- data/lib/adminsite/liquid/tags/asset.rb +70 -0
- data/lib/adminsite/version.rb +3 -0
- data/lib/generators/adminsite/add_dashboard/add_dashboard_generator.rb +34 -0
- data/lib/generators/adminsite/add_dashboard/templates/controllers/admin_dashboard_controller.rb +13 -0
- data/lib/generators/adminsite/add_dashboard/templates/views/index.html.haml +6 -0
- data/lib/generators/adminsite/add_iframe/add_iframe_generator.rb +42 -0
- data/lib/generators/adminsite/add_iframe/templates/controllers/admin_iframe_controller.rb +16 -0
- data/lib/generators/adminsite/add_resource/USAGE +0 -0
- data/lib/generators/adminsite/add_resource/add_resource_generator.rb +40 -0
- data/lib/generators/adminsite/add_resource/templates/admin_configs/resource_admin_config.rb +47 -0
- data/lib/generators/adminsite/add_resource/templates/controllers/admin_resource_controller.rb +19 -0
- data/lib/generators/adminsite/install/USAGE +13 -0
- data/lib/generators/adminsite/install/install_generator.rb +51 -0
- data/lib/generators/adminsite/install/templates/assets/adminsite.js +17 -0
- data/lib/generators/adminsite/install/templates/assets/adminsite.scss +14 -0
- data/lib/generators/adminsite/install/templates/config/locales/adminsite.da.yml +4 -0
- data/lib/generators/adminsite/install/templates/config/locales/adminsite.en.yml +6 -0
- data/lib/generators/adminsite/install/templates/recipes/application.rb +18 -0
- data/lib/generators/adminsite/install/templates/views/_admin_menu.html.haml +8 -0
- data/lib/recipes/adminsite.rb +82 -0
- data/lib/tasks/adminsite.rake +147 -0
- metadata +384 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Adminsite
|
|
2
|
+
class AdminsiteFileAssetAdminConfig < Adminsite::AdminConfig::Base
|
|
3
|
+
|
|
4
|
+
def attributes_index
|
|
5
|
+
[ 'attachment.url',
|
|
6
|
+
'attachment_file_name',
|
|
7
|
+
'attachment_file_size',
|
|
8
|
+
'updated_at',
|
|
9
|
+
]
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def attributes_show
|
|
13
|
+
['attachment.url'] + attributes_edit
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def actions_index
|
|
17
|
+
[ ]
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def attributes_search
|
|
21
|
+
attributes_index
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def default_member_actions
|
|
25
|
+
[ :show, :destroy ]
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def label_attribute
|
|
29
|
+
:attachment_file_name
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
module Adminsite
|
|
2
|
+
class AdminsitePageAdminConfig < Adminsite::AdminConfig::Base
|
|
3
|
+
|
|
4
|
+
def attributes_index
|
|
5
|
+
[ :title,
|
|
6
|
+
:url,
|
|
7
|
+
:requires_login,
|
|
8
|
+
:cacheable,
|
|
9
|
+
:page_layout_id,
|
|
10
|
+
:updated_at
|
|
11
|
+
]
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def attributes_edit
|
|
15
|
+
[ :title,
|
|
16
|
+
:url,
|
|
17
|
+
:requires_login,
|
|
18
|
+
:cacheable,
|
|
19
|
+
:page_layout,
|
|
20
|
+
:body => {:input_html => {:class => 'code html'}}
|
|
21
|
+
]
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def attributes_show
|
|
25
|
+
attributes_edit
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def attributes_search
|
|
29
|
+
attributes_index
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def default_member_actions
|
|
33
|
+
[ :edit,
|
|
34
|
+
:destroy]
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def label_attribute
|
|
38
|
+
:title
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def scopes
|
|
42
|
+
[:all, :cacheable, :requires_login ]
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
module Adminsite
|
|
2
|
+
class AdminsitePageLayoutAdminConfig < Adminsite::AdminConfig::Base
|
|
3
|
+
|
|
4
|
+
def attributes_index
|
|
5
|
+
[ :id,
|
|
6
|
+
:title,
|
|
7
|
+
:updated_at
|
|
8
|
+
]
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def attributes_edit
|
|
12
|
+
[ :title,
|
|
13
|
+
:body => {:input_html => {:class => 'code html'}}
|
|
14
|
+
]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def default_member_actions
|
|
18
|
+
[ :edit,
|
|
19
|
+
:destroy]
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def attributes_search
|
|
23
|
+
attributes_index
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def label_attribute
|
|
27
|
+
:title
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
end
|
|
31
|
+
end
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
+
// listed below.
|
|
3
|
+
//
|
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
|
6
|
+
//
|
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
+
// compiled file.
|
|
9
|
+
//
|
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
|
11
|
+
// about supported directives.
|
|
12
|
+
//
|
|
13
|
+
//= require_tree ./admin
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//= require codemirror
|
|
2
|
+
//= require codemirror/modes/ruby
|
|
3
|
+
//= require codemirror/modes/haml
|
|
4
|
+
//= require codemirror/modes/xml
|
|
5
|
+
//= require codemirror/modes/htmlembedded
|
|
6
|
+
//= require codemirror/modes/htmlmixed
|
|
7
|
+
//= require codemirror/modes/javascript
|
|
8
|
+
//= require codemirror/modes/yaml
|
|
9
|
+
//= require codemirror/addons/dialog/dialog
|
|
10
|
+
//= require codemirror/addons/edit/closebrackets
|
|
11
|
+
//= require codemirror/addons/edit/closetag
|
|
12
|
+
//= require codemirror/addons/edit/matchbrackets
|
|
13
|
+
//= require codemirror/addons/edit/matchtags
|
|
14
|
+
//= require codemirror/addons/edit/trailingspace
|
|
15
|
+
|
|
16
|
+
class window.B56Admin
|
|
17
|
+
|
|
18
|
+
B56Admin.initCodeEditor = ->
|
|
19
|
+
$("body.adminsite textarea.code.html").each ->
|
|
20
|
+
CodeMirror.fromTextArea $(this)[0],
|
|
21
|
+
mode: "text/html"
|
|
22
|
+
autoCloseTags: true
|
|
23
|
+
lineNumbers: true
|
|
24
|
+
return
|
|
25
|
+
|
|
26
|
+
$("body.adminsite textarea.code.ruby").each ->
|
|
27
|
+
CodeMirror.fromTextArea $(this)[0],
|
|
28
|
+
mode: "ruby"
|
|
29
|
+
lineNumbers: true
|
|
30
|
+
return
|
|
31
|
+
|
|
32
|
+
$("body.adminsite textarea.code.js").each ->
|
|
33
|
+
CodeMirror.fromTextArea $(this)[0],
|
|
34
|
+
mode: "text/javascript"
|
|
35
|
+
matchBrackets: true
|
|
36
|
+
autoCloseBrackets: true
|
|
37
|
+
lineNumbers: true
|
|
38
|
+
return
|
|
39
|
+
|
|
40
|
+
$(document).on('page:change', B56Admin.initCodeEditor)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
function selectedRow (param){
|
|
2
|
+
var param_parent = $(param);
|
|
3
|
+
var checkbox = param_parent.find('input.collection_selection')
|
|
4
|
+
param_parent.toggleClass("selected");
|
|
5
|
+
|
|
6
|
+
if (param_parent.hasClass("selected") )
|
|
7
|
+
{ checkbox.prop('checked','checked'); }
|
|
8
|
+
else
|
|
9
|
+
{ checkbox.prop('checked',null); }
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function showSearchForm(){
|
|
13
|
+
$(".search_form form").show();
|
|
14
|
+
$(".search_form a#show").hide();
|
|
15
|
+
$(".search_form a#hide").show();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function hideSearchForm(){
|
|
19
|
+
$(".search_form form").hide();
|
|
20
|
+
$(".search_form a#show").show();
|
|
21
|
+
$(".search_form a#hide").hide();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
+
* listed below.
|
|
4
|
+
*
|
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
|
7
|
+
*
|
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any styles
|
|
10
|
+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
|
11
|
+
* file per style scope.
|
|
12
|
+
*
|
|
13
|
+
*= require formtastic
|
|
14
|
+
*= require_tree ./admin
|
|
15
|
+
*/
|
|
16
|
+
|
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
body.adminsite {
|
|
2
|
+
font: 13px/1.231 sans-serif;
|
|
3
|
+
*font-size: small;
|
|
4
|
+
|
|
5
|
+
&, input, select, textarea, button {
|
|
6
|
+
margin: 0;
|
|
7
|
+
font-family: 'Helvetica Neue', Arial, sans-serif;
|
|
8
|
+
color: #222222;
|
|
9
|
+
}
|
|
10
|
+
select, input, textarea, button {
|
|
11
|
+
font: 99% sans-serif;
|
|
12
|
+
}
|
|
13
|
+
pre, code, kbd, samp {
|
|
14
|
+
font-family: monospace, sans-serif;
|
|
15
|
+
}
|
|
16
|
+
::-moz-selection, ::selection {
|
|
17
|
+
background: #FF5E99;
|
|
18
|
+
color: #fff;
|
|
19
|
+
text-shadow: none;
|
|
20
|
+
}
|
|
21
|
+
a {
|
|
22
|
+
&:hover, &:active {
|
|
23
|
+
outline: none;
|
|
24
|
+
}
|
|
25
|
+
&:hover img {
|
|
26
|
+
background: #fff;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
#error {
|
|
30
|
+
width: 340px;
|
|
31
|
+
border: #990000 solid 1px;
|
|
32
|
+
background-color: #bf1b17;
|
|
33
|
+
color: #ffffff;
|
|
34
|
+
padding: 8px;
|
|
35
|
+
margin-bottom: 8px;
|
|
36
|
+
}
|
|
37
|
+
#flashnotice, #flasherror {
|
|
38
|
+
padding: 6px 20px;
|
|
39
|
+
color: #ffffff;
|
|
40
|
+
font-weight: bold;
|
|
41
|
+
}
|
|
42
|
+
#flashnotice {
|
|
43
|
+
background: #99CC00;
|
|
44
|
+
}
|
|
45
|
+
#flasherror {
|
|
46
|
+
background: #ff5555;
|
|
47
|
+
}
|
|
48
|
+
#notice {
|
|
49
|
+
width: 340px;
|
|
50
|
+
border: #519032 solid 1px;
|
|
51
|
+
background-color: #d6ffd1;
|
|
52
|
+
color: #333333;
|
|
53
|
+
padding: 8px;
|
|
54
|
+
margin-bottom: 8px;
|
|
55
|
+
}
|
|
56
|
+
#wrapper {
|
|
57
|
+
overflow: auto;
|
|
58
|
+
margin-left: 20px;
|
|
59
|
+
margin-right: 20px;
|
|
60
|
+
}
|
|
61
|
+
hr {
|
|
62
|
+
border: dashed black;
|
|
63
|
+
border-width: 1px 0 0;
|
|
64
|
+
height: 0;
|
|
65
|
+
}
|
|
66
|
+
#header {
|
|
67
|
+
margin: 0;
|
|
68
|
+
clear: both;
|
|
69
|
+
padding: 20px;
|
|
70
|
+
bottom: 40px;
|
|
71
|
+
background-color: #e7e7e7;
|
|
72
|
+
background: -moz-linear-gradient(bottom, #fff, #f0f0f0 17%, #fff 18%, #c0c0c0 19%, #e7e7e7 20%, #e7e7e7);
|
|
73
|
+
background: -webkit-gradient(linear, left bottom, left top, from(#fff), color-stop(17%, #f0f0f0), color-stop(18%, #fff), color-stop(19%, #c0c0c0), color-stop(20%, #e7e7e7), to(#e7e7e7));
|
|
74
|
+
border-top: 6px solid #595959;
|
|
75
|
+
}
|
|
76
|
+
#header_left {
|
|
77
|
+
float: left;
|
|
78
|
+
h2 {
|
|
79
|
+
font-size: 135%;
|
|
80
|
+
margin: 0;
|
|
81
|
+
padding: 0;
|
|
82
|
+
}
|
|
83
|
+
a:hover img {
|
|
84
|
+
background: #e7e7e7;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
#header_right {
|
|
88
|
+
float: left;
|
|
89
|
+
clear: left;
|
|
90
|
+
font-size: 85%;
|
|
91
|
+
margin-top: 0.2em;
|
|
92
|
+
a {
|
|
93
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
94
|
+
background-repeat: no-repeat;
|
|
95
|
+
background-position: left center;
|
|
96
|
+
border-radius: 4px;
|
|
97
|
+
-moz-border-radius: 4px;
|
|
98
|
+
-webkit-border-radius: 4px;
|
|
99
|
+
display: block;
|
|
100
|
+
float: left;
|
|
101
|
+
margin-right: 0.5em;
|
|
102
|
+
padding: 0.2em;
|
|
103
|
+
text-decoration: none;
|
|
104
|
+
&:hover {
|
|
105
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
106
|
+
}
|
|
107
|
+
&.add, &.back {
|
|
108
|
+
padding-left: 18px;
|
|
109
|
+
}
|
|
110
|
+
&.add {
|
|
111
|
+
background-image: asset-url('adminsite/admin/add.png');
|
|
112
|
+
}
|
|
113
|
+
&.back {
|
|
114
|
+
background-image: asset-url('adminsite/admin/arrow_left.png');
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
.clearfix {
|
|
119
|
+
zoom: 1;
|
|
120
|
+
&:before {
|
|
121
|
+
content: "\0020";
|
|
122
|
+
display: block;
|
|
123
|
+
height: 0;
|
|
124
|
+
visibility: hidden;
|
|
125
|
+
}
|
|
126
|
+
&:after {
|
|
127
|
+
content: "\0020";
|
|
128
|
+
display: block;
|
|
129
|
+
height: 0;
|
|
130
|
+
visibility: hidden;
|
|
131
|
+
clear: both;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
#footer {
|
|
135
|
+
position: fixed;
|
|
136
|
+
border-top: 1px solid #ddd;
|
|
137
|
+
border-bottom: 10px solid #f5f5f5;
|
|
138
|
+
background: #f5f5f5;
|
|
139
|
+
width: 100%;
|
|
140
|
+
left: 0;
|
|
141
|
+
bottom: 0;
|
|
142
|
+
text-align: center;
|
|
143
|
+
color: #aaa;
|
|
144
|
+
font-size: 10px;
|
|
145
|
+
z-index: 10000;
|
|
146
|
+
opacity: 0.9;
|
|
147
|
+
margin-top: 100px;
|
|
148
|
+
}
|
|
149
|
+
pre {
|
|
150
|
+
background-color: #eee;
|
|
151
|
+
padding: 10px;
|
|
152
|
+
font-size: 11px;
|
|
153
|
+
}
|
|
154
|
+
a {
|
|
155
|
+
color: #222;
|
|
156
|
+
&:hover {
|
|
157
|
+
color: #fff;
|
|
158
|
+
background-color: #000;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
.fieldWithErrors {
|
|
162
|
+
padding: 2px;
|
|
163
|
+
background-color: red;
|
|
164
|
+
display: table;
|
|
165
|
+
}
|
|
166
|
+
#errorExplanation {
|
|
167
|
+
width: 400px;
|
|
168
|
+
border: 2px solid red;
|
|
169
|
+
padding: 7px;
|
|
170
|
+
padding-bottom: 12px;
|
|
171
|
+
margin-bottom: 20px;
|
|
172
|
+
background-color: #f0f0f0;
|
|
173
|
+
h2 {
|
|
174
|
+
text-align: left;
|
|
175
|
+
font-weight: bold;
|
|
176
|
+
padding: 5px 5px 5px 15px;
|
|
177
|
+
font-size: 12px;
|
|
178
|
+
margin: -7px;
|
|
179
|
+
background-color: #c00;
|
|
180
|
+
color: #fff;
|
|
181
|
+
}
|
|
182
|
+
p {
|
|
183
|
+
color: #333;
|
|
184
|
+
margin-bottom: 0;
|
|
185
|
+
padding: 5px;
|
|
186
|
+
}
|
|
187
|
+
ul li {
|
|
188
|
+
font-size: 12px;
|
|
189
|
+
list-style: square;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
div {
|
|
193
|
+
&.uploadStatus {
|
|
194
|
+
margin: 5px;
|
|
195
|
+
}
|
|
196
|
+
&.progressBar {
|
|
197
|
+
margin: 5px;
|
|
198
|
+
div {
|
|
199
|
+
&.border {
|
|
200
|
+
background-color: #fff;
|
|
201
|
+
border: 1px solid grey;
|
|
202
|
+
width: 100%;
|
|
203
|
+
}
|
|
204
|
+
&.background {
|
|
205
|
+
background-color: #333;
|
|
206
|
+
height: 18px;
|
|
207
|
+
width: 0%;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
.shipped {
|
|
213
|
+
text-decoration: line-through;
|
|
214
|
+
}
|
|
215
|
+
/* MENU */
|
|
216
|
+
.menu ul {
|
|
217
|
+
list-style: none;
|
|
218
|
+
margin: 0;
|
|
219
|
+
padding: 0;
|
|
220
|
+
li {
|
|
221
|
+
float: left;
|
|
222
|
+
margin: 0;
|
|
223
|
+
margin-right: 0.5em;
|
|
224
|
+
padding: 0;
|
|
225
|
+
a {
|
|
226
|
+
color: #666;
|
|
227
|
+
border-color: #aaa;
|
|
228
|
+
border-style: solid;
|
|
229
|
+
background-color: #efefef;
|
|
230
|
+
display: block;
|
|
231
|
+
margin: 0;
|
|
232
|
+
padding: 0.2em 0.5em;
|
|
233
|
+
text-decoration: none;
|
|
234
|
+
&:hover {
|
|
235
|
+
color: #000;
|
|
236
|
+
background-color: #cfcfcf;
|
|
237
|
+
}
|
|
238
|
+
&.active:hover {
|
|
239
|
+
background-color: #cfcfcf;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
&.active a, &.current a {
|
|
243
|
+
background-color: #cfcfcf;
|
|
244
|
+
}
|
|
245
|
+
&.log_out a {
|
|
246
|
+
border-color: red;
|
|
247
|
+
background-color: #dc1515;
|
|
248
|
+
&:hover {
|
|
249
|
+
background-color: #f00006;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
#admin_menu {
|
|
256
|
+
background: #ffffff;
|
|
257
|
+
float: right;
|
|
258
|
+
position: absolute;
|
|
259
|
+
right: 0;
|
|
260
|
+
top: 0;
|
|
261
|
+
ul {
|
|
262
|
+
float: left;
|
|
263
|
+
li a {
|
|
264
|
+
border-top-width: 0px;
|
|
265
|
+
border-left-width: 1px;
|
|
266
|
+
border-right-width: 1px;
|
|
267
|
+
border-bottom-width: 1px;
|
|
268
|
+
|
|
269
|
+
border-radius: 0 0 4px 4px;
|
|
270
|
+
-moz-border-radius: 0 0 4px 4px;
|
|
271
|
+
-webkit-border-radius: 0 0 4px 4px;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
#content_menu {
|
|
277
|
+
background: #ffffff;
|
|
278
|
+
float: left;
|
|
279
|
+
margin: 0 20px;
|
|
280
|
+
ul {
|
|
281
|
+
float: left;
|
|
282
|
+
li a {
|
|
283
|
+
border-top-width: 1px;
|
|
284
|
+
border-left-width: 1px;
|
|
285
|
+
border-right-width: 1px;
|
|
286
|
+
border-bottom-width: 0px;
|
|
287
|
+
|
|
288
|
+
border-radius: 4px 4px 0 0 ;
|
|
289
|
+
-moz-border-radius: 4px 4px 0 0;
|
|
290
|
+
-webkit-border-radius: 4px 4px 0 0;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
img {
|
|
296
|
+
border: 0;
|
|
297
|
+
max-height: 50px;
|
|
298
|
+
text-decoration: none;
|
|
299
|
+
}
|
|
300
|
+
.notice {
|
|
301
|
+
border: 1px solid #090;
|
|
302
|
+
padding: 6px;
|
|
303
|
+
background: #9f9;
|
|
304
|
+
margin-bottom: 10px;
|
|
305
|
+
img {
|
|
306
|
+
vertical-align: bottom;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
#header_right img {
|
|
310
|
+
vertical-align: bottom;
|
|
311
|
+
}
|
|
312
|
+
#newsletter_form, #newsletter_issues, #newsletter_graphics {
|
|
313
|
+
border: 1px dotted #888;
|
|
314
|
+
float: left;
|
|
315
|
+
padding: 10px;
|
|
316
|
+
margin-right: 10px;
|
|
317
|
+
margin-bottom: 10px;
|
|
318
|
+
}
|
|
319
|
+
h1 {
|
|
320
|
+
background: asset-url("adminsite/admin/logo.png") no-repeat;
|
|
321
|
+
font-size: 135%;
|
|
322
|
+
font-weight: normal;
|
|
323
|
+
padding-left: 124px;
|
|
324
|
+
min-height: 34px;
|
|
325
|
+
margin: 20px;
|
|
326
|
+
}
|
|
327
|
+
#page-assets-list, #syntax-help {
|
|
328
|
+
width: 290px;
|
|
329
|
+
padding: 20px;
|
|
330
|
+
float: left;
|
|
331
|
+
margin: 10px;
|
|
332
|
+
background-color: #eeeeee;
|
|
333
|
+
}
|
|
334
|
+
.clear {
|
|
335
|
+
clear: both;
|
|
336
|
+
}
|
|
337
|
+
table {
|
|
338
|
+
margin: 0 0 1em;
|
|
339
|
+
border: 1px solid #cccccc;
|
|
340
|
+
border-collapse: collapse;
|
|
341
|
+
caption {
|
|
342
|
+
white-space: nowrap;
|
|
343
|
+
caption-side: top;
|
|
344
|
+
padding: 0.2em 0.4em;
|
|
345
|
+
font-weight: bold;
|
|
346
|
+
}
|
|
347
|
+
tr:nth-child(even) {background: #FFF}
|
|
348
|
+
tr:nth-child(odd) {background: #f4f5f5}
|
|
349
|
+
|
|
350
|
+
th, td {
|
|
351
|
+
border: 1px solid #cccccc;
|
|
352
|
+
padding: 0.2em 0.4em;
|
|
353
|
+
}
|
|
354
|
+
th {
|
|
355
|
+
background: #cccccc;
|
|
356
|
+
color: #000000;
|
|
357
|
+
text-align: left;
|
|
358
|
+
font-weight: normal;
|
|
359
|
+
font-variant: small-caps;
|
|
360
|
+
}
|
|
361
|
+
tr.old td {
|
|
362
|
+
opacity: 0.5;
|
|
363
|
+
border-color: #e6e6e6;
|
|
364
|
+
}
|
|
365
|
+
&.statistics {
|
|
366
|
+
td {
|
|
367
|
+
text-align: right;
|
|
368
|
+
}
|
|
369
|
+
tr {
|
|
370
|
+
&.nil {
|
|
371
|
+
th, td {
|
|
372
|
+
background-color: #ffbbbb;
|
|
373
|
+
color: #999999;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
&.total td {
|
|
377
|
+
background-color: #bbbbff;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
form {
|
|
384
|
+
&#loginform, &#new_admin_session {
|
|
385
|
+
margin-left: 8px;
|
|
386
|
+
padding: 0.9em;
|
|
387
|
+
font-weight: normal;
|
|
388
|
+
-moz-border-radius: 11px;
|
|
389
|
+
-khtml-border-radius: 11px;
|
|
390
|
+
-webkit-border-radius: 11px;
|
|
391
|
+
border-radius: 5px;
|
|
392
|
+
background: #fff;
|
|
393
|
+
border: 1px solid #e5e5e5;
|
|
394
|
+
-moz-box-shadow: #c8c8c8 0 4px 18px;
|
|
395
|
+
-webkit-box-shadow: #c8c8c8 0 4px 18px;
|
|
396
|
+
-khtml-box-shadow: #c8c8c8 0 4px 18px;
|
|
397
|
+
box-shadow: #c8c8c8 0 4px 18px;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
#login-box {
|
|
401
|
+
width: 36em;
|
|
402
|
+
margin: 7em auto 0;
|
|
403
|
+
form {
|
|
404
|
+
.submit input {
|
|
405
|
+
padding: 3px 10px;
|
|
406
|
+
font-size: 12px;
|
|
407
|
+
border: 1px solid #222;
|
|
408
|
+
-moz-border-radius: 15px;
|
|
409
|
+
-khtml-border-radius: 15px;
|
|
410
|
+
-webkit-border-radius: 15px;
|
|
411
|
+
border-radius: 15px;
|
|
412
|
+
cursor: pointer;
|
|
413
|
+
margin-top: -3px;
|
|
414
|
+
}
|
|
415
|
+
p {
|
|
416
|
+
margin-bottom: 0;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
label {
|
|
421
|
+
color: #777;
|
|
422
|
+
font-size: 13px;
|
|
423
|
+
display: block;
|
|
424
|
+
}
|
|
425
|
+
form {
|
|
426
|
+
.forgetmenot label {
|
|
427
|
+
font-size: 11px;
|
|
428
|
+
line-height: 19px;
|
|
429
|
+
}
|
|
430
|
+
.submit {
|
|
431
|
+
float: right;
|
|
432
|
+
}
|
|
433
|
+
&#loginform .submit {
|
|
434
|
+
float: none;
|
|
435
|
+
text-align: right;
|
|
436
|
+
}
|
|
437
|
+
p {
|
|
438
|
+
margin-bottom: 24px;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
#loginform {
|
|
442
|
+
#adminsite_admin_user_email, #adminsite_admin_user_password {
|
|
443
|
+
-moz-background-clip: border;
|
|
444
|
+
-moz-background-inline-policy: continuous;
|
|
445
|
+
-moz-background-origin: padding;
|
|
446
|
+
background: #FBFBFB none repeat scroll 0 0;
|
|
447
|
+
border: 1px solid #E5E5E5;
|
|
448
|
+
font-size: 24px;
|
|
449
|
+
margin-bottom: 16px;
|
|
450
|
+
margin-right: 6px;
|
|
451
|
+
margin-top: 2px;
|
|
452
|
+
padding: 3px;
|
|
453
|
+
width: 97%;
|
|
454
|
+
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
form.formtastic {
|
|
459
|
+
& > div {
|
|
460
|
+
width: 800px;
|
|
461
|
+
float: left;
|
|
462
|
+
background-color: #eee;
|
|
463
|
+
padding: 20px;
|
|
464
|
+
border: 1px solid #ccc;
|
|
465
|
+
border-radius: 5px;
|
|
466
|
+
}
|
|
467
|
+
fieldset > ol {
|
|
468
|
+
width: 800px;
|
|
469
|
+
float: left;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.search_form {
|
|
474
|
+
margin-bottom: 20px;
|
|
475
|
+
|
|
476
|
+
form > div {
|
|
477
|
+
background-color: #eee;
|
|
478
|
+
padding: 5px;
|
|
479
|
+
border: 1px solid #ccc;
|
|
480
|
+
border-radius: 5px;
|
|
481
|
+
overflow: auto;
|
|
482
|
+
.actions {
|
|
483
|
+
float: left;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
ul {
|
|
487
|
+
margin: 9px;
|
|
488
|
+
padding: 9px;
|
|
489
|
+
li
|
|
490
|
+
{
|
|
491
|
+
min-width: 100px;
|
|
492
|
+
max-width: 330px;
|
|
493
|
+
margin-bottom: 20px;
|
|
494
|
+
margin-right: 40px;
|
|
495
|
+
list-style: none;
|
|
496
|
+
float: left;
|
|
497
|
+
height: 35px;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
.actions {
|
|
501
|
+
// margin-top: 10px;
|
|
502
|
+
clear: both;
|
|
503
|
+
margin: 20px;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.select_row {
|
|
508
|
+
width: 12px;
|
|
509
|
+
height: 12px;
|
|
510
|
+
background-color: #cccccc;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
table tr.selected{
|
|
514
|
+
background-color: #d9e4ec;
|
|
515
|
+
&:nth-child(odd) {background-color: #D1DCE4}
|
|
516
|
+
.select_row {
|
|
517
|
+
background-color: rgba(117, 117, 214, 0.91);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
}
|