From 9d15cb4f38fa2f0c5cb6e2392b671a45f8cc537c Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 10 Feb 2010 03:22:41 +0000 Subject: [PATCH] ENHANCEMENT #3903 Initial changes to installer to support selection of different database drivers git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98659 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- dev/install/config-form.html | 87 +++++++++++++++++++++--------------- dev/install/install.css | 51 ++++++++++++++++----- 2 files changed, 91 insertions(+), 47 deletions(-) diff --git a/dev/install/config-form.html b/dev/install/config-form.html index 7df291559..01aa07b06 100644 --- a/dev/install/config-form.html +++ b/dev/install/config-form.html @@ -87,8 +87,7 @@

- -

MySQL Database

+

Database

hasErrors()) { ?>

These database details don't appear to be correct. Please enter the correct details before installing. @@ -99,49 +98,69 @@

-

- - id="mysql_server" class="text" type="text" name="mysql[server]" value="" /> - - id="mysql_username" class="text" type="text" name="mysql[username]" value="" /> - - id="mysql_password" class="text" type="password" name="mysql[password]" value="" /> - - +

+ +

+ + + /> + + /> + + /> + + -

-

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 stores its content in a relational SQL 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.

+ showTable("Database Configuration"); ?> + +

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.

- -
-

Development Servers

-

+

Development Servers

+
-

+
+

SilverStripe allows you to run a site in development mode. This shows all error messages in the web browser instead of emailing them to the administrator, and allows @@ -149,14 +168,8 @@ you will be using for development.

-
- -

Requirements

- showTable(); - ?> - + showTable(); ?> diff --git a/dev/install/install.css b/dev/install/install.css index 43d509a87..ad850fe50 100644 --- a/dev/install/install.css +++ b/dev/install/install.css @@ -33,6 +33,10 @@ ul#Themes{ color: red; } +h4.sectionHeading { + margin-top: 20px; +} + p.error { padding: 0.5em; background-color: #ffe9e9; @@ -99,20 +103,47 @@ table.testResults { .clear { clear: both; } -p.mysql, -p.adminAcc, -p.devHelp { +#adminAcc, +#devHelp { padding-top: 20px; } -p#mysql_credentials, -p#AdminAccount, -p#DevSites { + +div.section { + margin-top: 30px; width: 330px; - margin-top: 0; float: left; + overflow: hidden; } + #Layout input.action { text-align: center; - width: 160px; - font-size: 1em; -} \ No newline at end of file + font-size: 13px; + width: 220px; + font-weight: bold; + margin: 5px 0; +} + +#database_credentials { + margin: 0; + line-height: 1; +} + +#database_selection { + width: 200px; + overflow: hidden; + margin: 0; +} + #database_selection li { + float: left; + width: 200px; + } + #database_selection li input { + float: left; + } + #database_selection li label { + float: left; + margin: 0; + margin-left: 5px; + font-weight: bold; + } +