- {% block crud_content_header %}
-
{{ ('crud.'~crud_name~'.title_delete')|trans({ '%as_string%': 'Aside Activity' }) }}
- {% endblock crud_content_header %}
+ {% block crud_content_header %}
+
{{ ('crud.'~crud_name~'.title_delete')|trans({ '%as_string%': 'Aside Activity' }) }}
+ {% endblock crud_content_header %}
-
{{ ('crud.'~crud_name~'.confirm_message_delete')|trans({ '%as_string%': 'Aside Activity' }) }}
+
{{ ('crud.'~crud_name~'.confirm_message_delete')|trans({ '%as_string%': 'Aside Activity' }) }}
- {{ form_start(form) }}
+ {{ form_start(form) }}
-
- {% block content_form_actions_back %}
-
-
- {{ 'Cancel'|trans }}
-
-
- {% endblock %}
- {% block content_form_actions_before %}{% endblock %}
- {% block content_form_actions_view %}
- {% if is_granted(chill_crud_config('role', crud_name, 'view'), entity) %}
-
-
- {{ 'crud.edit.back_to_view'|trans }}
-
-
- {% endif %}
- {% endblock %}
- {% block content_form_actions_confirm_delete %}
-
- {{ ('crud.'~crud_name~'.button_delete')|trans }}
-
- {% endblock content_form_actions_confirm_delete %}
- {% block content_form_actions_after %}{% endblock %}
-
+
+ {% block content_form_actions_back %}
+
+
+ {{ 'Cancel'|trans }}
+
+
+ {% endblock %}
+ {% block content_form_actions_before %}
- {{ form_end(form) }}
-
\ No newline at end of file
+ {% endblock %}
+ {% block content_form_actions_confirm_delete %}
+
-
{{ 'My aside activities' |trans }}
+
+
{{ 'My aside activities' |trans }}
-{% if entities|length == 0 %}
-
- {{ "There aren't any aside activities."|trans }}
-
-
-{% else %}
+ {% if entities|length == 0 %}
+
+ {{ "There aren't any aside activities."|trans }}
+
+
+ {% else %}
-
- {# Sort activities according to date in descending order #}
- {% for entity in entities|sort ((a, b) => b.date <=> a.date) %}
- {% set t = entity.type %}
+
+ {# Sort activities according to date in descending order #}
+ {% for entity in entities %}
+ {% set t = entity.type %}
- {# only load aside activities of current user. #}
- {% if entity.agent == app.user %}
+
+
+
-
-
-
+
+ {{ entity.type.title | localize_translatable_string }}
+
-
- {{ entity.type.title | localize_translatable_string }}
-
+ {% if entity.date %}
+
{{ entity.date|format_date('long') }}
+ {% endif %}
- {% if entity.date %}
-
{{ entity.date|format_date('long') }}
- {% endif %}
+
+
+
+ {{ entity.duration|date('H:i') }}
+
+
-
-
-
- {{ entity.duration|date('H:i') }}
-
-
+
+
+
+ {% if entity.createdBy %}
+
+ {{ 'Created by: '|trans }}{{ entity.createdBy.usernameCanonical }}
+
+ {% endif %}
+
+
+
-
-
-
- {% if entity.createdBy %}
-
- {{ 'Created by: '|trans }}{{ entity.createdBy.usernameCanonical }}
-
- {% endif %}
-
-
-
+ {# {%
+ if entity.note is not empty
+ or entity.createdBy|length > 0
+ %}
+
+ {% if entity.note is not empty %}
+
+ {% endif %}
- {# {%
- if entity.note is not empty
- or entity.createdBy|length > 0
- %}
-
- {% if entity.note is not empty %}
-
- {% endif %}
+
+ {% endif %} #}
+
+
-
- {% endif %} #}
-
-
-
- {#
-
- #}
- {# TOOD
- {% if is_granted('CHILL_ACTIVITY_UPDATE', activity) %}
- #}
-
-
-
- {# TOOD
- {% endif %}
- {% if is_granted('CHILL_ACTIVITY_DELETE', activity) %}
- #}
-
-
-
- {#
- {% endif %}
- #}
-
-
-
-
- {% endif %}
- {% endfor %}
-
-
-
-{% endif %}
+ {% endfor %}
+
+
+ {{ chill_pagination(paginator) }}
+
+
+
+ {% endif %}
{% endblock %}
diff --git a/src/Bundle/ChillAsideActivityBundle/src/Resources/views/asideActivityCategory/index.html.twig b/src/Bundle/ChillAsideActivityBundle/src/Resources/views/asideActivityCategory/index.html.twig
index e9d5a0869..d8cb67716 100644
--- a/src/Bundle/ChillAsideActivityBundle/src/Resources/views/asideActivityCategory/index.html.twig
+++ b/src/Bundle/ChillAsideActivityBundle/src/Resources/views/asideActivityCategory/index.html.twig
@@ -1,44 +1,44 @@
-{% extends "@ChillActivity/Admin/layout_activity.html.twig" %}
+{% extends "@ChillAsideActivity/Admin/layout_asideactivity.html.twig" %}
{% block admin_content %}
-