    {% if user != current_user and user not in group.members %}
                                        <option value="{{ user.id }}">{{ user.name }} ({{ user.id }})</option>
                                    {% endif %}
                                {% endfor %}
                            </select>
                        </div>
                        <div class="d-flex justify-content-end">
                            <button type="button" class="btn btn-secondary me-2" onclick="toggleMemberForm()">