<div>


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

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

    <div>
        <h2><%=l 'iba_ADD_TITLE' %></h2>
    </div>

    <br>

    <%=l 'iba_NAME_FIELD_DESC'%>

    <br><br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
                <label for="inputIbayLabel" class="col-form-label"><%= l 'iba_NAME_LABEL' %></label>
            </div>

            <div class="col-auto">
                % if ( $iba_datas->{trt} eq 'ADD' ) {
                    % param 'ibay' => $iba_datas->{ibay} unless param 'ibay';
                    <input type="text" name="ibay" id="inputIbay" class="form-control" aria-describedby="Ibay" value="<%= $iba_datas->{ibays} %>">
                % } else {
                    % $btn = l('SAVE');
                    <%= $iba_datas->{ibay} %>
                % }
            </div>
        </div>

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
                <label for="inputIbayDesc" class="col-form-label"><%= l 'DESCRIPTION' %></label>
            </div>
            <div class="col-auto">
                % param 'ibayDesc' => $iba_datas->{description} unless param 'ibayDesc';
                <input type="text" name="ibayDesc" id="inputIbayDesc" class="form-control" aria-describedby="IbayDesc" value="<%= $iba_datas->{description} %>">
            </div>
        </div>

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
                <%= l 'GROUP' %>
            </div>
            <div class="col-auto">
                % param 'group' => $iba_datas->{group} unless param 'group';
                %= select_field 'group' => $c->group_list_m(), class => "form-select"
            </div>
        </div>

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
               <%= l 'iba_USER_ACCESS' %>
            </div>
            <div class="col-auto">
                % param 'userAccess' => $iba_datas->{userAccess} unless param 'userAccess';
                %= select_field 'userAccess' => $c->userAccess_list_m(), class => "form-select"
            </div>
        </div>

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
              %=l 'iba_PUBLIC_ACCESS'
            </div>
            <div class="col-auto">
                % param 'publicAccess' => $iba_datas->{publicAccess} unless param 'publicAccess';
                %= select_field 'publicAccess' => $c->publicAccess_list_m(), class => "form-select"
            </div>
        </div>

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
                <%=l 'iba_ALLOW_DYNAMIC_CONTENT' %>
            </div>
            <div class="col-auto">
                % param 'CgiBin' => $iba_datas->{CgiBin} unless param 'CgiBin';
                %= select_field 'CgiBin' => [[ (l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => "form-select"
            </div>
        </div>

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
                <%=l 'iba_HTTPS_Only' %>
            </div>
            <div class="col-auto">
                % param 'SSL' => $iba_datas->{SSL} unless param 'SSL';
                %= select_field 'SSL' => [[ (l 'DISABLED') => 'disabled'], [ (l 'ENABLED') => 'enabled']], class => "form-select"
            </div>
        </div>

        <br><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' => $iba_datas->{trt} %>
    % if ( $iba_datas->{trt} eq 'UPD' ) {
            <%= hidden_field 'ibay' => $iba_datas->{ibay} %>
    % }

    </form>

</div>
