{% extends "layouts/app.html" %} {% from "components/breadcrumb.html" import page_header %} {% from "components/button.html" import button %} {% from "components/form.html" import search_input %} {% from "components/modal.html" import confirm_modal %} {% block title %}Groups - NeoZen Admin{% endblock %} {% block page_header %} {% call page_header("Groups", subtitle="Manage user groups and team memberships", breadcrumbs=[{"label": "Groups"}]) %} {{ button("Create Group", variant="primary", href="/groups/create") }} {% endcall %} {% endblock %} {% block content %}
{{ search_input(name="search", value=search or '', placeholder="Search groups...", action="/groups") }}
{% for group in groups %} {% else %} {% endfor %}
Group Status Created Actions
{{ group.name }}
{{ group.description[:50] ~ '...' if group.description|length > 50 else group.description or 'No description' }}
{% if group.is_active %} Active {% else %} Inactive {% endif %} {{ group.created_at.strftime('%b %d, %Y') if group.created_at else '-' }}
View

No groups found

{% if search %} No groups match your search criteria. {% else %} Get started by creating a new group. {% endif %}

{{ confirm_modal( id="delete", title="Delete Group", message="Are you sure you want to delete this group? All memberships will be removed.", confirm_text="Delete", variant="danger" ) }} {% endblock %}