{% extends kimai_context.modalRequest ? 'form.html.twig' : 'base.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block main %}
{% include 'team/member-form.html.twig' %}
{% if customerForm is defined and customerForm is not null %} {% embed '@theme/embeds/card.html.twig' with {collapsible: true, collapsed: (team.customers|length == 0)} %} {% from "macros/status.html.twig" import status_count %} {% block box_title %} {{ 'teams.customer_access'|trans({}, 'teams') }} {{ status_count(team.customers|length) }} {% endblock %} {% block box_body %} {{ form(customerForm) }} {% endblock %} {% endembed %} {% endif %} {% if projectForm is defined and projectForm is not null %} {% embed '@theme/embeds/card.html.twig' with {collapsible: true, collapsed: (team.projects|length == 0)} %} {% from "macros/status.html.twig" import status_count %} {% block box_title %} {{ 'teams.project_access'|trans({}, 'teams') }} {{ status_count(team.projects|length) }} {% endblock %} {% block box_body %} {{ form(projectForm) }} {% endblock %} {% endembed %} {% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}