my $page = $display_info_items->[$display_info_counter % scalar(@$display_info_items)];
$display_info_counter++;
-
- display_html($page);
-}
-
-sub display_html {
- my ($filename, $transform) = @_;
-
- $filename = $steps[$step_number]->{html} if !$filename;
-
- Proxmox::UI::display_html($filename, $transform);
-
+ Proxmox::UI::display_html($page);
$last_display_change = time();
}
sub create_ipconf_view {
cleanup_view();
- display_html();
+ Proxmox::UI::display_html('ipconf.htm');
my $vcontainer = Gtk3::Box->new('vertical', 0);
$inbox->pack_start($vcontainer, 1, 0, 0);
file_write_all($ack_html, $html_data);
- display_html();
+ Proxmox::UI::display_html('ack.htm');
$inbox->show_all;
$inbox->show_all;
- display_html();
+ Proxmox::UI::display_html('passwd.htm');
set_next (undef, sub {
$inbox->show_all;
- display_html();
+ Proxmox::UI::display_html('country.htm');
set_next (undef, sub {
my $text = $w->get_text;
$inbox->show_all;
- display_html();
+ Proxmox::UI::display_html('page1.htm');
set_next(undef, sub {
cleanup_view();
- display_info();
+ Proxmox::Install::display_info();
$next->set_sensitive(0);
$prev_btn->set_sensitive(0);
Proxmox::UI::error($err) if $err ne "\n";
} else {
cleanup_view();
- display_html("success.htm", $success_transform);
+ Proxmox::UI::display_html("success.htm", $success_transform);
if ($config_options->{autoreboot}) {
Glib::Timeout->add(1000, sub {
if ($autoreboot_seconds > 0) {
$autoreboot_seconds--;
- display_html("success.htm", $success_transform);
+ Proxmox::UI::display_html("success.htm", $success_transform);
} else {
app_quit(0);
}
}
}
- display_html('license.htm', sub {
+ Proxmox::UI::display_html('license.htm', sub {
my ($raw_html, $env) = @_;
my $license = eval { decode('utf8', file_read_all("${proxmox_cddir}/EULA")) };
if (!defined($cached_disks) || (scalar (@$cached_disks) <= 0)) {
print "no harddisks found\n";
$initial_error = 1;
- display_html("nohds.htm");
+ Proxmox::UI::display_html("nohds.htm");
set_next("Reboot", sub { app_quit(0); } );
} else {
foreach my $hd (@$cached_disks) {
if (!$initial_error && (scalar keys %{ $ipconf->{ifaces} } == 0)) {
print "no network interfaces found\n";
$initial_error = 1;
- display_html("nonics.htm");
+ Proxmox::UI::display_html("nonics.htm");
set_next("Reboot", sub { app_quit(0); } );
}