From 97052713ed40e37027169d7e129006f5b59f0e31 Mon Sep 17 00:00:00 2001 From: wrossiter Date: Wed, 29 Aug 2007 03:32:26 +0000 Subject: [PATCH] yay black candyness in the installer! git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@41006 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- config-form.css | 83 ++++++++++++++++++++++++++++++++++--------- config-form.html | 92 +++++++++++++++++------------------------------- install.php | 4 +-- 3 files changed, 100 insertions(+), 79 deletions(-) diff --git a/config-form.css b/config-form.css index b3f8e35..c572dec 100644 --- a/config-form.css +++ b/config-form.css @@ -1,12 +1,18 @@ +body { + text-align: center; +} + +#Container * { + text-align: left; +} .good td { color: green; } .warning td { - color: orange; + color: #ef7f24; } - .testResults .error td { border: 1px #CCC solid; color: red; @@ -14,30 +20,73 @@ p.error { padding: 0.5em; - background-color: #DDD; - border: 1px #CCC solid; - color: red; + background-color: #ffe9e9; + border: 1px #ff8e8e solid; + color: #f03838; } p.warning { padding: 0.5em; - background-color: #DDD; - border: 1px #CCC solid; - color: orange; + background-color: #fef1e1; + border: 1px #ffc28b solid; + color: #cb6a1c; } p.good { padding: 0.5em; - background-color: #DDD; - border: 1px #CCC solid; - color: #0C0; + background-color: #e2fee1; + border: 1px #43cb3e solid; + color: #359318; } - -.testResults { - border-collapse: collapse; - font-size: 80%; - width: 90%; +p.error a, +p.warning a, +p.good a { + color: inherit; + text-decoration: underline; +} +p.error a:hover { + text-decoration: none; +} +span.middleColumn { + width: 306px; + padding: 4px; + margin-right: 0; +} +input.text, textarea, select { + padding: 2px 0 0 2px; + border: 1px solid #A7A7A7; + color: #000; + height: 1.7em; + font-size: 1.2em; + font-weight: bold; + width: 305px; +} +table.testResults { + border-collapse: collapse; + width: 100%; + margin: 10px 0; +} +#Layout h4 { + font-size: 2em; } .testResults td { border: 1px #CCC solid; width: 400px; - padding: 0.2em; + padding: 4px; +} +.clear { + clear: both; +} +p.mysql, +p.adminAcc { + padding-top: 20px; } +p#mysql_credentials, +p#AdminAccount { + width: 330px; + margin-top: 0; + float: left; +} +#Layout input.action { + text-align: center; + width: auto; + font-size: 1em; +} \ No newline at end of file diff --git a/config-form.html b/config-form.html index e9b5cb4..dd242eb 100644 --- a/config-form.html +++ b/config-form.html @@ -25,15 +25,13 @@
-

- Thanks for choosing to use SilverStripe! Please follow the instructions below to get SilverStripe - installed. -

+

Welcome to SilverStripe

+

Thanks for choosing to use SilverStripe! Please follow the instructions below to get SilverStripe installed.

- You aren't currently able to install the software. Please see below for details. + You aren't currently able to install the software. Please see below for details.

hasWarnings()) { ?> @@ -82,15 +80,9 @@ -

MySQL Database

-

- SilverStripe stores its content in a MySQL database. Please provide the username - and password to connect to the server here. If this account has permission to create databases, then we will - create the database for you; otherwise, you must give the name of a database that already exists. -

- +

MySQL Database

hasErrors()) { ?> -

+

These database details don't appear to be correct. Please enter the correct details before installing.

@@ -99,64 +91,44 @@

-

-
-
-
-
+

+ + + + + + + + +

- -

- -

- -

Details

+

SilverStripe stores its content in a MySQL database. Please provide the username and password to connect to the server here. If this account has permission to create databases, then we will create the database for you; otherwise, you must give the name of a database that already exists.

+
+
Details
showTable("MySQL Configuration"); ?>
-

SilverStripe Administration Account

-

+

SilverStripe Administration Account

+ +

+ + + + + + + + +

+

We will set up 1 administrator account for you automatically. Enter the email address and password. If you'd rather log-in with a username instead of an email address, enter that instead.

-

-
-
-
-
- - -

-
-

Requirements

+

Requirements

showTable(); ?> diff --git a/install.php b/install.php index 5aeda37..15c6e1f 100644 --- a/install.php +++ b/install.php @@ -218,8 +218,8 @@ class InstallRequirements { } else { foreach($this->tests as $section => $tests) { - echo "

$section

"; - echo ""; + echo "
$section
"; + echo "
"; foreach($tests as $test => $result) { echo "";
$test" . nl2br(htmlentities($result[1])) . "