diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig index 3efd5480b..cb5b135b3 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig @@ -1,65 +1,87 @@ {%- set t = entity.type -%} {%- import "@ChillDocStore/Macro/macro.html.twig" as m -%} -

- {{ "Activity"|trans }}{{ ', le ' ~ entity.date|format_date('long') }} - {%- if t.emergencyVisible and entity.emergency -%} - - {{- 'Emergency'|trans -}} - - {%- endif -%} -

+

{{ "Activity"|trans }}

-

- {{ entity.type.name | localize_translatable_string }} -

+
+
-
-
{{ 'by'|trans|capitalize }}
-
{{ entity.user }}
+
+
+
+
+ {% if entity.date %} +

+ {{ entity.date|format_date('short') }} +

+ {% endif %} +
+
+

+ + + {{ entity.type.name | localize_translatable_string }} + {% if entity.emergency %} + {{ 'Emergency'|trans|upper }} + {% endif %} + +

+
+
+
+
- {%- if entity.scope -%} -
{{ 'Scope'|trans }}
-
- {{ entity.scope.name|localize_translatable_string }} -
- {% endif %} +
+
+
{{ 'Referrer'|trans|capitalize }}
+
{{ entity.user }}
- {% if t.socialIssuesVisible %} -
{{ 'Social issues'|trans }}
-
- {% if entity.socialIssues|length == 0 %} -

{{ 'No social issues associated'|trans }}

- {% else %} - {% for si in entity.socialIssues %}{{ si|chill_entity_render_box }}{% endfor %} - {% endif %} -
- {% endif %} + {%- if entity.scope -%} +
{{ 'Scope'|trans }}
+
+ {{ entity.scope.name|localize_translatable_string }} +
+ {% endif %} - {% if t.socialActionsVisible %} -
{{ 'Social actions'|trans }}
-
- {% if entity.socialActions|length == 0 %} - {{ 'No social actions associated'|trans }} - {% else %} - {% for sa in entity.socialActions %}{{ sa|chill_entity_render_box }}{% endfor %} - {% endif %} -
- {% endif %} + {% if t.socialIssuesVisible %} +
{{ 'Social issues'|trans }}
+
+ {% if entity.socialIssues|length == 0 %} +

{{ 'No social issues associated'|trans }}

+ {% else %} + {% for si in entity.socialIssues %}{{ si|chill_entity_render_box }}{% endfor %} + {% endif %} +
+ {% endif %} - {% if t.reasonsVisible %} -
{{ 'Reasons'|trans }}
-
- {%- if entity.reasons is empty -%} - {{ 'No reason associated'|trans }} - {%- else -%} - {% for r in entity.reasons %}{{ r|chill_entity_render_box }}{% endfor %} - {%- endif -%} -
- {% endif %} -
+ {% if t.socialActionsVisible %} +
{{ 'Social actions'|trans }}
+
+ {% if entity.socialActions|length == 0 %} + {{ 'No social actions associated'|trans }} + {% else %} + {% for sa in entity.socialActions %}{{ sa|chill_entity_render_box }}{% endfor %} + {% endif %} +
+ {% endif %} -

{{ 'Concerned groups'|trans }}

+ {% if t.reasonsVisible %} +
{{ 'Reasons'|trans }}
+
+ {%- if entity.reasons is empty -%} + {{ 'No reason associated'|trans }} + {%- else -%} + {% for r in entity.reasons %}{{ r|chill_entity_render_box }}{% endfor %} + {%- endif -%} +
+ {% endif %} +
+
+ +
+ + +

{{ 'Concerned groups'|trans }}

{% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with { 'context': context, @@ -67,90 +89,97 @@ 'badge_person': 'true' } %} -

{{ 'Activity data'|trans }}

-
-
{{ 'Date'|trans }}
-
{{ entity.date|format_date('long') }}
+

{{ 'Activity data'|trans }}

- {% if t.locationVisible %} -
{{ 'Activity location'|trans }}
-
- {% if entity.location is not null %} -

- {{ entity.location.locationType.title|localize_translatable_string }} - {{ entity.location.name }} -

-
{{ entity.location.address|chill_entity_render_box }}
- {% else %} - {{ 'No address given'|trans }} - {% endif %} -
- {% endif %} +
+
- {% if t.durationTimeVisible and is_granted('CHILL_ACTIVITY_SEE_DETAILS', entity) %} -
{{ 'Duration Time'|trans }}
-
- {% if entity.durationTime is not null %} - {{ entity.durationTime|date('H:i') }} - {% else %} - {{ 'None'|trans|capitalize }} - {% endif %} -
- {% endif %} +
+
{{ 'Date'|trans }}
+
{{ entity.date|format_date('long') }}
- {% if t.travelTimeVisible and is_granted('CHILL_ACTIVITY_SEE_DETAILS', entity) %} -
{{ 'Travel time'|trans }}
-
- {% if entity.travelTime is not null %} - {{ entity.travelTime|date('H:i') }} - {% else %} - {{ 'None'|trans|capitalize }} - {% endif %} -
- {% endif %} - - {% if t.commentVisible and is_granted('CHILL_ACTIVITY_SEE_DETAILS', entity) %} -
{{ 'activity.comment'|trans }}
-
- {%- if entity.comment.empty -%} - {{ 'No comment associated'|trans }} - {%- else -%} - {{ entity.comment|chill_entity_render_box }} - {%- endif -%} -
- {% endif %} - - {% if t.documentsVisible and is_granted('CHILL_ACTIVITY_SEE_DETAILS', entity) %} -
{{ 'Documents'|trans }}
-
- {% if entity.documents|length > 0 %} -
    - {% for d in entity.documents %} -
  • {{ m.download_button(d) }}
  • - {% endfor %} -
