summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/modules/gentoo/step3.php')
-rw-r--r--frontend/modules/gentoo/step3.php29
1 files changed, 12 insertions, 17 deletions
diff --git a/frontend/modules/gentoo/step3.php b/frontend/modules/gentoo/step3.php
index 2f66325..9dd523a 100644
--- a/frontend/modules/gentoo/step3.php
+++ b/frontend/modules/gentoo/step3.php
@@ -1,18 +1,13 @@
<?php
-function gentoo_init_step3() {
- return array('title' => 'Step 3 - Image Format');
-}
-function gentoo_body_step3() {
- echo 'Image type: <select name="image_type"><option value="tgz">Tar/Gzip</option><option value="tbz2">Tar/Bzip2</option><option value="installcd">Installer CD with Tar/Bzip2 image</option><option value="livecd">LiveCD</option><option value="ext2">ext2</option><option value="jffs2">jffs2</option></select><br/>';
-}
-function gentoo_process_step3() {
- global $S, $request;
- if (isset($request['image_type'])) {
- debug('wizard', 'step3: image type='.$request['image_type']);
- $opt=new sql_configopt($S['wizard.configuration']->id, 'image_type', $request['image_type']);
- $opt->write();
- } else {
- debug('wizard', 'step3: no image_type variable');
- }
- return true;
-}
+// TODO This shouldn't be a step at all, it should be in wizard.php to choose between output modules
+$title='Image Format';
+$this->select('image_type', 'image_type', 'Image type', array(
+ 'tgz' => 'Tar/Gzip',
+ 'tbz2' => 'Tar/Bzip2',
+ 'installcd' => 'Installer CD with Tar/Bzip2',
+ 'livecd' => 'LiveCD',
+ 'ext2' => 'ext2',
+ 'jffs2' => 'jffs2'
+));
+$next=null;
+?>