From da36f3be4b33c54315cd86cf3366758b6848c4b4 Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Tue, 16 Dec 2003 14:43:57 +0000 Subject: few update in wizard structure --- pxe_wizard/Pxe.pm | 60 ++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 48 insertions(+), 12 deletions(-) (limited to 'pxe_wizard') diff --git a/pxe_wizard/Pxe.pm b/pxe_wizard/Pxe.pm index e2ac5506..4751c9e5 100644 --- a/pxe_wizard/Pxe.pm +++ b/pxe_wizard/Pxe.pm @@ -4,7 +4,7 @@ # Copyright (C) 2003 Mandrakesoft # -# Author: Florent Villard +# Author: Antoine Ginies # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -88,7 +88,7 @@ $o->{pages} = { return 'addimg' } elsif ($o->{var}{wiz_level} == 3) { return 'removeimg' } - elsif ($o->{var}{wiz_level} == 4) { + elsif ($o->{var}{wiz_level} == 4) { return 'modifyimg' } }, data => [ @@ -98,24 +98,53 @@ $o->{pages} = { next => 'pxeserver', }, addimg => { + name => N("Add a boot Image") . "\n\n" . N("Where is that boot image ?"), + data => [ + { label => N(""), val => \$o->{var}{} }, + ], + next => 'summaryadd', }, removeimg => { + name => N("Remove a boot Image") . "\n\n" . N("Which one ?"), + data => [ + { label => N(""), val => \$o->{var}{} }, + ], + next => 'summaryremove', }, modifyimg => { + name => N("Add Option to boot image") . "\n\n" . N("on Wich image ?"), + data => [ + { label => N(""), val => \$o->{var}{} }, + ], + next => 'summarymodify', }, pxeserver => { - }, - endserver => { - name => N('Congratulations'), - data => [ { label => N('The wizard successfully configured Your PXE server.') } ], - no_back => 1, - end => 1, - next => 0 + name => N("Set PXE server") . "\n\n" . N("We will use a special dhcpd.conf"), + data => [ + { label => N(""), val => \$o->{var}{} }, + ], + next => 'summaryserver', }, error_dir => { - name => N('Error Should be a directory'), - next => '', - }, + name => N('Error Should be a directory'), + next => '', + }, + summaryserver => { + name => N(''), + next => 'endserver', + }, + summarymodify => { + name => N(''), + next => 'endmodify', + }, + summaryremove => { + name => N(''), + next => 'endremove', + }, + summaryadd => { + name => N(''), + next => 'endadd', + }, endadd => { name => N('Congratulations'), data => [ { label => N('The wizard successfully add a PXE image.') } ], @@ -137,6 +166,13 @@ $o->{pages} = { end => 1, next => 0 }, + endserver => { + name => N('Congratulations'), + data => [ { label => N('The wizard successfully configured Your PXE server.') } ], + no_back => 1, + end => 1, + next => 0 + }, }; -- cgit v1.2.1