diff -Nur e-smith-domains-2.4.0.old/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/domains e-smith-domains-2.4.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/domains
--- e-smith-domains-2.4.0.old/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/domains 2014-04-20 20:09:50.806293459 +0200
+++ e-smith-domains-2.4.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/domains 2014-04-24 18:06:43.835576390 +0200
@@ -228,5 +228,13 @@
corporate
Corporate DNS servers
+
+ REMOVE_DESC
+ You are about to remove the domain
+
+
+ REMOVE_DESC2
+ Are you sure you wish to remove this Domain ?
+
diff -Nur e-smith-domains-2.4.0.old/root/etc/e-smith/web/functions/domains e-smith-domains-2.4.0/root/etc/e-smith/web/functions/domains
--- e-smith-domains-2.4.0.old/root/etc/e-smith/web/functions/domains 2014-04-20 20:09:50.806293459 +0200
+++ e-smith-domains-2.4.0/root/etc/e-smith/web/functions/domains 2014-04-24 18:06:43.836576517 +0200
@@ -158,6 +158,8 @@
REMOVE_TITLE
+
+
diff -Nur e-smith-domains-2.4.0.old/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/domains.pm e-smith-domains-2.4.0/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/domains.pm
--- e-smith-domains-2.4.0.old/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/domains.pm 2014-04-20 20:09:50.806293459 +0200
+++ e-smith-domains-2.4.0/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/domains.pm 2014-04-24 18:07:58.577032673 +0200
@@ -422,4 +422,36 @@
return $fm->error('ERROR_WHILE_REMOVING_DOMAIN');
}
+
+=head2 print_page_description($self, "remove")
+
+Generates the page description for the Remove Domain page.
+
+=cut
+
+sub print_page_description {
+ my ($self, $pagename) = @_;
+ unless (grep /^$pagename$/, qw(remove)) {
+ warn "Can't generate page description for invalid pagename $pagename\n";
+ return;
+ }
+
+ $pagename = uc($pagename);
+
+ my $desc = $self->localise("${pagename}_DESC");
+ my $desc2 = $self->localise("${pagename}_DESC2");
+
+ my ($fm, $action) = @_;
+ my $q = $fm->{'cgi'};
+ my $domain = $q->param('Domain');
+ my $domain_description = $ddb->get_prop("$domain",'Description');
+ print qq{
+
+ $desc "$domain" ($domain_description)
+ $desc2
+ |
+ };
+
+ return;
+}
1;