{% embed '@AdminLTE/Widgets/box-widget.html.twig' with {'customer': customer, 'projects': projects, 'page': page} %} {% import "project/actions.html.twig" as actions %} {% import "macros/widgets.html.twig" as widgets %} {% block box_title %}{{ 'menu.admin_project'|trans }}{% endblock %} {% block box_attributes %} id="project_list_box" data-href="{{ path('customer_projects', {'id': customer.id}) }}" data-reload="kimai.projectUpdate kimai.projectDelete" {% endblock %} {% block box_tools %} {% if is_granted('view_reporting') and is_granted('budget_project') %} {% endif %} {% if customer.visible and is_granted('create_project') %} {% endif %} {% if projects|length > 0 %} {{ pagination(projects, { css_container_class: 'pagination pagination-sm inline', routeName: 'customer_projects', routeParams: {'id': customer.id} }) }} {% endif %} {% endblock %} {% block box_body_class %}no-padding{% endblock %} {% block box_tools_attributes %}data-page="{{ page }}"{% endblock %} {% block box_body %} {% if projects|length == 0 %}
{{ 'error.no_entries_found'|trans }}
{% else %} {% for project in projects %} {% endfor %}
{{ 'label.name'|trans }} {{ 'label.project_end'|trans }} {{ 'label.visible'|trans }} {{ 'label.team'|trans }}
{{ widgets.label_project(project) }} {% if project.end is not null %} {{ project.end|date_short }} {% else %} – {% endif %} {{ widgets.label_visible(project.visible) }} {{ widgets.badge_team_access(project.teams) }} {{ actions.project(project, 'customer_details', true) }}
{% endif %} {% endblock %} {% endembed %}