diff -Nur -x '*.orig' -x '*.rej' e-smith-hosts-1.14.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/hostentries mezzanine_patched_e-smith-hosts-1.14.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/hostentries
--- e-smith-hosts-1.14.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/hostentries 2006-03-15 14:33:31.000000000 -0700
+++ mezzanine_patched_e-smith-hosts-1.14.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/hostentries 2007-01-10 09:55:32.000000000 -0700
@@ -462,4 +462,8 @@
Error: This IP address is not on any of our local
networks.
+
+ COMMENT
+ Comment
+
diff -Nur -x '*.orig' -x '*.rej' e-smith-hosts-1.14.0/root/etc/e-smith/web/functions/hostentries mezzanine_patched_e-smith-hosts-1.14.0/root/etc/e-smith/web/functions/hostentries
--- e-smith-hosts-1.14.0/root/etc/e-smith/web/functions/hostentries 2006-03-15 14:33:31.000000000 -0700
+++ mezzanine_patched_e-smith-hosts-1.14.0/root/etc/e-smith/web/functions/hostentries 2007-01-10 09:54:54.000000000 -0700
@@ -87,6 +87,11 @@
CREATE_TITLE
+
localise('LOCATION'),"header"),
esmith::cgi::genSmallCell($q, $self->localise('IP_ADDRESS'),"header"),
esmith::cgi::genSmallCell($q, $self->localise('ETHERNET_ADDRESS'),"header"),
+ esmith::cgi::genSmallCell($q, $self->localise('COMMENT'),"header"),
esmith::cgi::genSmallCell($q, $self->localise('ACTION'),"header",2));
$self->print_host_row($_) foreach @hosts;
print $q->end_table, "\n";
@@ -202,6 +203,7 @@
$self->print_td($self->localise($host_record->prop('HostType')) || " ");
$self->print_td($ip);
$self->print_td($host_record->prop('MACAddress') || " ");
+ $self->print_td($host_record->prop('Comment') || " ");
my $static = $host_record->prop('static') || "no";
if ($static ne 'yes') {
my $propstring = $self->build_host_cgi_params($host_record->key(), $host_record->props());
@@ -245,6 +247,7 @@
global_ip => $oldprops{ExternalIP},
ethernet_address => $oldprops{MACAddress},
hosttype => $oldprops{HostType},
+ comment => $oldprops{Comment},
);
return $self->props_to_query_string(\%props);
@@ -438,7 +441,7 @@
}
foreach my $f (qw( name domain hosttype local_ip global_ip
- ethernet_address) ) {
+ ethernet_address comment) ) {
my $val = $self->cgi->param($f) || '';
$self->debug_msg("looping on param $f, val is $val");
print $q->Tr (esmith::cgi::genSmallCell($q, $self->localise(uc($f)),"normal"),
@@ -497,6 +500,7 @@
ExternalIP => $self->cgi->param('global_ip') || "",
InternalIP => $self->cgi->param('local_ip') || "",
MACAddress => $self->cgi->param('ethernet_address') || "",
+ Comment => $self->cgi->param('comment') || "",
);
if ($self->cgi->param('action') eq 'create') {