Quickly swapping out the temp "safe mode" theme for the light-n-clean look. Still needs the polish but it's shaping up nicely.
--HG-- branch : dev
@@ -6,9 +6,9 @@ namespace Orchard.Setup.ViewModels {
|
||||
public class SetupViewModel : BaseViewModel {
|
||||
[Required, StringLength(70)]
|
||||
public string SiteName { get; set; }
|
||||
[StringLengthMin(3), StringLength(25)]
|
||||
[Required, StringLengthMin(3), StringLength(25)]
|
||||
public string AdminUsername { get; set; }
|
||||
[Required, StringLengthMin(6), StringLength(20)]
|
||||
[Required, StringLengthMin(6), StringLength(50)]
|
||||
public string AdminPassword { get; set; }
|
||||
[SqlDatabaseConnectionString]
|
||||
public string DatabaseConnectionString { get; set; }
|
||||
|
@@ -11,29 +11,31 @@
|
||||
using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<%=Html.LabelFor(svm => svm.SiteName) %>
|
||||
<%=Html.EditorFor(svm => svm.SiteName) %>
|
||||
<%=Html.ValidationMessage("SiteName", "*") %>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<%=Html.LabelFor(svm => svm.AdminUsername) %>
|
||||
<%=Html.EditorFor(svm => svm.AdminUsername)%>
|
||||
<%=Html.ValidationMessage("AdminUsername", "*")%>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<%=Html.LabelFor(svm => svm.AdminPassword) %>
|
||||
<%=Html.PasswordFor(svm => svm.AdminPassword) %>
|
||||
<%=Html.ValidationMessage("AdminPassword", "*") %>
|
||||
<div>
|
||||
<%=Html.LabelFor(svm => svm.SiteName) %>
|
||||
<%=Html.EditorFor(svm => svm.SiteName) %>
|
||||
<%=Html.ValidationMessage("SiteName", "*") %>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.LabelFor(svm => svm.AdminUsername) %>
|
||||
<%=Html.EditorFor(svm => svm.AdminUsername)%>
|
||||
<%=Html.ValidationMessage("AdminUsername", "*")%>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.LabelFor(svm => svm.AdminPassword) %>
|
||||
<%=Html.PasswordFor(svm => svm.AdminPassword) %>
|
||||
<%=Html.ValidationMessage("AdminPassword", "*") %>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<%=Html.ValidationMessage("DatabaseOptions", "Unable to setup data storage") %>
|
||||
<div>
|
||||
<input type="radio" name="databaseOptions" id="builtin" value="true" checked="checked" />
|
||||
<label for="builtin"><%=_Encoded("Use built-in data storage (SQL Lite)") %></label>
|
||||
<label for="builtin" class="forcheckbox"><%=_Encoded("Use built-in data storage (SQL Lite)") %></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="radio" name="databaseOptions" id="sql" value="false" />
|
||||
<label for="sql"><%=_Encoded("Use an existing SQL Server (or SQL Express) database") %></label>
|
||||
<label for="sql" class="forcheckbox"><%=_Encoded("Use an existing SQL Server (or SQL Express) database") %></label>
|
||||
<!-- Should add some javascript to hide the connection string field if that option isn't selected -->
|
||||
<label for="connection"><%=_Encoded("Connection string") %></label>
|
||||
<%=Html.EditorFor(svm => svm.DatabaseConnectionString)%>
|
||||
|
Before Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 54 B |
Before Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.4 KiB |
BIN
src/Orchard.Web/Themes/SafeMode/Styles/images/orchardLogo.gif
Normal file
After Width: | Height: | Size: 1.6 KiB |
@@ -1,7 +1,6 @@
|
||||
/* CSS Document */
|
||||
|
||||
/*Yahoo browser reset
|
||||
/*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; }
|
||||
@@ -10,270 +9,119 @@ address,caption,cite,code,dfn,em,strong,th,var { font-style:normal; font-weight:
|
||||
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; }
|
||||
q:before,q:after {content:'';}
|
||||
abbr,acronym { border:0;}
|
||||
|
||||
/*Defaults
|
||||
----------------------------------------------------------*/
|
||||
|
||||
html {height: 100%;}
|
||||
|
||||
body {font: normal 100% 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;
|
||||
background:url(../Content/Images/background_pageTop.gif) top left repeat-x #f6faea;
|
||||
body {
|
||||
font: normal 100% Segoe UI,Trebuchet,Arial,Sans-Serif;
|
||||
height: 100%;
|
||||
text-align:left;
|
||||
color:#525e50;
|
||||
color:#333;
|
||||
}
|
||||
|
||||
/* ---------- 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;}
|
||||
|
||||
h1 {font-size: 200%;}
|
||||
h2 {font-size: 170%;}
|
||||
h3 {font-size: 150%;}
|
||||
h1,h2,h3,h4,h5,h6,legend {font-weight:normal; font-style: normal;}
|
||||
|
||||
h1 {font-size: 180%;}
|
||||
h2 {font-size: 160%;}
|
||||
h3 {font-size: 145%;}
|
||||
h4 {font-size: 130%;}
|
||||
h5 {font-size: 120%;}
|
||||
h6 {font-size: 110%;}
|
||||
|
||||
p {line-height:20px; padding:2px 8px;}
|
||||
|
||||
ul {list-style:circle; list-style-position:inside; line-height:22px;}
|
||||
|
||||
/* ---------- links ---------- */
|
||||
a, a:visited {color:#006699;}
|
||||
a:hover {text-decoration: underline;}
|
||||
a:active {color:#006699;}
|
||||
|
||||
#siteInfoContent a, #siteInfoContent a:visited {text-decoration: none;}
|
||||
#siteInfoContent a:hover {text-decoration: underline;}
|
||||
#siteInfoContent a:active {text-decoration: none;}
|
||||
h6 {font-size: 105%;}
|
||||
|
||||
|
||||
/* Forms
|
||||
----------------------------------------------------------*/
|
||||
|
||||
fieldset {margin:10px; padding:10px; border:1px solid #d2d6c6;}
|
||||
|
||||
fieldset label {display: block;}
|
||||
|
||||
legend {font-size:104%; color:#525e50; padding: 2px 4px 8px 4px;}
|
||||
|
||||
.inputText {font-size:102%; margin:4px; padding:2px; border:1px solid #d2d6c6; color:#555; width:200px;}
|
||||
|
||||
select {font-size:102%; margin:4px; padding:2px; border:1px solid #d2d6c6; color:#555; width:200px;}
|
||||
|
||||
.button {text-align:center; padding:2px 6px; color:#27320a;}
|
||||
|
||||
/* Table
|
||||
----------------------------------------------------------*/
|
||||
|
||||
table
|
||||
{
|
||||
border: solid 1px #e8eef4;
|
||||
border-collapse: collapse;
|
||||
#header {
|
||||
background:#2d2f25 url(images/backgroundHeader.gif) no-repeat bottom right;
|
||||
width:100%;
|
||||
height:50px;
|
||||
margin-bottom:40px;
|
||||
}
|
||||
|
||||
table td
|
||||
{
|
||||
padding: 5px;
|
||||
border: solid 1px #e8eef4;
|
||||
}
|
||||
|
||||
table th
|
||||
{
|
||||
padding: 6px 5px;
|
||||
text-align: left;
|
||||
background-color: #e8eef4;
|
||||
border: solid 1px #e8eef4;
|
||||
}
|
||||
|
||||
|
||||
/*Outer layout
|
||||
----------------------------------------------------------*/
|
||||
|
||||
/* -- Wraps the whole page so footer can be pushed down to the bottom. html and body both need to have height set to 100% for this to work -- */
|
||||
|
||||
#wrapper {
|
||||
background:transparent url(../Content/Images/background_page.jpg) no-repeat center top;
|
||||
height:auto;
|
||||
min-height:100%;
|
||||
position:relative;
|
||||
voice-family:inherit;
|
||||
}
|
||||
|
||||
html>body #wrapper {height: auto;}
|
||||
|
||||
|
||||
#branding {
|
||||
width:960px;
|
||||
#branding{
|
||||
background:url(images/orchardLogo.gif) no-repeat;
|
||||
display:block;
|
||||
height:90px;
|
||||
margin:0em auto;
|
||||
}
|
||||
|
||||
#branding h1 a {
|
||||
background:url(../Content/Images/orchardLogo.jpg) no-repeat scroll 0 0;
|
||||
float:left;
|
||||
display:block;
|
||||
width:216px;
|
||||
height:90px;
|
||||
position:relative;
|
||||
top:-4px;
|
||||
margin-bottom:-4px;
|
||||
z-index:0;
|
||||
}
|
||||
|
||||
#logindisplay {
|
||||
float:right;
|
||||
margin:28px 8px 0 0;
|
||||
color: #c6ccb4;
|
||||
color: #e7ebdb;
|
||||
}
|
||||
|
||||
#logindisplay a {
|
||||
color: #e7ebdb;
|
||||
|
||||
}
|
||||
|
||||
#menucontainer{
|
||||
width:960px;
|
||||
display:block;
|
||||
height:44px;
|
||||
margin:0em auto;
|
||||
clear:both;
|
||||
}
|
||||
|
||||
#content {
|
||||
background:url(../Content/Images/background_content.jpg) no-repeat center top #FFF;
|
||||
height:100%;
|
||||
margin:0px auto;
|
||||
padding:0px;
|
||||
width:960px;
|
||||
}
|
||||
|
||||
#contentMain {
|
||||
float:left;
|
||||
padding:14px 10px 10px 16px;
|
||||
width:560px;
|
||||
}
|
||||
|
||||
#contentFull {
|
||||
padding:14px 10px 10px 16px;
|
||||
}
|
||||
|
||||
#contentSub {
|
||||
float:right;
|
||||
padding:24px 10px 10px 10px;
|
||||
width:345px;
|
||||
background:url(../Content/Images/background_module.gif) no-repeat bottom right;
|
||||
}
|
||||
|
||||
#siteInfo {
|
||||
bottom: 0;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
#siteInfoContent {
|
||||
margin:0 auto;
|
||||
background:url(../Content/Images/background_footer.jpg) no-repeat center top;
|
||||
height:120px;
|
||||
width:960px;
|
||||
vertical-align:bottom;
|
||||
text-align:center;
|
||||
height:60px;
|
||||
margin:0 0 0 20px;;
|
||||
}
|
||||
|
||||
|
||||
#siteInfoContent ul{
|
||||
padding:80px 0 0 0;
|
||||
list-style:none;
|
||||
#branding h1{
|
||||
font-size: 140%;
|
||||
color:#fff;
|
||||
padding:8px 0 0 40px;
|
||||
}
|
||||
|
||||
#siteInfoContent ul li {
|
||||
display:inline;
|
||||
margin:0px;
|
||||
padding: 0 8px;
|
||||
|
||||
#main {
|
||||
margin:0 auto;
|
||||
width:600px;
|
||||
}
|
||||
|
||||
/* left column containers
|
||||
----------------------------------------------------------*/
|
||||
#contentMain h2 {padding:4px 0 12px 0;}
|
||||
|
||||
#contentFull h2 {padding:4px 0 12px 0;}
|
||||
|
||||
#contentFull h4 {border-bottom:1px dashed #e4e7dc; padding:4px 0 12px 0;margin-bottom:5px;}
|
||||
|
||||
.moduleContentMain {margin:0 0 22px 0; overflow:auto;}
|
||||
|
||||
.moduleContentFull {margin:0 0 5px 0; overflow:auto;}
|
||||
|
||||
.moduleContentMain img.left {padding:0 6px 0 0; float:left;}
|
||||
|
||||
/* right column containers
|
||||
/* Forms
|
||||
----------------------------------------------------------*/
|
||||
|
||||
#contentSub h6 {border-bottom:1px dashed #e4e7dc;}
|
||||
|
||||
#contentFull h6 {font-style:italic;}
|
||||
|
||||
.navSub, .moduleSub {margin:0 0 12px 0; padding:8px 0 6px 0;}
|
||||
|
||||
|
||||
/* Top navigation pane
|
||||
----------------------------------------------------------*/
|
||||
|
||||
#menucontainer ul{
|
||||
margin:0;
|
||||
padding:0;
|
||||
list-style:none;
|
||||
float:left;
|
||||
input[type="text"], #password {
|
||||
border:1px solid #DDDEDF;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#menucontainer ul li {
|
||||
float:left;
|
||||
margin:0 8px;
|
||||
form {
|
||||
border:1px solid #DDDEDF;
|
||||
padding:10px 0;
|
||||
background:transparent url(images/backgroundVines.gif) no-repeat right bottom;
|
||||
}
|
||||
|
||||
#menucontainer ul li a, #menucontainer ul li a:visited, #menucontainer ul li a:active {
|
||||
display:block;
|
||||
padding:12px 12px 10px 12px;
|
||||
color: #e2e4dd;
|
||||
font-size:104%;
|
||||
text-decoration: none;
|
||||
fieldset div {
|
||||
margin:20px 20px 32px 20px;
|
||||
}
|
||||
|
||||
legend {
|
||||
font-size: 110%;
|
||||
font-weight:500;
|
||||
border:none;
|
||||
margin:0 20px;
|
||||
}
|
||||
|
||||
label {
|
||||
display:block;
|
||||
}
|
||||
|
||||
#menucontainer ul li a:hover {
|
||||
color:#ffea9b;
|
||||
label.forcheckbox {
|
||||
display:inline;
|
||||
}
|
||||
|
||||
input[type="text"], #password {
|
||||
border-color:#ccc;
|
||||
padding:4px;
|
||||
width:98%;
|
||||
}
|
||||
|
||||
button, .button, .button:visited {
|
||||
font-size: 102%;
|
||||
background:#4687ad;
|
||||
border:1px solid #8f8f8f;
|
||||
color:#fff;
|
||||
font-weight:600;
|
||||
cursor:pointer;
|
||||
text-align:center;
|
||||
margin:0 0 20px 20px;
|
||||
padding:4px 14px;
|
||||
}
|
||||
|
||||
button:hover, .button:hover,
|
||||
button:active, .button:active,
|
||||
button:focus, .button:focus {
|
||||
background:#ffac40;
|
||||
border-color:#bb8b2d;
|
||||
color:#fff;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
#menucontainer ul li.On {background:url(../Content/Images/tabOn.gif) no-repeat bottom center;}
|
||||
|
||||
/* BlogStyles
|
||||
----------------------------------------------------------*/
|
||||
|
||||
ul.blogs, ul.blogPosts {list-style:none;}
|
||||
|
||||
|
||||
/* Miscellaneous
|
||||
----------------------------------------------------------*/
|
||||
|
||||
.floatLeft {float: left;} /*Use this class to float anything to the left*/
|
||||
|
||||
.floatRight {float: right;} /*Use this class to float anything to the right*/
|
||||
|
||||
.alignRight {text-align: right;}
|
||||
|
||||
.Inline {display: inline;}
|
||||
|
||||
.center {margin:0 auto;} /*Center*/
|
||||
|
||||
.clearLayout {clear:both;} /*Use this class clear layout*/
|
||||
|
||||
.disabled {color:#CCC;}
|
||||
|
||||
.topSpacer {margin-top: 30px;}
|
||||
|
||||
.bottomSpacer {margin-bottom: 20px;}
|
||||
|
||||
.displayText {display:none;}
|
||||
|
||||
strong { font-weight:bold; }
|
@@ -1,11 +0,0 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||
|
||||
<div id="siteInfo">
|
||||
<div id="siteInfoContent">
|
||||
<ul>
|
||||
<li><a href="/">Link 1</a></li>
|
||||
<li><a href="/">Link 2</a></li>
|
||||
<li><a href="/">Link 3</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
@@ -1,52 +1,13 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BaseViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<%
|
||||
<% //todo: (heskew) this should really be using the IResourceManager if it's to be a theme
|
||||
var siteCss = ResolveUrl("../Styles/site.css");
|
||||
Model.Zones.AddAction("head:styles", html =>
|
||||
html.ViewContext.Writer.Write(@"<link rel=""stylesheet"" type=""text/css"" href="""+siteCss+@"""/>")); %>
|
||||
|
||||
<div id="wrapper">
|
||||
<div id="branding">
|
||||
<h1>
|
||||
<a href="/"><span class="displayText">Project Orchard</span></a></h1>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="content" class="clearLayout">
|
||||
<ol id="contentMain">
|
||||
<li class="moduleContentMain">
|
||||
<%--Main Content--%>
|
||||
<%Html.ZoneBody("content");%>
|
||||
</li>
|
||||
</ol>
|
||||
<%--Right sidebar--%>
|
||||
<ol id="contentSub">
|
||||
<li class="moduleSub">
|
||||
<h6>
|
||||
Sidebar</h6>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas adipiscing dolor
|
||||
vel nunc molestie laoreet. Curabitur vitae elit et massa consequat interdum. Curabitur
|
||||
blandit leo nec magna dictum vitae mollis tellus gravida. Morbi non condimentum
|
||||
neque. Suspendisse commodo condimentum feugiat. Class aptent taciti sociosqu ad
|
||||
litora torquent per conubia nostra, per inceptos himenaeos.</p>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas adipiscing dolor
|
||||
vel nunc molestie laoreet. Curabitur vitae elit et massa consequat interdum. Curabitur
|
||||
blandit leo nec magna dictum vitae mollis tellus gravida. Morbi non condimentum
|
||||
neque. Suspendisse commodo condimentum feugiat. Class aptent taciti sociosqu ad
|
||||
litora torquent per conubia nostra, per inceptos himenaeos.</p>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas adipiscing dolor
|
||||
vel nunc molestie laoreet. Curabitur vitae elit et massa consequat interdum. Curabitur
|
||||
blandit leo nec magna dictum vitae mollis tellus gravida. Morbi non condimentum
|
||||
neque. Suspendisse commodo condimentum feugiat. Class aptent taciti sociosqu ad
|
||||
litora torquent per conubia nostra, per inceptos himenaeos.</p>
|
||||
</li>
|
||||
</ol>
|
||||
<div class="clearLayout">
|
||||
</div>
|
||||
</div>
|
||||
<%-- End Content --%>
|
||||
<div id="header">
|
||||
<div id="branding"><h1>Welcome to Orchard</h1></div>
|
||||
</div>
|
||||
<div id="main">
|
||||
<%Html.ZoneBody("content"); %>
|
||||
</div>
|
@@ -1,9 +0,0 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||
<div id="menucontainer">
|
||||
<ul id="menu">
|
||||
<li><%= Html.ActionLink("Home", "Index", "Home", new {Area = ""}, new {})%></li>
|
||||
<li><%= Html.ActionLink("About", "About", "Home", new {Area = ""}, new {})%></li>
|
||||
<li><%= Html.ActionLink("Blogs", "List", "Blog", new {Area = "Orchard.Blogs"}, new {})%></li>
|
||||
<li><%= Html.ActionLink("Admin", "List", new {Area = "Orchard.Blogs", Controller = "BlogAdmin"})%></li>
|
||||
</ul>
|
||||
</div>
|