mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 02:44:52 +08:00
Beginning to rework the Admin markup/CSS
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041476
This commit is contained in:
@@ -58,7 +58,7 @@ font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill
|
||||
text-decoration:none;
|
||||
padding: 3px 8px 3px 8px;
|
||||
margin:20px 4px 0 4px;
|
||||
background:url(../images/tableHeaderBackground.gif) repeat-x top left #dddfcb;
|
||||
background:url(images/tableHeaderBackground.gif) repeat-x top left #dddfcb;
|
||||
border:1px solid #d2d6c6;
|
||||
color:#5a5b32;
|
||||
cursor:pointer;
|
||||
@@ -71,11 +71,11 @@ font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill
|
||||
min-width:960px;
|
||||
display:block;
|
||||
height:60px;
|
||||
background:url(../images/background_header.jpg) no-repeat bottom right #8a8f7a;
|
||||
background:url(images/background_header.jpg) no-repeat bottom right #8a8f7a;
|
||||
}
|
||||
|
||||
#hd h1 a {
|
||||
background:url(../images/orchardLogo.jpg) no-repeat;
|
||||
background:url(images/orchardLogo.jpg) no-repeat;
|
||||
float:left;
|
||||
width:105px;
|
||||
height:60px;
|
||||
@@ -116,7 +116,7 @@ font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill
|
||||
|
||||
.leftNavMod h4 {
|
||||
padding: 4px 4px 6px 8px;
|
||||
background:url(../images/tableHeaderBackground.gif) repeat-x top left #dddfcb;
|
||||
background:url(images/tableHeaderBackground.gif) repeat-x top left #dddfcb;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
@@ -218,7 +218,7 @@ input[button], button, .button {
|
||||
padding: 0px 8px;
|
||||
height: 26px;
|
||||
margin:20px 4px 0 4px;
|
||||
background:url(../images/tableHeaderBackground.gif) repeat-x top left #dddfcb;
|
||||
background:url(images/tableHeaderBackground.gif) repeat-x top left #dddfcb;
|
||||
border:1px solid #d2d6c6;
|
||||
color:#5a5b32;
|
||||
cursor:pointer;
|
||||
@@ -292,7 +292,7 @@ thead, th {
|
||||
font-size:100%; /*13px*/
|
||||
font-weight:700;
|
||||
text-align:left;
|
||||
background:url(../images/tableHeaderBackground.gif) repeat-x top left #dddfcb;
|
||||
background:url(images/tableHeaderBackground.gif) repeat-x top left #dddfcb;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
|
@@ -1,315 +0,0 @@
|
||||
@charset "UTF-8";
|
||||
/* CSS Document */
|
||||
|
||||
/*Yahoo browser reset
|
||||
----------------------------------------------------------*/
|
||||
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,
|
||||
blockquote,th,td {margin:0; padding:0; }
|
||||
table { border-collapse:collapse; border-spacing:0; }
|
||||
fieldset,img { border:0; }
|
||||
address,caption,cite,code,dfn,em,strong,th,var { font-style:normal; font-weight:normal; }
|
||||
ol,ul { list-style:none; }
|
||||
caption,th { text-align:left; }
|
||||
h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal; }
|
||||
q:before,q:after { content:”; }
|
||||
abbr,acronym { border:0; }
|
||||
|
||||
/*Defaults
|
||||
----------------------------------------------------------*/
|
||||
body
|
||||
{
|
||||
background-color: #eff4f3;
|
||||
background:url(../images/themes/autumn/bodyBackground.gif) center repeat-y;
|
||||
font-size: .80em;
|
||||
font-family:"Helvetica Neue", "Lucida Grande", Segoe UI, Arial, Helvetica, Verdana, sans-serif;
|
||||
font-family:"trebuchet ms",helvetica,sans-serif;
|
||||
text-align:center;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: #2b2b2b;
|
||||
min-width: 1000px;
|
||||
}
|
||||
|
||||
a:link
|
||||
{
|
||||
color: #2b2b2b;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:visited
|
||||
{
|
||||
color: #2b2b2b;
|
||||
}
|
||||
a:hover
|
||||
{
|
||||
color:#b1a233;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:active
|
||||
{
|
||||
color: #2b2b2b;
|
||||
}
|
||||
|
||||
p
|
||||
{
|
||||
line-height: 1.9em;
|
||||
margin: 1em .5em .5em .8em;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* HEADINGS
|
||||
----------------------------------------------------------*/
|
||||
h1, h2, h3, h4, h5, h6{
|
||||
font-size: 1.5em;
|
||||
color:#2b2b2b;
|
||||
|
||||
}
|
||||
|
||||
h1{
|
||||
font-size: 1.6em;
|
||||
padding-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
h2{
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
|
||||
h3{
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
h4{
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
h5, h6{
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
|
||||
/* PRIMARY LAYOUT ELEMENTS
|
||||
----------------------------------------------------------*/
|
||||
|
||||
/* Header and login
|
||||
----------------------------------------------------------*/
|
||||
#header
|
||||
{
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
#innerheader
|
||||
{
|
||||
width: 960px;
|
||||
height: 60px;
|
||||
margin: 0px auto;
|
||||
text-align: left;
|
||||
background: url(../images/themes/autumn/headerBackground.gif) repeat-x top left #000;
|
||||
|
||||
}
|
||||
|
||||
#branding {
|
||||
float:left;
|
||||
margin:10px 0px 0px 8px;
|
||||
background: url(../images/themes/autumn/leaf.gif) no-repeat top left;
|
||||
}
|
||||
|
||||
|
||||
#branding h1 {
|
||||
font-weight:400;
|
||||
font-size: 1.5em;
|
||||
color:#b0a133;
|
||||
border: none;
|
||||
padding:2px 8px 4px 24px;
|
||||
font-size: 26px !important;
|
||||
}
|
||||
|
||||
#login {
|
||||
float:right;
|
||||
color:#b0a133;
|
||||
margin:21px 16px 0px 12px;
|
||||
padding:4px 0px 8px 8px;
|
||||
}
|
||||
|
||||
|
||||
/* Main Content
|
||||
----------------------------------------------------------*/
|
||||
|
||||
#wrapper {
|
||||
width:960px;
|
||||
margin:0 auto;
|
||||
text-align:left;
|
||||
/*old background:#2b3442;*/
|
||||
background:#fcfcfc;
|
||||
}
|
||||
|
||||
#content {
|
||||
width: 740px;
|
||||
float:right;
|
||||
margin:42px 0px 0px 0px;
|
||||
}
|
||||
|
||||
#leftNav {
|
||||
width: 200px;
|
||||
float:left;
|
||||
margin:16px 0px 0px 8px;
|
||||
}
|
||||
|
||||
#footer {
|
||||
clear:both;
|
||||
padding:4px;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
/* Form elements
|
||||
----------------------------------------------------------*/
|
||||
|
||||
textarea{
|
||||
width: 716px;
|
||||
height: 600px;
|
||||
border: 1px solid #bdb791;
|
||||
background:#FFF;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
input.bttn {
|
||||
font-size: 1.2em;
|
||||
font-weight:400;
|
||||
margin: 20px 0px 20px 310px;
|
||||
padding:4px 12px;
|
||||
color:#e2da84;
|
||||
background: url(../images/themes/autumn/headerBackground.gif) repeat-x top left #000;
|
||||
border: 1px solid #191919;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
margin: 20px;
|
||||
padding: 10px;
|
||||
border: 1px solid #bdb791;
|
||||
}
|
||||
|
||||
legend {
|
||||
font-size: 1.1em;
|
||||
padding: 2px 4px 8px 4px;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
/* Top navigation pane
|
||||
----------------------------------------------------------*/
|
||||
|
||||
#topNavOutter
|
||||
{
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
#topNavInner
|
||||
{
|
||||
width: 960px;
|
||||
height: 30px;
|
||||
margin: 0px auto;
|
||||
text-align: left;
|
||||
background: url(../images/themes/autumn/TopNavBackground.gif) repeat-x bottom left #1f1f1f;
|
||||
color:#FFF;
|
||||
}
|
||||
|
||||
#topNavInner ul
|
||||
{
|
||||
margin:0;
|
||||
padding:0;
|
||||
list-style:none;
|
||||
float:left;
|
||||
}
|
||||
|
||||
#topNavInner ul li
|
||||
{
|
||||
float:left;
|
||||
height:30px;
|
||||
background:url(../images/themes/autumn/TopNavDivider.gif) no-repeat top right;
|
||||
}
|
||||
|
||||
#topNavInner ul li a
|
||||
{
|
||||
display:block;
|
||||
padding:6px 14px 2px 14px;
|
||||
text-decoration:none;
|
||||
float:left;
|
||||
color:#e2da84;
|
||||
}
|
||||
|
||||
#topNavInner ul li a:hover
|
||||
{
|
||||
display:block;
|
||||
padding:6px 14px 2px 14px;
|
||||
text-decoration:underline;
|
||||
float:left;
|
||||
color:#b1a233;
|
||||
}
|
||||
|
||||
|
||||
/* Breadcrumbs
|
||||
----------------------------------------------------------*/
|
||||
|
||||
h2.crumb {
|
||||
font-weight:400;
|
||||
font-variant:normal;
|
||||
color:#98926e;
|
||||
border-bottom:1px dotted #98926e;
|
||||
padding:0px 0px 4px 0px;
|
||||
}
|
||||
|
||||
h2.crumb a {
|
||||
color:#abba39;
|
||||
}
|
||||
|
||||
|
||||
/* Left navigation pane
|
||||
----------------------------------------------------------*/
|
||||
|
||||
.leftNavMod {
|
||||
border:1px #bdb791 solid;
|
||||
margin:14px 4px;
|
||||
background:#FFF;
|
||||
-moz-border-radius-bottomleft:4px;
|
||||
-moz-border-radius-bottomright:4px;
|
||||
-moz-border-radius-topleft:4px;
|
||||
-moz-border-radius-topright:4px;
|
||||
}
|
||||
|
||||
.leftNavMod h2 {
|
||||
font-size: 1.1em;
|
||||
font-variant:normal;
|
||||
padding: 6px 4px 6px 4px;
|
||||
color:#2a2a2a;
|
||||
background: url(../images/themes/autumn/sideNavBackground.gif) repeat-x top left #FFF;
|
||||
border-bottom:1px solid #98926e;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
/* Unorderer list links in left navigation pane
|
||||
----------------------------------------------------------*/
|
||||
|
||||
.leftNavMod ul a {
|
||||
display:block;
|
||||
height:24px;
|
||||
line-height:24px;
|
||||
padding:0px 0px 0px 12px;
|
||||
text-decoration:none;
|
||||
text-transform:lowercase;
|
||||
}
|
||||
|
||||
.leftNavMod ul a:visited{
|
||||
color: #2b2b2b;
|
||||
}
|
||||
|
||||
.leftNavMod ul a:hover {
|
||||
color: #3e4301;
|
||||
background:#D3E378 !important;;
|
||||
text-decoration:underline;
|
||||
}
|
@@ -1,73 +1,84 @@
|
||||
/* YUI Overrides
|
||||
----------------------------------------------------------*/
|
||||
#doc4 {margin:10px auto;}
|
||||
|
||||
#doc3 {margin: auto 0px; min-width:970px;}
|
||||
|
||||
#bd {padding:14px; background-color:#f6faea; margin:0 4px;}
|
||||
|
||||
#ft {text-align:center;}
|
||||
|
||||
/*Defaults
|
||||
----------------------------------------------------------*/
|
||||
html {height: 100%; color:#525e50; background-color:#b0b4a1; background-color:#8a8f7a;}
|
||||
|
||||
body {font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
height: 100%;
|
||||
width:100%;
|
||||
text-align:left;
|
||||
html {
|
||||
background:#8a8f7a;
|
||||
color:#525e50;
|
||||
}
|
||||
body {
|
||||
color:#5a5b32;
|
||||
font-size: 85%;
|
||||
font-family:Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-size:62.5%; /* 10px */
|
||||
min-width:96em; /* 960px */
|
||||
}
|
||||
body#preview {
|
||||
min-width:0;
|
||||
}
|
||||
#main {
|
||||
font-size:1.2em; /* 12px */
|
||||
}
|
||||
|
||||
/* ---------- Headings and defaults ---------- */
|
||||
h1,h2,h3,h4,h5,h6,legend {padding:4px 0; font-family:"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif; font-weight:normal; font-style: normal;}
|
||||
/* Headings and defaults
|
||||
----------------------------------------------------------*/
|
||||
h1, h2, h3, h4, h5, h6, legend {
|
||||
padding:.4em 0;
|
||||
font-family:"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif;
|
||||
font-style: normal;
|
||||
font-weight:normal;
|
||||
}
|
||||
|
||||
h1 { font-size:2.4em; } /* 24px */
|
||||
h2 { font-size:2.1em; } /* 21px */
|
||||
h3 { font-size:1.8em; } /* 18px */
|
||||
h4 { font-size:1.6em; } /* 16px */
|
||||
h5 { font-size:1.5em; } /* 15px */
|
||||
h6 { font-size:1.4em; } /* 14px */
|
||||
|
||||
h1 {font-size: 180%;}
|
||||
h2 {font-size: 160%;}
|
||||
h3 {font-size: 140%;}
|
||||
h4 {font-size: 120%;}
|
||||
h5 {font-size: 110%;}
|
||||
h6 {font-size: 105%;}
|
||||
|
||||
p {margin:4px;}
|
||||
.smallText {font-size: 85%;}
|
||||
|
||||
strong {font-weight:700;}
|
||||
p {
|
||||
margin:4em;
|
||||
}
|
||||
strong {
|
||||
font-weight:700;
|
||||
}
|
||||
|
||||
/* ---------- Links ---------- */
|
||||
a, a:link, a:visited {text-decoration:none; color:#1e5d7d;}
|
||||
a:hover, a:active {text-decoration:underline; color:#1e5d7d;}
|
||||
|
||||
a.linkButton, a.linkButton:visited {
|
||||
font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
margin:4px 4px 4px 12px;
|
||||
padding:2px;
|
||||
border:1px solid #d2d6c6;
|
||||
color:#5a5b32;
|
||||
a, a:link, a:visited {
|
||||
color:#1e5d7d;
|
||||
text-decoration:none;
|
||||
}
|
||||
a:hover, a:active, a:focus {
|
||||
color:#1e5d7d;
|
||||
text-decoration:underline;
|
||||
}
|
||||
|
||||
/* todo: (heskew) see what's necessary - looks like a link styled as a button */
|
||||
a.linkButton, a.linkButton:visited {
|
||||
font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
display:inline-block;
|
||||
text-align:center;
|
||||
text-decoration:none;
|
||||
padding: 3px 8px 3px 8px;
|
||||
margin:20px 4px 0 4px;
|
||||
background:url(images/tableHeaderBackground.gif) repeat-x top left #dddfcb;
|
||||
border:1px solid #d2d6c6;
|
||||
color:#5a5b32;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
/* Header - Branding and Login
|
||||
----------------------------------------------------------*/
|
||||
#hd {
|
||||
min-width:960px;
|
||||
#banner {
|
||||
background:#8a8f7a url(images/background_header.jpg) no-repeat bottom right;
|
||||
height:60px;
|
||||
}
|
||||
#banner h1 {
|
||||
float:left;
|
||||
}
|
||||
#banner h1 a {
|
||||
background:url(images/orchardLogo.jpg) no-repeat;
|
||||
display:block;
|
||||
height:60px;
|
||||
background:url(../images/background_header.jpg) no-repeat bottom right #8a8f7a;
|
||||
}
|
||||
|
||||
#hd h1 a {
|
||||
background:url(../images/orchardLogo.jpg) no-repeat;
|
||||
float:left;
|
||||
margin:-10px 0 0 18px;
|
||||
text-indent:-9999px;
|
||||
width:105px;
|
||||
height:60px;
|
||||
position:relative;
|
||||
top:-4px;
|
||||
margin:0 0 -14px 18px;
|
||||
z-index:0;
|
||||
}
|
||||
}
|
||||
|
||||
#hd a, #hd a:visited, #hd a:active {
|
||||
display:block;
|
||||
@@ -100,7 +111,7 @@ a.linkButton, a.linkButton:visited {
|
||||
|
||||
.leftNavMod h4 {
|
||||
padding: 4px 4px 6px 8px;
|
||||
background:url(../images/tableHeaderBackground.gif) repeat-x top left #dddfcb;
|
||||
background:url(images/tableHeaderBackground.gif) repeat-x top left #dddfcb;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
@@ -147,7 +158,7 @@ div.confirmation, div.warning, div.critical {
|
||||
.critical {
|
||||
background:#e68585;
|
||||
border:1px solid #990808;
|
||||
color:#990808;
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
@@ -178,7 +189,7 @@ legend {
|
||||
color:#525e50;
|
||||
}
|
||||
|
||||
select, textarea, .inputText, .button{
|
||||
select, textarea, #PublishLaterDate, .inputText{
|
||||
font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-size:102%;
|
||||
margin:4px 4px 4px 0;
|
||||
@@ -188,7 +199,7 @@ select, textarea, .inputText, .button{
|
||||
}
|
||||
|
||||
textarea {
|
||||
width:90%;
|
||||
width:80%;
|
||||
height:260px;
|
||||
}
|
||||
|
||||
@@ -199,16 +210,24 @@ margin:0 6px 0 0;
|
||||
input[button], button, .button {
|
||||
font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
text-align:center;
|
||||
padding:2px 6px;
|
||||
margin:20px 0 0 0;
|
||||
padding: 0px 8px;
|
||||
height: 26px;
|
||||
margin:20px 4px 0 4px;
|
||||
background:url(images/tableHeaderBackground.gif) repeat-x top left #dddfcb;
|
||||
border:1px solid #d2d6c6;
|
||||
color:#5a5b32;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.buttonFocus {color:#f6faea; border:1px solid #666d51; background:#8a8f7a;}
|
||||
|
||||
|
||||
#permalink{
|
||||
width:200px;
|
||||
}
|
||||
|
||||
.inputText {
|
||||
width:90%;
|
||||
width:80%;
|
||||
}
|
||||
|
||||
.inputTextLarge {
|
||||
@@ -220,6 +239,10 @@ input[button], button, .button {
|
||||
margin:-4px 0 8px 0;
|
||||
}
|
||||
|
||||
|
||||
#Revision_Slug{
|
||||
width:245px;
|
||||
}
|
||||
/* ---------- Sidebar forms ---------- */
|
||||
|
||||
.sideBar fieldset {margin:0px; border:none;}
|
||||
@@ -251,6 +274,7 @@ table {
|
||||
width: 100%;
|
||||
border-spacing: 0px;
|
||||
border:1px solid #B0B083;
|
||||
background:#fff;
|
||||
}
|
||||
|
||||
tbody
|
||||
@@ -260,10 +284,10 @@ tbody
|
||||
}
|
||||
|
||||
thead, th {
|
||||
font-size:104%;
|
||||
font-size:100%; /*13px*/
|
||||
font-weight:700;
|
||||
text-align:left;
|
||||
background:url(../images/tableHeaderBackground.gif) repeat-x top left #dddfcb;
|
||||
background:url(images/tableHeaderBackground.gif) repeat-x top left #dddfcb;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
@@ -318,6 +342,24 @@ ul.horizontal li a, ul.horizontal li a:visited, ul.horizontal li a:active, ol.ho
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Miscellaneous;
|
||||
----------------------------------------------------------*/
|
||||
|
||||
.templateThumbnail{
|
||||
width: 124px;
|
||||
height: 144px;
|
||||
border:1px solid #000;
|
||||
margin: 4px 4px 20px 16px;
|
||||
}
|
||||
|
||||
.previewImage {
|
||||
width:70%;
|
||||
height:70%;
|
||||
border:1px solid #525e50;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Extensions;
|
||||
----------------------------------------------------------*/
|
||||
|
||||
@@ -343,7 +385,8 @@ ul.horizontal li a, ul.horizontal li a:visited, ul.horizontal li a:active, ol.ho
|
||||
|
||||
.separator {border-bottom:1px dashed #E4E7DC; margin-bottom:8px; padding-bottom:2px;}
|
||||
|
||||
.roundCorners {
|
||||
/*TODO - Remove roundCorners class*/
|
||||
table, textarea, #bd, .button, .inputText, .inputTextLarge, .inputTextPermalink, .linkButton, .leftNavMod, div.confirmation, div.warning, div.critical, .roundCorners {
|
||||
|
||||
-moz-border-radius-bottomleft:4px;
|
||||
-moz-border-radius-bottomright:4px;
|
||||
@@ -355,3 +398,11 @@ ul.horizontal li a, ul.horizontal li a:visited, ul.horizontal li a:active, ol.ho
|
||||
-webkit-border-bottom-left-radius: 4px;
|
||||
-webkit-border-bottom-right-radius: 4px;
|
||||
}
|
||||
|
||||
|
||||
/* TinyMCE Overides
|
||||
----------------------------------------------------------*/
|
||||
.defaultSkin table.mceLayout {
|
||||
margin:0 0 20px 0 !important;
|
||||
width:90% !important;
|
||||
}
|
@@ -1,316 +0,0 @@
|
||||
@charset "UTF-8";
|
||||
/* CSS Document */
|
||||
|
||||
/*Yahoo browser reset
|
||||
----------------------------------------------------------*/
|
||||
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,
|
||||
blockquote,th,td {margin:0; padding:0; }
|
||||
table { border-collapse:collapse; border-spacing:0; }
|
||||
fieldset,img { border:0; }
|
||||
address,caption,cite,code,dfn,em,strong,th,var { font-style:normal; font-weight:normal; }
|
||||
ol,ul { list-style:none; }
|
||||
caption,th { text-align:left; }
|
||||
h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal; }
|
||||
q:before,q:after { content:”; }
|
||||
abbr,acronym { border:0; }
|
||||
|
||||
/*Defaults
|
||||
----------------------------------------------------------*/
|
||||
body
|
||||
{
|
||||
background: url(../images/themes/dark/bodyBackground.gif) repeat-x top left #303a49;
|
||||
font-size: .80em;
|
||||
font-family:"Helvetica Neue", "Lucida Grande", Segoe UI, Arial, Helvetica, Verdana, sans-serif;
|
||||
text-align:center;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: #f5f5f5;
|
||||
min-width: 1000px;
|
||||
}
|
||||
|
||||
a:link
|
||||
{
|
||||
color: #bababa;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:visited
|
||||
{
|
||||
color: #bababa;
|
||||
}
|
||||
a:hover
|
||||
{
|
||||
color:#ff7e00;
|
||||
text-decoration:underline;
|
||||
}
|
||||
a:active
|
||||
{
|
||||
color: #bababa;
|
||||
}
|
||||
|
||||
p
|
||||
{
|
||||
line-height: 1.9em;
|
||||
margin: 1em .5em .5em .8em;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* HEADINGS
|
||||
----------------------------------------------------------*/
|
||||
h1, h2, h3, h4, h5, h6{
|
||||
font-size: 1.5em;
|
||||
color:#f5f5f5;
|
||||
|
||||
}
|
||||
|
||||
h1{
|
||||
font-size: 1.6em;
|
||||
padding-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
h2{
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
|
||||
h3{
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
h4{
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
h5, h6{
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
|
||||
/* PRIMARY LAYOUT ELEMENTS
|
||||
----------------------------------------------------------*/
|
||||
|
||||
/* Header and login
|
||||
----------------------------------------------------------*/
|
||||
#header
|
||||
{
|
||||
width: 100%;
|
||||
height: 90px;
|
||||
}
|
||||
|
||||
#innerheader
|
||||
{
|
||||
width: 960px;
|
||||
height: 90px;
|
||||
margin: 0px auto;
|
||||
text-align: left;
|
||||
background: url(../images/themes/dark/headerBackground.gif) repeat-x top left #000;
|
||||
border-left:1px #38383d solid;
|
||||
border-right:1px #696969 solid;
|
||||
}
|
||||
|
||||
#branding {
|
||||
float:left;
|
||||
margin:20px 0px 0px 0px;
|
||||
padding:4px 8px 8px 16px;
|
||||
}
|
||||
|
||||
|
||||
#branding h1 {
|
||||
font-weight:800;
|
||||
font-size: 1.6em;
|
||||
border: none;
|
||||
font-size: 28px !important;
|
||||
}
|
||||
|
||||
#login {
|
||||
float:right;
|
||||
margin:32px 16px 0px 12px;
|
||||
padding:4px 0px 8px 8px;
|
||||
}
|
||||
|
||||
|
||||
/* Main Content
|
||||
----------------------------------------------------------*/
|
||||
|
||||
#wrapper {
|
||||
width:960px;
|
||||
margin:0 auto;
|
||||
text-align:left;
|
||||
/*old background:#2b3442;*/
|
||||
background:#262d31;
|
||||
border-left:1px #364253 solid;
|
||||
border-bottom:1px #364253 solid;
|
||||
border-right:1px #364253 solid;
|
||||
}
|
||||
|
||||
#content {
|
||||
width: 740px;
|
||||
float:right;
|
||||
margin:42px 0px 0px 0px;
|
||||
}
|
||||
|
||||
#leftNav {
|
||||
width: 200px;
|
||||
float:left;
|
||||
margin:16px 0px 0px 8px;
|
||||
}
|
||||
|
||||
#footer {
|
||||
clear:both;
|
||||
padding:4px;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
/* Form elements
|
||||
----------------------------------------------------------*/
|
||||
|
||||
textarea{
|
||||
width: 716px;
|
||||
height: 600px;
|
||||
border: 1px solid #364253;
|
||||
background:#f5f5f5;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
input.bttn {
|
||||
font-size: 1.2em;
|
||||
font-weight:400;
|
||||
margin: 20px 0px 20px 310px;
|
||||
padding:4px 12px;
|
||||
color:#abba39;
|
||||
background: url(../images/themes/dark/headerBackground.gif) repeat-x top left #000;
|
||||
border: 1px solid #191919;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
margin: 20px;
|
||||
padding: 10px;
|
||||
border: 1px solid #323b40;
|
||||
}
|
||||
|
||||
legend {
|
||||
font-size: 1.1em;
|
||||
padding: 2px 4px 8px 4px;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
/* Top navigation pane
|
||||
----------------------------------------------------------*/
|
||||
|
||||
#topNavOutter
|
||||
{
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
#topNavInner
|
||||
{
|
||||
width: 960px;
|
||||
height: 30px;
|
||||
margin: 0px auto;
|
||||
text-align: left;
|
||||
background: url(../images/themes/dark/TopNavBackground.gif) repeat-x bottom left #000;
|
||||
border-left:1px #000 solid;
|
||||
border-right:1px #000 solid;
|
||||
color:#FFF;
|
||||
}
|
||||
|
||||
#topNavInner ul
|
||||
{
|
||||
margin:0;
|
||||
padding:0;
|
||||
list-style:none;
|
||||
float:left;
|
||||
}
|
||||
|
||||
#topNavInner ul li
|
||||
{
|
||||
float:left;
|
||||
height:30px;
|
||||
background:url(../images/themes/dark/TopNavDivider.gif) no-repeat top right;
|
||||
}
|
||||
|
||||
#topNavInner ul li a
|
||||
{
|
||||
display:block;
|
||||
padding:6px 14px 2px 14px;
|
||||
text-decoration:none;
|
||||
float:left;
|
||||
color:#f5f5f5;
|
||||
}
|
||||
|
||||
#topNavInner ul li a:hover
|
||||
{
|
||||
display:block;
|
||||
padding:6px 14px 2px 14px;
|
||||
text-decoration:underline;
|
||||
float:left;
|
||||
color:#ff7e00;
|
||||
}
|
||||
|
||||
|
||||
/* Breadcrumbs
|
||||
----------------------------------------------------------*/
|
||||
|
||||
h2.crumb {
|
||||
font-weight:400;
|
||||
font-variant:normal;
|
||||
color:#dcdcde;
|
||||
border-bottom:1px dotted #364253;
|
||||
padding:0px 0px 4px 0px;
|
||||
}
|
||||
|
||||
h2.crumb a {
|
||||
color:#abba39;
|
||||
}
|
||||
|
||||
|
||||
/* Left navigation pane
|
||||
----------------------------------------------------------*/
|
||||
|
||||
.leftNavMod {
|
||||
border:1px #191919 solid;
|
||||
margin:14px 4px;
|
||||
background:#dcdcde;
|
||||
-moz-border-radius-bottomleft:4px;
|
||||
-moz-border-radius-bottomright:4px;
|
||||
-moz-border-radius-topleft:4px;
|
||||
-moz-border-radius-topright:4px;
|
||||
}
|
||||
|
||||
.leftNavMod h2 {
|
||||
font-size: 1.1em;
|
||||
font-variant:normal;
|
||||
padding: 4px;
|
||||
color:#bababa;
|
||||
background: url(../images/themes/dark/headerBackground.gif) repeat-x top left #000;
|
||||
border-bottom:1px solid #212121;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
/* Unorderer list links in left navigation pane
|
||||
----------------------------------------------------------*/
|
||||
|
||||
.leftNavMod ul a {
|
||||
display:block;
|
||||
height:24px;
|
||||
color:#3a546e;
|
||||
line-height:24px;
|
||||
padding:0px 0px 0px 12px;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
.leftNavMod ul a:visited{
|
||||
color:#3a546e;
|
||||
}
|
||||
|
||||
.leftNavMod ul a:hover {
|
||||
color: #ff7e00;
|
||||
background:#5c6165 !important;;
|
||||
text-decoration:underline;
|
||||
}
|
BIN
src/Orchard.Web/Content/Admin/css/images/background_header.jpg
Normal file
BIN
src/Orchard.Web/Content/Admin/css/images/background_header.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
BIN
src/Orchard.Web/Content/Admin/css/images/orchardLogo.jpg
Normal file
BIN
src/Orchard.Web/Content/Admin/css/images/orchardLogo.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 500 B |
126
src/Orchard.Web/Content/Admin/css/yui.reset-3.0.0.css
Normal file
126
src/Orchard.Web/Content/Admin/css/yui.reset-3.0.0.css
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
/*
|
||||
TODO will need to remove settings on HTML since we can't namespace it.
|
||||
TODO with the prefix, should I group by selector or property for weight savings?
|
||||
*/
|
||||
html{
|
||||
color:#000;
|
||||
background:#FFF;
|
||||
}
|
||||
/*
|
||||
TODO remove settings on BODY since we can't namespace it.
|
||||
*/
|
||||
/*
|
||||
TODO test putting a class on HEAD.
|
||||
- Fails on FF.
|
||||
*/
|
||||
body,
|
||||
div,
|
||||
dl,
|
||||
dt,
|
||||
dd,
|
||||
ul,
|
||||
ol,
|
||||
li,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
pre,
|
||||
code,
|
||||
form,
|
||||
fieldset,
|
||||
legend,
|
||||
input,
|
||||
textarea,
|
||||
p,
|
||||
blockquote,
|
||||
th,
|
||||
td {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
table {
|
||||
border-collapse:collapse;
|
||||
border-spacing:0;
|
||||
}
|
||||
fieldset,
|
||||
img {
|
||||
border:0;
|
||||
}
|
||||
/*
|
||||
TODO think about hanlding inheritence differently, maybe letting IE6 fail a bit...
|
||||
*/
|
||||
address,
|
||||
caption,
|
||||
cite,
|
||||
code,
|
||||
dfn,
|
||||
em,
|
||||
strong,
|
||||
th,
|
||||
var {
|
||||
font-style:normal;
|
||||
font-weight:normal;
|
||||
}
|
||||
/*
|
||||
TODO Figure out where this list-style rule is best set. Hedger has a request to investigate.
|
||||
*/
|
||||
li {
|
||||
list-style:none;
|
||||
}
|
||||
|
||||
caption,
|
||||
th {
|
||||
text-align:left;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size:100%;
|
||||
font-weight:normal;
|
||||
}
|
||||
q:before,
|
||||
q:after {
|
||||
content:'';
|
||||
}
|
||||
abbr,
|
||||
acronym {
|
||||
border:0;
|
||||
font-variant:normal;
|
||||
}
|
||||
/* to preserve line-height and selector appearance */
|
||||
sup {
|
||||
vertical-align:text-top;
|
||||
}
|
||||
sub {
|
||||
vertical-align:text-bottom;
|
||||
}
|
||||
input,
|
||||
textarea,
|
||||
select {
|
||||
font-family:inherit;
|
||||
font-size:inherit;
|
||||
font-weight:inherit;
|
||||
}
|
||||
/*to enable resizing for IE*/
|
||||
input,
|
||||
textarea,
|
||||
select {
|
||||
*font-size:100%;
|
||||
}
|
||||
/*because legend doesn't inherit in IE */
|
||||
legend {
|
||||
color:#000;
|
||||
}
|
8
src/Orchard.Web/Content/Admin/css/yui.reset-3.0.0.min.css
vendored
Normal file
8
src/Orchard.Web/Content/Admin/css/yui.reset-3.0.0.min.css
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}
|
@@ -96,10 +96,6 @@
|
||||
<Content Include="Scripts\jquery-1.3.2.min.js" />
|
||||
<Content Include="Scripts\jquery-1.3.2-vsdoc.js" />
|
||||
<Content Include="Scripts\jquery-1.3.2.min-vsdoc.js" />
|
||||
<Content Include="Scripts\MicrosoftAjax.js" />
|
||||
<Content Include="Scripts\MicrosoftAjax.debug.js" />
|
||||
<Content Include="Scripts\MicrosoftMvcAjax.js" />
|
||||
<Content Include="Scripts\MicrosoftMvcAjax.debug.js" />
|
||||
<Content Include="Views\Account\ChangePassword.aspx" />
|
||||
<Content Include="Views\Account\ChangePasswordSuccess.aspx" />
|
||||
<Content Include="Views\Account\LogOn.aspx" />
|
||||
@@ -158,15 +154,18 @@
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Content\Admin\images\background_header.jpg" />
|
||||
<Content Include="Content\Admin\images\orchardLogo.jpg" />
|
||||
<Content Include="Content\Admin\images\tableHeaderBackground.gif" />
|
||||
<Content Include="Content\Admin\Site.css" />
|
||||
<Content Include="Content\Admin\css\images\background_header.jpg" />
|
||||
<Content Include="Content\Admin\css\images\orchardLogo.jpg" />
|
||||
<Content Include="Content\Admin\css\images\tableHeaderBackground.gif" />
|
||||
<Content Include="Views\Admin\Footer.aspx" />
|
||||
<Content Include="Views\Admin\Header.aspx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Config\Diagnostics.config" />
|
||||
<Content Include="Content\Admin\css\base.css" />
|
||||
<Content Include="Content\Admin\css\Site.css" />
|
||||
<Content Include="Content\Admin\css\yui.reset-3.0.0.min.css" />
|
||||
<Content Include="Content\Admin\css\yui.reset-3.0.0.css" />
|
||||
<Content Include="Content\Images\headerBackground.gif" />
|
||||
<Content Include="Content\Images\header_background.gif" />
|
||||
<Content Include="Content\Images\innerheader_background.gif" />
|
||||
@@ -175,6 +174,8 @@
|
||||
<Content Include="Content\Images\title_background.gif" />
|
||||
<Content Include="Content\Site2.css" />
|
||||
<Content Include="Content\Site3.css" />
|
||||
<Content Include="Views\Admin\Head.aspx" />
|
||||
<Content Include="Views\Admin\Foot.aspx" />
|
||||
<Content Include="Views\Admin\Messages.ascx" />
|
||||
<Content Include="Views\Shared\ExtraUserControl.ascx" />
|
||||
<Content Include="Views\Shared\Footer.ascx" />
|
||||
|
@@ -3,21 +3,21 @@
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<% Html.Include("Header"); %>
|
||||
<div class="yui-g">
|
||||
<h2><%=T("Edit Page")%></h2>
|
||||
<p class="bottomSpacer"><%=T("about setting up a page")%></p>
|
||||
<h2><%=_Encoded("Edit Page")%></h2>
|
||||
<p class="bottomSpacer"><%=_Encoded("about setting up a page")%></p>
|
||||
<%=Html.ValidationSummary() %>
|
||||
</div>
|
||||
<div class="yui-gc">
|
||||
<%using (Html.BeginForm()) {%>
|
||||
<div class="yui-u first">
|
||||
<h3><%= T("Page Content") %></h3>
|
||||
<h3><%=_Encoded("Page Content") %></h3>
|
||||
<ol>
|
||||
<%=Html.EditorFor(m => m.Revision.Title, "inputTextLarge")%>
|
||||
<%=Html.EditorFor(m => m.Revision.Slug, "inputTextPermalink")%>
|
||||
|
||||
<%foreach (ContentItem content in Model.Revision.Contents) {%>
|
||||
<label for="<%="Revision.Contents[" + content.ZoneName + "].Content" %>">
|
||||
<%=T("Zone Name")%>: <%= content.ZoneName %></label>
|
||||
<%=_Encoded("Zone Name")%>: <%= content.ZoneName %></label>
|
||||
<%if (Model.Template != null && Model.Template.Zones.Contains(content.ZoneName) == false) {%>
|
||||
<div class="warning">These contents are assigned to a zone that does not exist in the current template. Please delete it or copy it to another zone.</div>
|
||||
<%}%>
|
||||
@@ -36,7 +36,7 @@
|
||||
</ol>
|
||||
</div>
|
||||
<div class="yui-u sideBar">
|
||||
<h3><%=T("Publish Settings") %></h3>
|
||||
<h3><%=_Encoded("Publish Settings")%></h3>
|
||||
<fieldset>
|
||||
<ol class="formList">
|
||||
<li><label for="Command_PublishNow"><%=Html.RadioButton("Command", "PublishNow", new { id = "Command_PublishNow" })%> Publish Now</label></li>
|
||||
|
@@ -16,7 +16,7 @@ string SplitDateTime(DateTime dt)
|
||||
string.Format("{0:t}", dt);
|
||||
}
|
||||
</script>
|
||||
<% Html.Include("Header"); %>
|
||||
<% Html.Include("Head"); %>
|
||||
<% Html.BeginForm(); %>
|
||||
<div class="yui-g">
|
||||
<h2>
|
||||
@@ -124,4 +124,4 @@ string SplitDateTime(DateTime dt)
|
||||
<%=Html.ActionLink("Add a page", "Create", new {}, new {@class="floatRight bottomSpacer"}) %>
|
||||
</div>
|
||||
<% Html.EndForm(); %>
|
||||
<% Html.Include("Footer"); %>
|
||||
<% Html.Include("Foot"); %>
|
6850
src/Orchard.Web/Scripts/MicrosoftAjax.debug.js
vendored
6850
src/Orchard.Web/Scripts/MicrosoftAjax.debug.js
vendored
File diff suppressed because it is too large
Load Diff
7
src/Orchard.Web/Scripts/MicrosoftAjax.js
vendored
7
src/Orchard.Web/Scripts/MicrosoftAjax.js
vendored
File diff suppressed because one or more lines are too long
387
src/Orchard.Web/Scripts/MicrosoftMvcAjax.debug.js
vendored
387
src/Orchard.Web/Scripts/MicrosoftMvcAjax.debug.js
vendored
@@ -1,387 +0,0 @@
|
||||
//!----------------------------------------------------------
|
||||
//! Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
//!----------------------------------------------------------
|
||||
//! MicrosoftMvcAjax.js
|
||||
|
||||
Type.registerNamespace('Sys.Mvc');
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Sys.Mvc.AjaxOptions
|
||||
|
||||
Sys.Mvc.$create_AjaxOptions = function Sys_Mvc_AjaxOptions() { return {}; }
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Sys.Mvc.InsertionMode
|
||||
|
||||
Sys.Mvc.InsertionMode = function() {
|
||||
/// <field name="replace" type="Number" integer="true" static="true">
|
||||
/// </field>
|
||||
/// <field name="insertBefore" type="Number" integer="true" static="true">
|
||||
/// </field>
|
||||
/// <field name="insertAfter" type="Number" integer="true" static="true">
|
||||
/// </field>
|
||||
};
|
||||
Sys.Mvc.InsertionMode.prototype = {
|
||||
replace: 0,
|
||||
insertBefore: 1,
|
||||
insertAfter: 2
|
||||
}
|
||||
Sys.Mvc.InsertionMode.registerEnum('Sys.Mvc.InsertionMode', false);
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Sys.Mvc.AjaxContext
|
||||
|
||||
Sys.Mvc.AjaxContext = function Sys_Mvc_AjaxContext(request, updateTarget, loadingElement, insertionMode) {
|
||||
/// <param name="request" type="Sys.Net.WebRequest">
|
||||
/// </param>
|
||||
/// <param name="updateTarget" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <param name="loadingElement" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <param name="insertionMode" type="Sys.Mvc.InsertionMode">
|
||||
/// </param>
|
||||
/// <field name="_insertionMode" type="Sys.Mvc.InsertionMode">
|
||||
/// </field>
|
||||
/// <field name="_loadingElement" type="Object" domElement="true">
|
||||
/// </field>
|
||||
/// <field name="_response" type="Sys.Net.WebRequestExecutor">
|
||||
/// </field>
|
||||
/// <field name="_request" type="Sys.Net.WebRequest">
|
||||
/// </field>
|
||||
/// <field name="_updateTarget" type="Object" domElement="true">
|
||||
/// </field>
|
||||
this._request = request;
|
||||
this._updateTarget = updateTarget;
|
||||
this._loadingElement = loadingElement;
|
||||
this._insertionMode = insertionMode;
|
||||
}
|
||||
Sys.Mvc.AjaxContext.prototype = {
|
||||
_insertionMode: 0,
|
||||
_loadingElement: null,
|
||||
_response: null,
|
||||
_request: null,
|
||||
_updateTarget: null,
|
||||
|
||||
get_data: function Sys_Mvc_AjaxContext$get_data() {
|
||||
/// <value type="String"></value>
|
||||
if (this._response) {
|
||||
return this._response.get_responseData();
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
},
|
||||
|
||||
get_insertionMode: function Sys_Mvc_AjaxContext$get_insertionMode() {
|
||||
/// <value type="Sys.Mvc.InsertionMode"></value>
|
||||
return this._insertionMode;
|
||||
},
|
||||
|
||||
get_loadingElement: function Sys_Mvc_AjaxContext$get_loadingElement() {
|
||||
/// <value type="Object" domElement="true"></value>
|
||||
return this._loadingElement;
|
||||
},
|
||||
|
||||
get_object: function Sys_Mvc_AjaxContext$get_object() {
|
||||
/// <value type="Object"></value>
|
||||
var executor = this.get_response();
|
||||
return (executor) ? executor.get_object() : null;
|
||||
},
|
||||
|
||||
get_response: function Sys_Mvc_AjaxContext$get_response() {
|
||||
/// <value type="Sys.Net.WebRequestExecutor"></value>
|
||||
return this._response;
|
||||
},
|
||||
set_response: function Sys_Mvc_AjaxContext$set_response(value) {
|
||||
/// <value type="Sys.Net.WebRequestExecutor"></value>
|
||||
this._response = value;
|
||||
return value;
|
||||
},
|
||||
|
||||
get_request: function Sys_Mvc_AjaxContext$get_request() {
|
||||
/// <value type="Sys.Net.WebRequest"></value>
|
||||
return this._request;
|
||||
},
|
||||
|
||||
get_updateTarget: function Sys_Mvc_AjaxContext$get_updateTarget() {
|
||||
/// <value type="Object" domElement="true"></value>
|
||||
return this._updateTarget;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Sys.Mvc.AsyncHyperlink
|
||||
|
||||
Sys.Mvc.AsyncHyperlink = function Sys_Mvc_AsyncHyperlink() {
|
||||
}
|
||||
Sys.Mvc.AsyncHyperlink.handleClick = function Sys_Mvc_AsyncHyperlink$handleClick(anchor, evt, ajaxOptions) {
|
||||
/// <param name="anchor" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <param name="evt" type="Sys.UI.DomEvent">
|
||||
/// </param>
|
||||
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
|
||||
/// </param>
|
||||
evt.preventDefault();
|
||||
Sys.Mvc.MvcHelpers._asyncRequest(anchor.href, 'post', '', anchor, ajaxOptions);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Sys.Mvc.MvcHelpers
|
||||
|
||||
Sys.Mvc.MvcHelpers = function Sys_Mvc_MvcHelpers() {
|
||||
}
|
||||
Sys.Mvc.MvcHelpers._serializeSubmitButton = function Sys_Mvc_MvcHelpers$_serializeSubmitButton(element, offsetX, offsetY) {
|
||||
/// <param name="element" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <param name="offsetX" type="Number" integer="true">
|
||||
/// </param>
|
||||
/// <param name="offsetY" type="Number" integer="true">
|
||||
/// </param>
|
||||
/// <returns type="String"></returns>
|
||||
if (element.disabled) {
|
||||
return null;
|
||||
}
|
||||
var name = element.name;
|
||||
if (name) {
|
||||
var tagName = element.tagName.toUpperCase();
|
||||
var encodedName = encodeURIComponent(name);
|
||||
var inputElement = element;
|
||||
if (tagName === 'INPUT') {
|
||||
var type = inputElement.type;
|
||||
if (type === 'submit') {
|
||||
return encodedName + '=' + encodeURIComponent(inputElement.value);
|
||||
}
|
||||
else if (type === 'image') {
|
||||
return encodedName + '.x=' + offsetX + '&' + encodedName + '.y=' + offsetY;
|
||||
}
|
||||
}
|
||||
else if ((tagName === 'BUTTON') && (name.length) && (inputElement.type === 'submit')) {
|
||||
return encodedName + '=' + encodeURIComponent(inputElement.value);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
Sys.Mvc.MvcHelpers._serializeForm = function Sys_Mvc_MvcHelpers$_serializeForm(form) {
|
||||
/// <param name="form" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <returns type="String"></returns>
|
||||
var formElements = form.elements;
|
||||
var formBody = new Sys.StringBuilder();
|
||||
var count = formElements.length;
|
||||
for (var i = 0; i < count; i++) {
|
||||
var element = formElements[i];
|
||||
var name = element.name;
|
||||
if (!name || !name.length) {
|
||||
continue;
|
||||
}
|
||||
var tagName = element.tagName.toUpperCase();
|
||||
if (tagName === 'INPUT') {
|
||||
var inputElement = element;
|
||||
var type = inputElement.type;
|
||||
if ((type === 'text') || (type === 'password') || (type === 'hidden') || (((type === 'checkbox') || (type === 'radio')) && element.checked)) {
|
||||
formBody.append(encodeURIComponent(name));
|
||||
formBody.append('=');
|
||||
formBody.append(encodeURIComponent(inputElement.value));
|
||||
formBody.append('&');
|
||||
}
|
||||
}
|
||||
else if (tagName === 'SELECT') {
|
||||
var selectElement = element;
|
||||
var optionCount = selectElement.options.length;
|
||||
for (var j = 0; j < optionCount; j++) {
|
||||
var optionElement = selectElement.options[j];
|
||||
if (optionElement.selected) {
|
||||
formBody.append(encodeURIComponent(name));
|
||||
formBody.append('=');
|
||||
formBody.append(encodeURIComponent(optionElement.value));
|
||||
formBody.append('&');
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (tagName === 'TEXTAREA') {
|
||||
formBody.append(encodeURIComponent(name));
|
||||
formBody.append('=');
|
||||
formBody.append(encodeURIComponent((element.value)));
|
||||
formBody.append('&');
|
||||
}
|
||||
}
|
||||
var additionalInput = form._additionalInput;
|
||||
if (additionalInput) {
|
||||
formBody.append(additionalInput);
|
||||
formBody.append('&');
|
||||
}
|
||||
return formBody.toString();
|
||||
}
|
||||
Sys.Mvc.MvcHelpers._asyncRequest = function Sys_Mvc_MvcHelpers$_asyncRequest(url, verb, body, triggerElement, ajaxOptions) {
|
||||
/// <param name="url" type="String">
|
||||
/// </param>
|
||||
/// <param name="verb" type="String">
|
||||
/// </param>
|
||||
/// <param name="body" type="String">
|
||||
/// </param>
|
||||
/// <param name="triggerElement" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
|
||||
/// </param>
|
||||
if (ajaxOptions.confirm) {
|
||||
if (!confirm(ajaxOptions.confirm)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (ajaxOptions.url) {
|
||||
url = ajaxOptions.url;
|
||||
}
|
||||
if (ajaxOptions.httpMethod) {
|
||||
verb = ajaxOptions.httpMethod;
|
||||
}
|
||||
if (body.length > 0 && !body.endsWith('&')) {
|
||||
body += '&';
|
||||
}
|
||||
body += 'X-Requested-With=XMLHttpRequest';
|
||||
var requestBody = '';
|
||||
if (verb.toUpperCase() === 'GET' || verb.toUpperCase() === 'DELETE') {
|
||||
if (url.indexOf('?') > -1) {
|
||||
if (!url.endsWith('&')) {
|
||||
url += '&';
|
||||
}
|
||||
url += body;
|
||||
}
|
||||
else {
|
||||
url += '?';
|
||||
url += body;
|
||||
}
|
||||
}
|
||||
else {
|
||||
requestBody = body;
|
||||
}
|
||||
var request = new Sys.Net.WebRequest();
|
||||
request.set_url(url);
|
||||
request.set_httpVerb(verb);
|
||||
request.set_body(requestBody);
|
||||
if (verb.toUpperCase() === 'PUT') {
|
||||
request.get_headers()['Content-Type'] = 'application/x-www-form-urlencoded;';
|
||||
}
|
||||
request.get_headers()['X-Requested-With'] = 'XMLHttpRequest';
|
||||
var updateElement = null;
|
||||
if (ajaxOptions.updateTargetId) {
|
||||
updateElement = $get(ajaxOptions.updateTargetId);
|
||||
}
|
||||
var loadingElement = null;
|
||||
if (ajaxOptions.loadingElementId) {
|
||||
loadingElement = $get(ajaxOptions.loadingElementId);
|
||||
}
|
||||
var ajaxContext = new Sys.Mvc.AjaxContext(request, updateElement, loadingElement, ajaxOptions.insertionMode);
|
||||
var continueRequest = true;
|
||||
if (ajaxOptions.onBegin) {
|
||||
continueRequest = ajaxOptions.onBegin(ajaxContext) !== false;
|
||||
}
|
||||
if (loadingElement) {
|
||||
Sys.UI.DomElement.setVisible(ajaxContext.get_loadingElement(), true);
|
||||
}
|
||||
if (continueRequest) {
|
||||
request.add_completed(Function.createDelegate(null, function(executor) {
|
||||
Sys.Mvc.MvcHelpers._onComplete(request, ajaxOptions, ajaxContext);
|
||||
}));
|
||||
request.invoke();
|
||||
}
|
||||
}
|
||||
Sys.Mvc.MvcHelpers._onComplete = function Sys_Mvc_MvcHelpers$_onComplete(request, ajaxOptions, ajaxContext) {
|
||||
/// <param name="request" type="Sys.Net.WebRequest">
|
||||
/// </param>
|
||||
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
|
||||
/// </param>
|
||||
/// <param name="ajaxContext" type="Sys.Mvc.AjaxContext">
|
||||
/// </param>
|
||||
ajaxContext.set_response(request.get_executor());
|
||||
if (ajaxOptions.onComplete && ajaxOptions.onComplete(ajaxContext) === false) {
|
||||
return;
|
||||
}
|
||||
var statusCode = ajaxContext.get_response().get_statusCode();
|
||||
if ((statusCode >= 200 && statusCode < 300) || statusCode === 304 || statusCode === 1223) {
|
||||
if (statusCode !== 204 && statusCode !== 304 && statusCode !== 1223) {
|
||||
var contentType = ajaxContext.get_response().getResponseHeader('Content-Type');
|
||||
if ((contentType) && (contentType.indexOf('application/x-javascript') !== -1)) {
|
||||
eval(ajaxContext.get_data());
|
||||
}
|
||||
else {
|
||||
Sys.Mvc.MvcHelpers.updateDomElement(ajaxContext.get_updateTarget(), ajaxContext.get_insertionMode(), ajaxContext.get_data());
|
||||
}
|
||||
}
|
||||
if (ajaxOptions.onSuccess) {
|
||||
ajaxOptions.onSuccess(ajaxContext);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (ajaxOptions.onFailure) {
|
||||
ajaxOptions.onFailure(ajaxContext);
|
||||
}
|
||||
}
|
||||
if (ajaxContext.get_loadingElement()) {
|
||||
Sys.UI.DomElement.setVisible(ajaxContext.get_loadingElement(), false);
|
||||
}
|
||||
}
|
||||
Sys.Mvc.MvcHelpers.updateDomElement = function Sys_Mvc_MvcHelpers$updateDomElement(target, insertionMode, content) {
|
||||
/// <param name="target" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <param name="insertionMode" type="Sys.Mvc.InsertionMode">
|
||||
/// </param>
|
||||
/// <param name="content" type="String">
|
||||
/// </param>
|
||||
if (target) {
|
||||
switch (insertionMode) {
|
||||
case Sys.Mvc.InsertionMode.replace:
|
||||
target.innerHTML = content;
|
||||
break;
|
||||
case Sys.Mvc.InsertionMode.insertBefore:
|
||||
if (content && content.length > 0) {
|
||||
target.innerHTML = content + target.innerHTML.trimStart();
|
||||
}
|
||||
break;
|
||||
case Sys.Mvc.InsertionMode.insertAfter:
|
||||
if (content && content.length > 0) {
|
||||
target.innerHTML = target.innerHTML.trimEnd() + content;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Sys.Mvc.AsyncForm
|
||||
|
||||
Sys.Mvc.AsyncForm = function Sys_Mvc_AsyncForm() {
|
||||
}
|
||||
Sys.Mvc.AsyncForm.handleClick = function Sys_Mvc_AsyncForm$handleClick(form, evt) {
|
||||
/// <param name="form" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <param name="evt" type="Sys.UI.DomEvent">
|
||||
/// </param>
|
||||
var additionalInput = Sys.Mvc.MvcHelpers._serializeSubmitButton(evt.target, evt.offsetX, evt.offsetY);
|
||||
form._additionalInput = additionalInput;
|
||||
}
|
||||
Sys.Mvc.AsyncForm.handleSubmit = function Sys_Mvc_AsyncForm$handleSubmit(form, evt, ajaxOptions) {
|
||||
/// <param name="form" type="Object" domElement="true">
|
||||
/// </param>
|
||||
/// <param name="evt" type="Sys.UI.DomEvent">
|
||||
/// </param>
|
||||
/// <param name="ajaxOptions" type="Sys.Mvc.AjaxOptions">
|
||||
/// </param>
|
||||
evt.preventDefault();
|
||||
var body = Sys.Mvc.MvcHelpers._serializeForm(form);
|
||||
Sys.Mvc.MvcHelpers._asyncRequest(form.action, form.method || 'post', body, form, ajaxOptions);
|
||||
}
|
||||
|
||||
|
||||
Sys.Mvc.AjaxContext.registerClass('Sys.Mvc.AjaxContext');
|
||||
Sys.Mvc.AsyncHyperlink.registerClass('Sys.Mvc.AsyncHyperlink');
|
||||
Sys.Mvc.MvcHelpers.registerClass('Sys.Mvc.MvcHelpers');
|
||||
Sys.Mvc.AsyncForm.registerClass('Sys.Mvc.AsyncForm');
|
||||
|
||||
// ---- Do not remove this footer ----
|
||||
// Generated using Script# v0.5.0.0 (http://projects.nikhilk.net)
|
||||
// -----------------------------------
|
25
src/Orchard.Web/Scripts/MicrosoftMvcAjax.js
vendored
25
src/Orchard.Web/Scripts/MicrosoftMvcAjax.js
vendored
@@ -1,25 +0,0 @@
|
||||
//----------------------------------------------------------
|
||||
// Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
//----------------------------------------------------------
|
||||
// MicrosoftMvcAjax.js
|
||||
|
||||
Type.registerNamespace('Sys.Mvc');Sys.Mvc.$create_AjaxOptions=function(){return {};}
|
||||
Sys.Mvc.InsertionMode=function(){};Sys.Mvc.InsertionMode.prototype = {replace:0,insertBefore:1,insertAfter:2}
|
||||
Sys.Mvc.InsertionMode.registerEnum('Sys.Mvc.InsertionMode',false);Sys.Mvc.AjaxContext=function(request,updateTarget,loadingElement,insertionMode){this.$3=request;this.$4=updateTarget;this.$1=loadingElement;this.$0=insertionMode;}
|
||||
Sys.Mvc.AjaxContext.prototype={$0:0,$1:null,$2:null,$3:null,$4:null,get_data:function(){if(this.$2){return this.$2.get_responseData();}else{return null;}},get_insertionMode:function(){return this.$0;},get_loadingElement:function(){return this.$1;},get_object:function(){var $0=this.get_response();return ($0)?$0.get_object():null;},get_response:function(){return this.$2;},set_response:function(value){this.$2=value;return value;},get_request:function(){return this.$3;},get_updateTarget:function(){return this.$4;}}
|
||||
Sys.Mvc.AsyncHyperlink=function(){}
|
||||
Sys.Mvc.AsyncHyperlink.handleClick=function(anchor,evt,ajaxOptions){evt.preventDefault();Sys.Mvc.MvcHelpers.$2(anchor.href,'post','',anchor,ajaxOptions);}
|
||||
Sys.Mvc.MvcHelpers=function(){}
|
||||
Sys.Mvc.MvcHelpers.$0=function($p0,$p1,$p2){if($p0.disabled){return null;}var $0=$p0.name;if($0){var $1=$p0.tagName.toUpperCase();var $2=encodeURIComponent($0);var $3=$p0;if($1==='INPUT'){var $4=$3.type;if($4==='submit'){return $2+'='+encodeURIComponent($3.value);}else if($4==='image'){return $2+'.x='+$p1+'&'+$2+'.y='+$p2;}}else if(($1==='BUTTON')&&($0.length)&&($3.type==='submit')){return $2+'='+encodeURIComponent($3.value);}}return null;}
|
||||
Sys.Mvc.MvcHelpers.$1=function($p0){var $0=$p0.elements;var $1=new Sys.StringBuilder();var $2=$0.length;for(var $4=0;$4<$2;$4++){var $5=$0[$4];var $6=$5.name;if(!$6||!$6.length){continue;}var $7=$5.tagName.toUpperCase();if($7==='INPUT'){var $8=$5;var $9=$8.type;if(($9==='text')||($9==='password')||($9==='hidden')||((($9==='checkbox')||($9==='radio'))&&$5.checked)){$1.append(encodeURIComponent($6));$1.append('=');$1.append(encodeURIComponent($8.value));$1.append('&');}}else if($7==='SELECT'){var $A=$5;var $B=$A.options.length;for(var $C=0;$C<$B;$C++){var $D=$A.options[$C];if($D.selected){$1.append(encodeURIComponent($6));$1.append('=');$1.append(encodeURIComponent($D.value));$1.append('&');}}}else if($7==='TEXTAREA'){$1.append(encodeURIComponent($6));$1.append('=');$1.append(encodeURIComponent(($5.value)));$1.append('&');}}var $3=$p0._additionalInput;if($3){$1.append($3);$1.append('&');}return $1.toString();}
|
||||
Sys.Mvc.MvcHelpers.$2=function($p0,$p1,$p2,$p3,$p4){if($p4.confirm){if(!confirm($p4.confirm)){return;}}if($p4.url){$p0=$p4.url;}if($p4.httpMethod){$p1=$p4.httpMethod;}if($p2.length>0&&!$p2.endsWith('&')){$p2+='&';}$p2+='X-Requested-With=XMLHttpRequest';var $0='';if($p1.toUpperCase()==='GET'||$p1.toUpperCase()==='DELETE'){if($p0.indexOf('?')>-1){if(!$p0.endsWith('&')){$p0+='&';}$p0+=$p2;}else{$p0+='?';$p0+=$p2;}}else{$0=$p2;}var $1=new Sys.Net.WebRequest();$1.set_url($p0);$1.set_httpVerb($p1);$1.set_body($0);if($p1.toUpperCase()==='PUT'){$1.get_headers()['Content-Type']='application/x-www-form-urlencoded;';}$1.get_headers()['X-Requested-With']='XMLHttpRequest';var $2=null;if($p4.updateTargetId){$2=$get($p4.updateTargetId);}var $3=null;if($p4.loadingElementId){$3=$get($p4.loadingElementId);}var $4=new Sys.Mvc.AjaxContext($1,$2,$3,$p4.insertionMode);var $5=true;if($p4.onBegin){$5=$p4.onBegin($4)!==false;}if($3){Sys.UI.DomElement.setVisible($4.get_loadingElement(),true);}if($5){$1.add_completed(Function.createDelegate(null,function($p1_0){
|
||||
Sys.Mvc.MvcHelpers.$3($1,$p4,$4);}));$1.invoke();}}
|
||||
Sys.Mvc.MvcHelpers.$3=function($p0,$p1,$p2){$p2.set_response($p0.get_executor());if($p1.onComplete&&$p1.onComplete($p2)===false){return;}var $0=$p2.get_response().get_statusCode();if(($0>=200&&$0<300)||$0===304||$0===1223){if($0!==204&&$0!==304&&$0!==1223){var $1=$p2.get_response().getResponseHeader('Content-Type');if(($1)&&($1.indexOf('application/x-javascript')!==-1)){eval($p2.get_data());}else{Sys.Mvc.MvcHelpers.updateDomElement($p2.get_updateTarget(),$p2.get_insertionMode(),$p2.get_data());}}if($p1.onSuccess){$p1.onSuccess($p2);}}else{if($p1.onFailure){$p1.onFailure($p2);}}if($p2.get_loadingElement()){Sys.UI.DomElement.setVisible($p2.get_loadingElement(),false);}}
|
||||
Sys.Mvc.MvcHelpers.updateDomElement=function(target,insertionMode,content){if(target){switch(insertionMode){case 0:target.innerHTML=content;break;case 1:if(content&&content.length>0){target.innerHTML=content+target.innerHTML.trimStart();}break;case 2:if(content&&content.length>0){target.innerHTML=target.innerHTML.trimEnd()+content;}break;}}}
|
||||
Sys.Mvc.AsyncForm=function(){}
|
||||
Sys.Mvc.AsyncForm.handleClick=function(form,evt){var $0=Sys.Mvc.MvcHelpers.$0(evt.target,evt.offsetX,evt.offsetY);form._additionalInput = $0;}
|
||||
Sys.Mvc.AsyncForm.handleSubmit=function(form,evt,ajaxOptions){evt.preventDefault();var $0=Sys.Mvc.MvcHelpers.$1(form);Sys.Mvc.MvcHelpers.$2(form.action,form.method||'post',$0,form,ajaxOptions);}
|
||||
Sys.Mvc.AjaxContext.registerClass('Sys.Mvc.AjaxContext');Sys.Mvc.AsyncHyperlink.registerClass('Sys.Mvc.AsyncHyperlink');Sys.Mvc.MvcHelpers.registerClass('Sys.Mvc.MvcHelpers');Sys.Mvc.AsyncForm.registerClass('Sys.Mvc.AsyncForm');
|
||||
// ---- Do not remove this footer ----
|
||||
// Generated using Script# v0.5.0.0 (http://projects.nikhilk.net)
|
||||
// -----------------------------------
|
20
src/Orchard.Web/Views/Admin/Foot.aspx
Normal file
20
src/Orchard.Web/Views/Admin/Foot.aspx
Normal file
@@ -0,0 +1,20 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<AdminViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
</div><%-- #content --%>
|
||||
<%-- Navigation --%>
|
||||
<div id="navigation">
|
||||
<div class="leftNavMod">
|
||||
<h4>Dashboard</h4>
|
||||
</div>
|
||||
<%if (Model.AdminMenu != null) {
|
||||
foreach (var menuSection in Model.AdminMenu) {%>
|
||||
<div class="leftNavMod"><h4><%=Html.Encode(menuSection.Text)%></h4><ul><%foreach (var menuItem in menuSection.Items) { %>
|
||||
<li><%=Html.ActionLink(menuItem.Text, (string)menuItem.RouteValues["action"], menuItem.RouteValues)%></li>
|
||||
<%} %></ul></div>
|
||||
<%
|
||||
}
|
||||
}%>
|
||||
</div>
|
||||
</div><%-- #main --%>
|
||||
</body>
|
||||
</html>
|
35
src/Orchard.Web/Views/Admin/Head.aspx
Normal file
35
src/Orchard.Web/Views/Admin/Head.aspx
Normal file
@@ -0,0 +1,35 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<AdminViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"
|
||||
%><%--
|
||||
todo: (heskew) rework how/what pages are assembled when we get into theming --%><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<%-- todo: (heskew) get this from the menu system
|
||||
--%><title>Admin :: Orchard</title>
|
||||
<link href="<%=Page.ResolveClientUrl("~/Content/Admin/css/yui.reset-3.0.0.css") %>" rel="stylesheet" type="text/css" />
|
||||
<%-- todo: (heskew) same as scripts [below]
|
||||
--%><link href="<%=Page.ResolveClientUrl("~/Content/Admin/css/base.css") %>" rel="stylesheet" type="text/css" />
|
||||
<%-- todo: (heskew) this should come from the admin "page" (partial)
|
||||
todo: (heskew) should have at the minimum something like, say, includeScript(scriptName[, releaseScriptName], scriptPath[, releaseScriptPath])
|
||||
--%><script src="<%=Page.ResolveClientUrl("~/Scripts/jquery-1.3.2.js") %>" type="text/javascript"></script>
|
||||
<%-- todo: (heskew) this should come from the admin "page" (partial)
|
||||
--%><script type="text/javascript" src="<%=ResolveUrl("~/Packages/TinyMce/Scripts/tiny_mce.js") %>"></script>
|
||||
<script type="text/javascript">tinyMCE.init({ theme: "advanced", mode: "textareas", plugins: "fullscreen,autoresize", theme_advanced_toolbar_location: "top", theme_advanced_toolbar_align: "left", theme_advanced_buttons3_add: "fullscreen" });</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="banner" role="banner">
|
||||
<h1><%=Html.ActionLink(_("Project Orchard"), "Index", new { Area = "", Controller = "Home" })%></h1>
|
||||
<div><%=Html.ActionLink(_("Your Site"), "Index", new { Area = "", Controller = "Home" })%></div>
|
||||
<% if (Model.CurrentUser != null) {
|
||||
%><div id="login"><%=_(
|
||||
"User: {0} | {1}",
|
||||
Model.CurrentUser.UserName, /* todo: (heskew) need some encode extension methods */
|
||||
Html.ActionLink("Logout", "LogOff", new { Area = "", Controller = "Account" }).ToString()
|
||||
)%></div><%
|
||||
} %>
|
||||
</div>
|
||||
<div id="main" role="main">
|
||||
<div id="content">
|
||||
<% Html.RenderPartial("Messages", Model.Messages); %>
|
@@ -5,39 +5,36 @@
|
||||
<head>
|
||||
<title>Admin :: Orchard</title>
|
||||
<link href="http://yui.yahooapis.com/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css" rel="stylesheet" type="text/css" />
|
||||
<%-- todo: (heskew) same as scripts [below] --%>
|
||||
<link href="<%=Page.ResolveClientUrl("~/Content/Admin/css/Site.css") %>" rel="stylesheet" type="text/css" />
|
||||
<script src="<%=Page.ResolveClientUrl("~/Scripts/jquery-1.2.6.js") %>" type="text/javascript"></script></head>
|
||||
<%-- todo: (heskew) this should come from the admin "page" (partial) --%>
|
||||
<%-- todo: (heskew) should have at the minimum something like, say, includeScript(scriptName[, releaseScriptName], scriptPath[, releaseScriptPath]) --%>
|
||||
<script src="<%=Page.ResolveClientUrl("~/Scripts/jquery-1.3.2.js") %>" type="text/javascript"></script>
|
||||
<%-- todo: (heskew) this should come from the admin "page" (partial) --%>
|
||||
<script type="text/javascript" src="<%=ResolveUrl("~/Packages/TinyMce/Scripts/tiny_mce.js") %>"></script>
|
||||
<script type="text/javascript">
|
||||
tinyMCE.init({
|
||||
theme: "advanced",
|
||||
mode: "textareas",
|
||||
plugins: "fullscreen,autoresize",
|
||||
theme_advanced_toolbar_location: "top",
|
||||
theme_advanced_toolbar_align: "left",
|
||||
theme_advanced_buttons3_add: "fullscreen"
|
||||
});</script>
|
||||
<script type="text/javascript">tinyMCE.init({ theme: "advanced", mode: "textareas", plugins: "fullscreen,autoresize", theme_advanced_toolbar_location: "top", theme_advanced_toolbar_align: "left", theme_advanced_buttons3_add: "fullscreen" });</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="doc3" class="yui-t2">
|
||||
<div id="hd" role="banner">
|
||||
<div class="yui-g">
|
||||
<div class="yui-u first">
|
||||
<h1>
|
||||
<a href="<%=Url.Action("Index", new{Area="",Controller="Home"}) %>"><span class="displayText">
|
||||
Project Orchard</span></a></h1>
|
||||
<%= Html.ActionLink("Your Site", "Index", new { Area = "", Controller = "Home" })%>
|
||||
</div>
|
||||
<div class="yui-u">
|
||||
<% if (Model.CurrentUser != null) { %>
|
||||
<div id="login">
|
||||
User:
|
||||
<%=Model.CurrentUser.UserName%>
|
||||
| <%=Html.ActionLink("Logout", "LogOff", "Account", new {}, new{area=""})%></div>
|
||||
<%} %>
|
||||
<div id="doc3" class="yui-t2">
|
||||
<div id="hd" role="banner">
|
||||
<div class="yui-g">
|
||||
<div class="yui-u first">
|
||||
<h1>
|
||||
<a href="<%=Url.Action("Index", new{Area="",Controller="Home"}) %>"><span class="displayText">
|
||||
Project Orchard</span></a></h1>
|
||||
<%= Html.ActionLink("Your Site", "Index", new { Area = "", Controller = "Home" })%>
|
||||
</div>
|
||||
<div class="yui-u">
|
||||
<% if (Model.CurrentUser != null) { %>
|
||||
<div id="login">
|
||||
User:
|
||||
<%=Model.CurrentUser.UserName%>
|
||||
| <%=Html.ActionLink("Logout", "LogOff", "Account", new {}, new{area=""})%></div>
|
||||
<%} %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="bd" role="main">
|
||||
<div id="yui-main">
|
||||
<div class="yui-b">
|
||||
<% Html.RenderPartial("Messages", Model.Messages); %>
|
||||
<div id="bd" role="main">
|
||||
<div id="yui-main">
|
||||
<div class="yui-b">
|
||||
<% Html.RenderPartial("Messages", Model.Messages); %>
|
@@ -1,15 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc;
|
||||
using Orchard.Localization;
|
||||
|
||||
namespace Orchard.Mvc {
|
||||
public class ViewPage<TModel> : System.Web.Mvc.ViewPage<TModel> {
|
||||
public MvcHtmlString T(string textHint) {
|
||||
return MvcHtmlString.Create(
|
||||
Html.Encode(new LocalizedString(textHint)));
|
||||
public string _(string textHint)
|
||||
{
|
||||
return new LocalizedString(textHint).ToString();
|
||||
}
|
||||
public string _(string textHint, params string[] formatTokens)
|
||||
{
|
||||
return string.Format(_(textHint), formatTokens);
|
||||
}
|
||||
public MvcHtmlString _Encoded(string textHint)
|
||||
{
|
||||
return MvcHtmlString.Create(Html.Encode(_(textHint)));
|
||||
}
|
||||
public MvcHtmlString _Encoded(string textHint, params string[] formatTokens) {
|
||||
return MvcHtmlString.Create(Html.Encode(_(textHint, formatTokens)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user