mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT:incorporating "simple" theme into the the SS3 Install - styling the install page to fit with the "simple" theme
This commit is contained in:
parent
d71b04fa19
commit
63b23a2155
@ -5,25 +5,28 @@
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript" src="sapphire/thirdparty/jquery/jquery.js"></script>
|
||||
<script type="text/javascript" src="sapphire/dev/install/install.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="themes/blackcandy/css/layout.css">
|
||||
<link rel="stylesheet" type="text/css" href="themes/blackcandy/css/typography.css">
|
||||
<link rel="stylesheet" type="text/css" href="themes/blackcandy/css/form.css">
|
||||
<link rel="stylesheet" type="text/css" href="themes/simple/css/layout.css">
|
||||
<link rel="stylesheet" type="text/css" href="themes/simple/css/typography.css">
|
||||
<link rel="stylesheet" type="text/css" href="themes/simple/css/form.css">
|
||||
<link rel="stylesheet" type="text/css" href="sapphire/dev/install/install.css">
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
</head>
|
||||
<body>
|
||||
<div id="BgContainer">
|
||||
<div id="Container">
|
||||
<div id="Header">
|
||||
<h1>SilverStripe CMS / Framework Installation</h1>
|
||||
<body class="page no-sidebar">
|
||||
<div class="header">
|
||||
<div class="inner">
|
||||
<div class="brand">
|
||||
<h1>SilverStripe</h1>
|
||||
</div>
|
||||
<p>Version <?php echo $silverstripe_version; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="Navigation"> </div>
|
||||
<div class="clear"><!-- --></div>
|
||||
|
||||
<div id="Layout">
|
||||
<div class="typography">
|
||||
<div class="main">
|
||||
<div class="inner">
|
||||
<div class="content-container">
|
||||
<h1>CMS/Framework Installation</h1>
|
||||
<p>Thanks for choosing to use SilverStripe! Please follow the instructions below and you should be up in running in no time.<br>
|
||||
If you get stuck, head over to the <a href="http://silverstripe.org/installing-silverstripe" target="_blank">installation forum</a>, or check out our <a href="http://doc.silverstripe.org/doku.php?id=suggested-web-hosts" target="_blank">list of suggested web hosts</a> known to work with SilverStripe.
|
||||
</p>
|
||||
@ -67,7 +70,7 @@
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<h4 id="requirements"><em class="inlineBarText">Requirements</em> <span>Step: 1 of 5</span></h4>
|
||||
<h2 id="requirements"><em class="inlineBarText">Requirements</em> <span>Step: 1 of 5</span></h2>
|
||||
<?php $req->showTable(); ?>
|
||||
<?php $dbReq->showTable(); ?>
|
||||
|
||||
@ -76,10 +79,10 @@
|
||||
</p>
|
||||
|
||||
<div class="action">
|
||||
<input type="submit" class="action" value="Re-check requirements">
|
||||
<input type="submit" class="action" value="Re-check requirements?">
|
||||
</div>
|
||||
|
||||
<h4 class="sectionHeading"><em class="inlineBarText">Database</em> <span>Step: 2 of 5</span></h4>
|
||||
<h2 class="sectionHeading"><em class="inlineBarText">Database</em> <span>Step: 2 of 5</span></h2>
|
||||
<div id="database_credentials" class="section">
|
||||
|
||||
<?php $dbReq->showTable("Database Configuration"); ?>
|
||||
@ -186,20 +189,20 @@
|
||||
</div>
|
||||
|
||||
<div class="action">
|
||||
<input type="submit" class="action" value="Re-check requirements">
|
||||
<input type="submit" class="action" value="Re-check requirements?">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clear"><!-- --></div>
|
||||
|
||||
<h4><em class="inlineBarText">CMS Admin Account</em> <span>Step: 3 of 5</span></h4>
|
||||
<h2><em class="inlineBarText">CMS Admin Account</em> <span>Step: 3 of 5</span></h2>
|
||||
|
||||
<div id="AdminAccount" class="section">
|
||||
|
||||
<div class="fieldGroup">
|
||||
<p class="helpText">We will set up the first administrator account for you automatically. You can change these details later in the "Security" section within the CMS.</p>
|
||||
|
||||
<div class="fields">
|
||||
<div class="field">
|
||||
<label for="admin_username">Email:</label>
|
||||
<span class="middleColumn">
|
||||
@ -214,6 +217,7 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldGroup">
|
||||
<p class="helpText">
|
||||
@ -223,7 +227,7 @@
|
||||
<br><br>
|
||||
Warning: The CMS interface may be missing translations in certain locales.
|
||||
</p>
|
||||
|
||||
<div class="fields">
|
||||
<div class="field">
|
||||
<label for="locale">Default language:</label>
|
||||
<span class="middleColumn">
|
||||
@ -240,17 +244,18 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><em class="inlineBarText">Theme</em> <span>Step: 4 of 5</span></h4>
|
||||
<h2><em class="inlineBarText">Theme</em> <span>Step: 4 of 5</span></h2>
|
||||
<p class="helpText">You can change the theme or <a href="http://silverstripe.org/themes">download</a> another from the SilverStripe website after installation.</p>
|
||||
<div class="field">
|
||||
<div class="fields">
|
||||
<ul id="Themes">
|
||||
<li><input type="radio" name="template" value="blackcandy" id="BlackCandy" <?php if(!isset($_POST['template']) || $_POST['template'] == 'blackcandy') {?>checked="checked"<?php }?>><label for="BlackCandy"><a href="http://silverstripe.org/blackcandy/">BlackCandy</a> - our default theme ready to use.</label></li>
|
||||
<li><input type="radio" name="template" value="simple" id="Simple" <?php if(!isset($_POST['template']) || $_POST['template'] == 'Simple') {?>checked="checked"<?php }?>><label for="Simple"><a href="http://silverstripe.org/Simple/">Simple</a> - our default theme ready to use.</label></li>
|
||||
<li><input type="radio" name="template" value="tutorial" id="EmptyTemplate" <?php if(isset($_POST['template']) && $_POST['template'] == 'tutorial') {?>checked="checked"<?php }?>><label for="EmptyTemplate">Empty template - ready to begin the <a href="http://doc.silverstripe.org/doku.php?id=tutorials" target="_blank">tutorial</a>.</label></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<h4 id="install"><em class="inlineBarText">Confirm Install</em> <span>Step: 5 of 5</span></h4>
|
||||
<h2 id="install"><em class="inlineBarText">Confirm Install</em> <span>Step: 5 of 5</span></h2>
|
||||
|
||||
<?php if(isset($hasErrorOtherThanDatabase)) { ?>
|
||||
<p class="error">
|
||||
@ -281,10 +286,11 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"><!-- --></div>
|
||||
</div>
|
||||
<div class="clear"><!-- --></div>
|
||||
|
||||
<div id="Footer">
|
||||
<div class="footer">
|
||||
<div class="inner">
|
||||
<div class="footerTop"><!-- --></div>
|
||||
<p><a href="http://silverstripe.org">SilverStripe Open Source CMS / Framework</a> | Copyright © <?php echo date('Y'); ?> SilverStripe Limited</p>
|
||||
</div>
|
||||
|
@ -1,18 +1,17 @@
|
||||
body {
|
||||
text-align: center;
|
||||
.header {
|
||||
padding-bottom:10px;
|
||||
}
|
||||
|
||||
#Container .typography p {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
.header p {
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
#Container * {
|
||||
text-align: left;
|
||||
.brand {
|
||||
float:none;
|
||||
}
|
||||
|
||||
#Header p {
|
||||
margin-left: 30px;
|
||||
#Navigation {
|
||||
display:none;
|
||||
}
|
||||
|
||||
ul#Themes{
|
||||
@ -20,6 +19,7 @@ ul#Themes{
|
||||
margin: 0 5px 20px 5px;
|
||||
float: left;
|
||||
width: 320px;
|
||||
padding:0;
|
||||
}
|
||||
ul#Themes li {
|
||||
clear: both;
|
||||
@ -35,7 +35,7 @@ ul#Themes{
|
||||
margin: -2px 5px 0 15px;
|
||||
}
|
||||
|
||||
h4.sectionHeading {
|
||||
h1.sectionHeading {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
@ -45,10 +45,11 @@ h4.sectionHeading {
|
||||
border: 1px #ff8e8e solid;
|
||||
color: #f03838;
|
||||
}
|
||||
#Container p.error { color: #f03838;}
|
||||
.main p.error { color: #f03838;}
|
||||
.warning {
|
||||
padding: 0.5em;
|
||||
background-color: #fcf8f2;
|
||||
border-radius:4px;
|
||||
border: 1px #ffc28b solid;
|
||||
color: #cb6a1c;
|
||||
}
|
||||
@ -81,9 +82,9 @@ p.error a:hover {
|
||||
}
|
||||
span.middleColumn {
|
||||
width: 297px;
|
||||
margin-right: 0;
|
||||
margin-top: 5px;
|
||||
margin:0;
|
||||
padding: 4px;
|
||||
float:right;
|
||||
}
|
||||
input.text, textarea, select {
|
||||
padding: 2px;
|
||||
@ -99,25 +100,19 @@ input.text, textarea, select {
|
||||
#stats {
|
||||
margin-right: 5px;
|
||||
}
|
||||
table.testResults {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin: 10px 0;
|
||||
}
|
||||
#Layout h4 {
|
||||
font-size: 2em;
|
||||
|
||||
.main h2 {
|
||||
margin: 36px 0 18px 0;
|
||||
font-weight: bold;
|
||||
line-height: 1.8;
|
||||
clear: left;
|
||||
border-top: 2px solid #888;
|
||||
text-indent: 5px;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
border-top:1px solid #E5E5E5;
|
||||
}
|
||||
#Layout h4 span {
|
||||
.main h2 span {
|
||||
float: right;
|
||||
font-size: 10px;
|
||||
font-size: 0.8em;
|
||||
padding: 10px 10px 0 0;
|
||||
font-weight: normal;
|
||||
color: #888;
|
||||
@ -127,7 +122,9 @@ table.testResults {
|
||||
* Requirements and test results
|
||||
* ------------------------------------------------ */
|
||||
table.testResults {
|
||||
margin-top: 0;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin: -1px 0px 10px 0;
|
||||
}
|
||||
table.testResults td {
|
||||
border: 1px #CCC solid;
|
||||
@ -160,7 +157,8 @@ h5.requirement {
|
||||
padding: 10px;
|
||||
background: #f1f1f1;
|
||||
border: 1px solid #ccc;
|
||||
border-width: 0 1px 1px 1px;
|
||||
border-radius:4px 4px 0 0;
|
||||
border-width: 1px;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
@ -179,7 +177,7 @@ h5.requirement {
|
||||
h5.requirement a {
|
||||
font-size: 10px;
|
||||
float: right;
|
||||
line-height: 19px;
|
||||
line-height: 13px;
|
||||
margin: 0 0 0 30px;
|
||||
color: #666;
|
||||
text-decoration: none;
|
||||
@ -198,9 +196,9 @@ h5.requirement {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#Layout .helpText {
|
||||
.main .helpText {
|
||||
float: right;
|
||||
width: 370px;
|
||||
width: 350px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
@ -210,7 +208,7 @@ h5.requirement {
|
||||
|
||||
.fields {
|
||||
float: left;
|
||||
width: 330px;
|
||||
width: 450px;
|
||||
}
|
||||
|
||||
#devHelp,
|
||||
@ -218,16 +216,23 @@ h5.requirement {
|
||||
height: 18em;
|
||||
}
|
||||
|
||||
#Layout input.action {
|
||||
text-align: center;
|
||||
.main .action input{
|
||||
cursor:pointer;
|
||||
text-align:center;
|
||||
color:#fff;
|
||||
background-color:#EF7F24;
|
||||
border:none;
|
||||
border-radius:4px;
|
||||
font-size: 13px;
|
||||
width: 220px;
|
||||
font-weight: bold;
|
||||
margin: 5px 0;
|
||||
padding:5px;
|
||||
font-family:"HelveticaNeueLTPro-Bd", "Helvetica Neue LT Pro Bold", "HelveticaNeueBold", "HelveticaNeue-Bold", "Helvetica Neue Bold", "Helvetica Neue LT Pro", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
#use_environment_field {
|
||||
margin-bottom: 25px;
|
||||
margin: 20px 0 10px;
|
||||
}
|
||||
|
||||
#use_environment_field input {
|
||||
@ -236,7 +241,7 @@ h5.requirement {
|
||||
}
|
||||
|
||||
.dbfields {
|
||||
margin: 10px;
|
||||
margin: 10px 10px 10px 0;
|
||||
}
|
||||
|
||||
#database_credentials {
|
||||
@ -247,26 +252,60 @@ h5.requirement {
|
||||
#database_selection {
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
padding-left:5px;
|
||||
}
|
||||
#database_selection li {
|
||||
margin-left: 0;
|
||||
padding-left: 0;
|
||||
list-style-type:none;
|
||||
}
|
||||
#database_selection li input {
|
||||
margin-right: 5px;
|
||||
border-radius:4px;
|
||||
background:#ededed;
|
||||
}
|
||||
#database_selection li label {
|
||||
display: inline;
|
||||
|
||||
#database_selection li input:focus{
|
||||
outline:none; background-color:#fff;
|
||||
}
|
||||
|
||||
#database_selection li .field label {
|
||||
float:left;
|
||||
margin-top:15px;
|
||||
}
|
||||
|
||||
#AdminAccount input {
|
||||
border-radius:4px;
|
||||
background:#ededed;
|
||||
}
|
||||
|
||||
#AdminAccount select {
|
||||
border-radius:4px;
|
||||
background:none;
|
||||
margin-top:5px;
|
||||
}
|
||||
|
||||
#AdminAccount select:focus{
|
||||
outline:none;
|
||||
}
|
||||
|
||||
#AdminAccount input:focus{
|
||||
outline:none; background-color:#fff;
|
||||
}
|
||||
|
||||
#AdminAccount .field label {
|
||||
float:left;
|
||||
margin-top:15px;
|
||||
}
|
||||
|
||||
.databaseError {
|
||||
clear:both;
|
||||
overflow: hidden;
|
||||
width: 290px;
|
||||
line-height: 1.2;
|
||||
margin: 10px;
|
||||
margin-bottom: 0;
|
||||
margin: 10px 0 20px;
|
||||
display: none;
|
||||
border-radius:4px;
|
||||
}
|
||||
|
||||
.databaseError ul {
|
||||
@ -277,6 +316,21 @@ h5.requirement {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
input#install_button {
|
||||
cursor:pointer;
|
||||
text-align:center;
|
||||
color:#fff;
|
||||
background-color:#359318;
|
||||
border:none;
|
||||
border-radius:4px;
|
||||
font-size: 13px;
|
||||
width: 220px;
|
||||
font-weight: bold;
|
||||
margin: 5px 0;
|
||||
padding:5px;
|
||||
font-family:"HelveticaNeueLTPro-Bd", "Helvetica Neue LT Pro Bold", "HelveticaNeueBold", "HelveticaNeue-Bold", "Helvetica Neue Bold", "Helvetica Neue LT Pro", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
.goodInstall {
|
||||
padding: 0.5em;
|
||||
background-color: #e2fee1;
|
||||
@ -286,7 +340,7 @@ h5.requirement {
|
||||
line-height: 18px;
|
||||
padding: 10px;
|
||||
}
|
||||
#Layout p.goodInstall {
|
||||
.main p.goodInstall {
|
||||
color: #359318;
|
||||
}
|
||||
.goodInstall a {
|
||||
|
@ -945,9 +945,9 @@ class Installer extends InstallRequirements {
|
||||
<html>
|
||||
<head>
|
||||
<title>Installing SilverStripe...</title>
|
||||
<link rel="stylesheet" type="text/css" href="themes/blackcandy/css/layout.css" />
|
||||
<link rel="stylesheet" type="text/css" href="themes/blackcandy/css/typography.css" />
|
||||
<link rel="stylesheet" type="text/css" href="themes/blackcandy/css/form.css" />
|
||||
<link rel="stylesheet" type="text/css" href="themes/simple/css/layout.css" />
|
||||
<link rel="stylesheet" type="text/css" href="themes/simple/css/typography.css" />
|
||||
<link rel="stylesheet" type="text/css" href="themes/simple/css/form.css" />
|
||||
<link rel="stylesheet" type="text/css" href="sapphire/dev/install/install.css" />
|
||||
<script src="sapphire/thirdparty/jquery/jquery.js"></script>
|
||||
</head>
|
||||
@ -1017,7 +1017,7 @@ class Installer extends InstallRequirements {
|
||||
$fh = fopen('mysite/_config.php', 'wb');
|
||||
fclose($fh);
|
||||
}
|
||||
$theme = isset($_POST['template']) ? $_POST['template'] : 'blackcandy';
|
||||
$theme = isset($_POST['template']) ? $_POST['template'] : 'simple';
|
||||
$locale = isset($_POST['locale']) ? $_POST['locale'] : 'en_US';
|
||||
$type = $config['db']['type'];
|
||||
$dbConfig = $config['db'][$type];
|
||||
|
Loading…
Reference in New Issue
Block a user