% my $btn = l("hos_ADD_HOSTNAME");
<%= hidden_field "trt" => $hos_datas->{trt} %>
% my %dom_hos = %{$dom_hosts}; % foreach my $domain ( sort ( keys %dom_hos ) ) {
<%= $c->l("hos_CURRENT_HOSTNAMES_FOR_LOCAL_DOMAIN", $domain); %>
% foreach (@{$dom_hos{$domain}{"HOSTS"}}) { % my ($actionModify, $actionRemove) = " "; % my $static = $_->{"static"} || "no"; % if ($static ne "yes") { %my $modify_text = l("MODIFY"); # Localized text %my $csrf_token = "TOKEN"; # CSRF token for security %my $hostentries_name = $_->{"HostName"}; # hostentries name extracted from the data structure %$actionModify = qq{ % % % %}; %my $remove_text = l("REMOVE"); # Localized text %$csrf_token = "TOKEN"; # CSRF token for security %#my $hostentries_name = $_->{"HostName"}; # hostentries name extracted from the data structure %$actionRemove = qq{ % % % %}; % } % }
<%= l "Hostname" %> <%= l "Location" %> <%= l "IP_ADDRESS_OR_FQDN" %> <%= l "hos_ETHERNET_ADDRESS" %> <%= l "COMMENT" %> <%= l "ACTION" %>
<%= $_->{"HostName"}; %> <%= $_->{"HostType"}; %> <%= $_->{"IP"}; %> <%= $_->{"MACAddress"}; %> <%= $_->{"Comment"}; %><%= $c->render_to_string(inline => $actionModify) %> <%= $c->render_to_string(inline => $actionRemove) %>
% }