- {% else %} - {{ 'Any document found'|trans }} - {% endif %} -
- {% endif %} - - {% if t.attendeeVisible and is_granted('CHILL_ACTIVITY_SEE_DETAILS', entity) %} -
{{ 'Attendee'|trans }}
-
- {% if entity.attendee is not null %} - {% if entity.attendee %} - {{ 'present'|trans|capitalize }} - {% else %} - {{ 'not present'|trans|capitalize }} + {% if t.locationVisible %} +
{{ 'Activity location'|trans }}
+
+ {% if entity.location is not null %} +

+ {{ entity.location.locationType.title|localize_translatable_string }} + {{ entity.location.name }} +

+
{{ entity.location.address|chill_entity_render_box }}
+ {% else %} + {{ 'No address given'|trans }} + {% endif %} +
{% endif %} - {% else %} - {{ 'None'|trans|capitalize }} - {% endif %} - - {% endif %} -
+ {% if t.durationTimeVisible and is_granted('CHILL_ACTIVITY_SEE_DETAILS', entity) %} +
{{ 'Duration Time'|trans }}
+
+ {% if entity.durationTime is not null %} + {{ entity.durationTime|date('H:i') }} + {% else %} + {{ 'None'|trans|capitalize }} + {% endif %} +
+ {% endif %} + + {% if t.travelTimeVisible and is_granted('CHILL_ACTIVITY_SEE_DETAILS', entity) %} +
{{ 'Travel time'|trans }}
+
+ {% if entity.travelTime is not null %} + {{ entity.travelTime|date('H:i') }} + {% else %} + {{ 'None'|trans|capitalize }} + {% endif %} +
+ {% endif %} + + {% if t.commentVisible and is_granted('CHILL_ACTIVITY_SEE_DETAILS', entity) %} +
{{ 'activity.comment'|trans }}
+
+ {%- if entity.comment.empty -%} + {{ 'No comment associated'|trans }} + {%- else -%} + {{ entity.comment|chill_entity_render_box }} + {%- endif -%} +
+ {% endif %} + + {% if t.documentsVisible and is_granted('CHILL_ACTIVITY_SEE_DETAILS', entity) %} +
{{ 'Documents'|trans }}
+
+ {% if entity.documents|length > 0 %} +
    + {% for d in entity.documents %} +
  • {{ m.download_button(d) }}
  • + {% endfor %} +
+ {% else %} + {{ 'Any document found'|trans }} + {% endif %} +
+ {% endif %} + + {% if t.attendeeVisible and is_granted('CHILL_ACTIVITY_SEE_DETAILS', entity) %} +
{{ 'Attendee'|trans }}
+
+ {% if entity.attendee is not null %} + {% if entity.attendee %} + {{ 'present'|trans|capitalize }} + {% else %} + {{ 'not present'|trans|capitalize }} + {% endif %} + {% else %} + {{ 'None'|trans|capitalize }} + {% endif %} +
+ {% endif %} + +
+ + + {% set person_id = null %} {% if person %} @@ -183,3 +212,9 @@ {% endif %} + diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/showAccompanyingCourse.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/showAccompanyingCourse.html.twig index ada3ebbd6..b74b315a3 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/showAccompanyingCourse.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/showAccompanyingCourse.html.twig @@ -8,8 +8,6 @@ {% block content -%}
- {% include 'ChillActivityBundle:Activity:show.html.twig' with {'context': 'accompanyingCourse'} %} -
{% endblock content %} diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/showPerson.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/showPerson.html.twig index 8462c4178..5e92f8fa2 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/showPerson.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/showPerson.html.twig @@ -8,8 +8,6 @@ {% block personcontent -%}
- - {% include 'ChillActivityBundle:Activity:show.html.twig' with {'context': 'person'} %} - + {% include 'ChillActivityBundle:Activity:show.html.twig' with {'context': 'person'} %}
{% endblock personcontent %} diff --git a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss index b1a06876a..984338663 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss +++ b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss @@ -137,7 +137,7 @@ div.accompanying_course_work-list { } /// dashboard_like_badge in Activities on resume page -div.activity-list { +div[class*='activity-'] { div.dashboard, h2.badge-title { span.title_label {