Project

General

Profile

« Previous | Next » 

Revision 1fb1f3fe

Added by Scott Ullrich about 15 years ago

Format options screen in a table

View differences:

usr/local/www/installer.php
615 615
														</td>
616 616
													</tr>
617 617
												</table><p/>
618
												<table>
618 619
EOF;
619
		$custom_txt .= "Disk: <select name='disk'>\n";
620
		$custom_txt .= "<tr><td align='right'><b>Disk:</td><td><select name='disk'>\n";
620 621
		foreach($disks as $disk) {
621 622
			$disksize = format_bytes($disk['size'] * 1048576);
622 623
			$custom_txt .= "<option value='{$disk['disk']}'>{$disk['disk']} - {$disksize} - {$disk['desc']}</option>\n";
623 624
		}
624
		$custom_txt .= "</select><p/>\n";
625
		$custom_txt .= "</select></td></tr>\n";
625 626
		// XXX: Convert to rowhelper.  Add Ajax callbacks to verify sizes, etc.
626 627
		// Prepare disk types
627
		$custom_txt .=  "Filesystem type: <select name='fstype'>\n";
628
		$custom_txt .=  "<tr><td align='right'><b>Filesystem type:</td><td><select name='fstype'>\n";
628 629
		$custom_txt .=  "<option value='UFS'>UFS</option>\n";
629 630
		$custom_txt .=  "<option value='UFS+S'>UFS + Softupdates</option>\n";
630 631
		$release = trim(`uname -r | cut -d'.' -f1`);
......
632 633
			$custom_txt .=  "<option value='UFS+J'>UFS + Journaling</option>\n";
633 634
		if(file_exists("/boot/gptzfsboot")) 
634 635
			$custom_txt .= "<option value='ZFS'>ZFS</option>\n";
635
		$custom_txt .= "</select>\n";
636
		$custom_txt .= "</select>\n</td></tr></table><p/>";
636 637
	}
637 638
	echo <<<EOF
638 639
													<script type="text/javascript">
......
647 648
														\$('contentdiv').appear();
648 649
													</script>
649 650
												</center>
651
												</td></tr>
652
												</table>
650 653
											</div>
651 654
			     						</td>
652 655
									</tr>

Also available in: Unified diff