<div>

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

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

        <br>

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

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
              <label for="inputGroupName" class="col-form-label"><%= l 'GROUP_NAME' %></label>
            </div>
            <div class="col-auto">
              <input disabled type="text" id="disabledTextInput" class="form-control" placeholder="<%= $grp_datas->{group} %>">
            </div>
        </div>

        <br><br>

        <%= l 'grp_GROUP_DESC_EXPL'%>

        <br><br>

        % param 'groupDesc' => $grp_datas->{description} unless param 'groupDesc';

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
              <label for="inputGroupDesc" class="col-form-label"><%= l 'grp_GROUP_DESC' %></label>
            </div>
            <div class="col-auto">
              <input type="text" name="groupDesc" id="inputGroupDesc" class="form-control" aria-describedby="GroupDesc" value="<%= $grp_datas->{description} %>">
            </div>
            <div class="col-auto">
              <span id="passwordHelpInline" class="form-text">
                Group Alias
              </span>
            </div>
        </div>

        <br><br>

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

        <br>

        <div>
        % if ( $members->{'admin'} ) {
            %= check_box 'groupMembers', value => 'admin', checked => undef
        % } else {
            %= check_box 'groupMembers' => 'admin'
        % }
        &nbspAdministrator (admin)
        </div>

        <br>

        % my $users = $c->gen_users_list();
        % foreach my $key ( sort keys %$users ) {
            % if ( $members->{ $key } ) {
                <input type='checkbox' name='groupMembers' checked value='<%= $key %>'>
            % } else {
                %= check_box 'groupMembers' => $key
                &nbsp
            % }
                <%= $users->{$key} %>
                <%= " (" . $key . ")" %>
            <br>
        % }

        <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' => $grp_datas->{trt} %>
        <%= hidden_field 'groupName' => $grp_datas->{group} %>

    </form>

</div>
