summaryrefslogtreecommitdiffstats
path: root/drakpxelinux.pl
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2004-08-06 03:59:54 +0000
committerAntoine Ginies <aginies@mandriva.com>2004-08-06 03:59:54 +0000
commit0fd40afdc45e83e893b8074785f6fff163897bc6 (patch)
treeadbcd533e786325a8e18a829ee0c7f51e1160b31 /drakpxelinux.pl
parent7b9ac9ce87ec78b4381ed5ec4e40842def9d7a78 (diff)
downloaddrakpxelinux-0fd40afdc45e83e893b8074785f6fff163897bc6.tar
drakpxelinux-0fd40afdc45e83e893b8074785f6fff163897bc6.tar.gz
drakpxelinux-0fd40afdc45e83e893b8074785f6fff163897bc6.tar.bz2
drakpxelinux-0fd40afdc45e83e893b8074785f6fff163897bc6.tar.xz
drakpxelinux-0fd40afdc45e83e893b8074785f6fff163897bc6.zip
add dialog box
Diffstat (limited to 'drakpxelinux.pl')
-rw-r--r--drakpxelinux.pl12
1 files changed, 7 insertions, 5 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index d55e11c..a3e2929 100644
--- a/drakpxelinux.pl
+++ b/drakpxelinux.pl
@@ -254,7 +254,7 @@ sub add_item {
my ($model, $treeview) = @_;
my @a;
push @a, {
- label => "cooker",
+ label => "cooker_add",
info => "install cooker",
kernel => "/images/cooker",
initrd => "images/cooker.rdz",
@@ -285,8 +285,10 @@ sub add_item {
COLUMN_DISPLAY, $a[-1]{display},
COLUMN_OPTION, $a[-1]{option},
);
- write_conf_pxe;
- # edit_box_item($model, $treeview, "-1");
+ create_dialog(N("add Entry in PXE"), N("A virtual entry in PXE list was created.\n
+Now choose the last entry named 'cooker_add'
+and choose edit buton.
+Otherwise your new entry wont be added to PXE list."));
}
sub remove_item {
@@ -309,13 +311,13 @@ sub remove_item {
sub test_similar_label {
my ($newlabel) = @_;
if (any { /^label $newlabel$/ } cat_($conf)) {
- err_dialog(N("Error !"), N("similar entry in PXE, choose another label please")) and return 0;
+ err_dialog(N("Error !"), N("Found a similar entry in PXE list labeled : $newlabel.\nChoose another label please")) and return 0;
} else { return 1 };
}
sub edit_box_item {
my ($widget, $treeview, $indice) = @_;
- $::isWizard = 0;
+ # $::isWizard = 0;
my $model = $treeview->get_model;
my $selection = $treeview->get_selection;