From be1be0b87594a2a2249f39a5ee727430f35719d1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 19 Dec 2010 15:10:59 -0500 Subject: Jettison the ugly yellow box. Customize the title of each page in the header of table. If an error has occurred do not show the begin installation button. --- usr/local/www/installer/installer.php | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'usr') diff --git a/usr/local/www/installer/installer.php b/usr/local/www/installer/installer.php index 279e565..f5db9a9 100644 --- a/usr/local/www/installer/installer.php +++ b/usr/local/www/installer/installer.php @@ -432,7 +432,7 @@ function verify_before_install() { $non_encrypted_notice = false; head_html(); body_html(); - page_table_start(); + page_table_start($g['product_name'] . " installer - Verify final installation settings"); // If we are visiting this step from anything but the row editor / custom install // then load the on disk layout contents if they are available. if(!$_REQUEST['fstype0'] && file_exists("/tmp/webInstaller_disk_layout.txt")) { @@ -464,14 +464,14 @@ function verify_before_install() { } if($tmparray['mountpoint'] == "/conf") { $tmparray['mountpoint'] = "/conf{$x}"; - $error_txt .= "
/conf is not an allowed mount point and has been renamed to /conf{$x}.

"; + $error_txt[] = "/conf is not an allowed mount point and has been renamed to /conf{$x}."; } } else { $tmparray['mountpoint'] = "none"; } // If we have an encrypted /root and lack a non encrypted /boot, throw an error/warning if($encrypted_root && !$non_encrypted_boot && !$non_encrypted_notice) { - $error_txt .= "
A non-encrypted /boot slice is required when encrypting the / slice

"; + $error_txt[] = "A non-encrypted /boot slice is required when encrypting the / slice"; $non_encrypted_notice = true; } $tmparray['disk'] = $_REQUEST['disk' . $x]; @@ -490,7 +490,7 @@ function verify_before_install() {
- +
@@ -529,7 +526,7 @@ function verify_before_install() { Encryption password -EOFAMBAC; +EOFAMBACBAF; foreach($disks as $disk) { $desc = pcsysinstall_get_disk_info($disk['disk']); @@ -555,14 +552,18 @@ echo <<

   - +EOFAMB; + if(!$error_txt) + echo " "; +echo <<

@@ -500,15 +500,12 @@ function verify_before_install() {
- - - - -
-
Please verify that the following is correct:
-
-

- {$error_txt} +EOFAMBAC; + // If errors are found, throw the big red box. + if ($error_txt) + print_input_errors($error_txt); + echo <<

Boot manager: {$bootmanager}

+EOFAMBASDF; -EOFAMB; page_table_end(); end_html(); @@ -686,7 +687,7 @@ function installer_custom() { unlink("/tmp/.pc-sysinstall/pc-sysinstall.log"); head_html(); body_html(); - page_table_start(); + page_table_start($g['product_name'] . " installer - Customize disk(s) layout"); echo << function row_helper_dynamic_custom(tr) { -- cgit v1.1