<div>

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

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

        <br>

        <div>
            <h2>
            % if ( $dom_datas->{trt} eq "ADD" ) {
                <%=l 'dom_CREATE_TITLE' %>
            % } else {
                <%=l 'dom_MODIFY_TITLE' %>
                % $btn = l('MODIFY');
            % }
            </h2>
        </div>

        <br>

        <div class="row g-3 algn-items-center">
            <div class="col-md-2">
                        <label for="Domain" class="col-form-label"><%=l 'DOMAIN_NAME' %></label>
            </div>
            <div class="col-auto">
            % if ( $dom_datas->{trt} eq "ADD" ) {
                % param 'Domain' => $dom_datas->{domain} unless param 'Domain';
                <input type="text" name="Domain" id="Domain" class="form-control" aria-describedby="inputDomain" value="<%= $dom_datas->{domain} %>">
            % } else {
                <%= hidden_field 'Domain' => $dom_datas->{domain} %>
                <%= $dom_datas->{domain} %>
            % }
            </div>
        </div>

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
                <label for="inputDomainDesc" class="col-form-label"><%=l 'DESCRIPTION_BRIEF' %></label>
            </div>
            <div class="col-auto">
                % param 'Description' => $dom_datas->{description} unless param 'Description';
                <input type="text" name="Description" id="DomainDesc" class="form-control" aria-describedby="inputCorpDNSPrimary" value="<%= $dom_datas->{description} %>">
            </div>
        </div>

        <br>
        <%=l 'dom_CONTENT_FIELD_DESCRIPTION' %>
        <br><br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
                <label for="inputDomainContent" class="col-form-label"><%= $c->l('dom_CONTENT') %></label>
            </div>
            <div class="col-auto">
                % param 'Content' => $dom_datas->{content} unless param 'Content';
                <%= select_field 'Content', $c->content_options_list(), class => "form-select", id => "inputDomainContent" %>
            </div>
        </div>

        <br>
        <%=l 'dom_DESC_NAMESERVERS' %>
        <br><br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
            <label for="inputDomainNameServers" class="col-form-label"><%=l 'dom_LABEL_NAMESERVERS' %></label>
            </div>
            <div class="col-auto">
                % param 'Nameservers' => $dom_datas->{nameservers} unless param 'Nameservers';
                <%= select_field 'Nameservers', $c->nameserver_options_list(), class => "form-select", id => "inputDomainNameServers" %>
            </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' => $dom_datas->{trt} %>

    </form>

</div>
