<div>
<!--    UPDATE HOST TYPE -->

    % my $btn = l('NEXT');

    <form action="/smanager/hostentriesd" method="POST">

        % if ( $hos_datas->{trt} eq "ALC" ) {
            <h2><%= l 'hos_CREATE_TYPE'  %></h2>
        % } else {
            <h2><%= l 'hos_MODIFY_TYPE' %></h2>
            % $btn = l('MODIFY');
        % }

        <div>
            <%= l 'hos_LOCAL_PAGE_DESCRIPTION' %>
        </div>
        <div>
            <%= l 'hos_LOCAL_IP_DESCRIPTION' %>
        </div>

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
                <%= l 'hos_LOCAL_IP' %>
            </div>
            <div class="col-auto">
                % param 'Internalip' => $hos_datas->{internalip} unless param 'Internalip';
                <%= text_field 'Internalip' %>
            </div>
        </div>

        <br>

        <div>
            <%= l 'hos_ETHERNET_ADDRESS_DESCRIPTION' %>
        </div>

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
                <%= l 'hos_ETHERNET_ADDRESS' %>
            </div>
            <div class="col-auto">
                % param 'Macaddress' => $hos_datas->{macaddress} unless param 'Macaddress';
                <%= text_field 'Macaddress' %>
            </div>
        </div>

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
                <button type="submit" class="btn btn-primary btn-sm"><%= $btn %></button>
            </div>
        </div>

        <%= hidden_field 'trt' => $hos_datas->{trt} %>
        <%= hidden_field 'Hostname' => $hos_datas->{hostname} %>
        <%= hidden_field 'Name' => $hos_datas->{name} %>
        <%= hidden_field 'Domain' => $hos_datas->{domain} %>
        <%= hidden_field 'Comment'=> $hos_datas->{comment} %>
        <%= hidden_field 'Hosttype'=> $hos_datas->{hosttype} %>
        <%= hidden_field 'Externalip' => $hos_datas->{externalip} %>


    </form>

</div>
