{% embed '@AdminLTE/Widgets/box-widget.html.twig' with {'project': project, 'activities': activities, 'page': page} %} {% import "activity/actions.html.twig" as actions %} {% import "macros/widgets.html.twig" as widgets %} {% block box_title %}{{ 'menu.admin_activity'|trans }}{% endblock %} {% block box_attributes %} id="activity_list_box" data-href="{{ path('project_activities', {'id': project.id}) }}" data-reload="kimai.activityUpdate kimai.activityDelete" {% endblock %} {% block box_tools %} {% if project.visible and project.customer.visible and is_granted('create_activity') %} {% endif %} {% if activities|length > 0 %} {{ pagination(activities, { css_container_class: 'pagination pagination-sm inline', routeName: 'project_activities', routeParams: {'id': project.id} }) }} {% endif %} {% endblock %} {% block box_body_class %}no-padding{% endblock %} {% block box_tools_attributes %}data-page="{{ page }}"{% endblock %} {% block box_body %} {% if activities|length == 0 %}
{{ 'error.no_entries_found'|trans }}
{% else %} {% for activity in activities %} {% endfor %}
{{ 'label.name'|trans }} {{ 'label.visible'|trans }} {{ 'label.team'|trans }}
{{ widgets.label_activity(activity) }} {{ widgets.label_visible(activity.visible) }} {{ widgets.badge_team_access(activity.teams) }} {{ actions.activity(activity, 'project_details', true) }}
{% endif %} {% endblock %} {% endembed %}