{% requireAdmin false %}

{% extends "_layouts/cp" %}
{% set title = "User Settings"|t('app') %}

{% set crumbs = [
    { label: "Settings"|t('app'), url: url('settings') }
] %}

{% set navItems = {
    teamGroup: CraftEdition == CraftTeam ? { label: "User Permissions"|t('app'), url: url('settings/users') },
    groups: CraftEdition >= CraftPro ? { label: "User Groups"|t('app'), url: url('settings/users') },
    fields: { label: "User Profile Fields"|t('app'), url: url('settings/users/fields') },
    settings: { label: "Settings"|t('app'), url: url('settings/users/settings') }
}|filter %}

{% set docTitle = navItems[selectedNavItem].label~' - '~title %}

{% block sidebar %}
    {% include "_includes/nav"
        with {
            label: title,
            items: navItems,
            selectedItem: selectedNavItem,
        }
        only
    %}
{% endblock %}
