diff --git a/src/Bundle/ChillPersonBundle/Resources/public/index.js b/src/Bundle/ChillPersonBundle/Resources/public/index.js index 34d0be7d8..6b939ea4d 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/index.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/index.js @@ -1,3 +1,4 @@ require('./sass/chillperson.scss'); require('./sass/person_with_period.scss'); require('./sass/household_banner.scss'); +require('./sass/accompanying_period_work.scss'); diff --git a/src/Bundle/ChillPersonBundle/Resources/public/modules/accompanying_course_work_list/index.scss b/src/Bundle/ChillPersonBundle/Resources/public/modules/accompanying_course_work_list/index.scss index 433f291b5..9b5da134d 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/modules/accompanying_course_work_list/index.scss +++ b/src/Bundle/ChillPersonBundle/Resources/public/modules/accompanying_course_work_list/index.scss @@ -46,6 +46,15 @@ } } + &.short { + .item { + padding-bottom: 0; + ul.record_actions { + margin-bottom: 0; + } + } + } + .updatedBy { margin-top: 1rem; text-align: right; @@ -94,3 +103,4 @@ ul.timeline { } } } + diff --git a/src/Bundle/ChillPersonBundle/Resources/public/sass/accompanying_period_work.scss b/src/Bundle/ChillPersonBundle/Resources/public/sass/accompanying_period_work.scss new file mode 100644 index 000000000..dfb885e7b --- /dev/null +++ b/src/Bundle/ChillPersonBundle/Resources/public/sass/accompanying_period_work.scss @@ -0,0 +1,6 @@ + +.chill-entity__social-action { + .badge-primary { + background-color: var(--chill-green); + } +} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index 672e718e7..76dde2837 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -94,7 +94,7 @@
{{ 'Any requestor to this accompanying course'|trans }}
+ {% elseif accompanyingCourse.requestorPerson is not empty %} + {% set r = accompanyingCourse.requestorPerson %} ++ {% set born = (r.gender == 'woman') ? 'née': 'né' %} + {% set gender = (r.gender == 'woman') ? 'fa-venus' : + (r.gender == 'man') ? 'fa-mars' : 'fa-neuter' %} + {% set genderTitle = (r.gender == 'woman') ? 'femme' : + (r.gender == 'homme') ? 'fa-mars' : 'neutre' %} + {{ born ~ ' le ' ~ r.birthdate|format_date('short') }} +
+- {% set born = (r.person.gender == 'woman') ? 'née': 'né' %} - {% set gender = (r.person.gender == 'woman') ? 'fa-venus' : - (r.person.gender == 'man') ? 'fa-mars' : 'fa-neuter' %} - {% set genderTitle = (r.person.gender == 'woman') ? 'femme' : - (r.person.gender == 'homme') ? 'fa-mars' : 'neutre' %} - {{ born ~ ' le ' ~ r.person.birthdate|format_date('short') }} -
-{{ 'Any resource for this accompanying course'|trans }}
+ {% else %} ++ {% set born = (r.person.gender == 'woman') ? 'née': 'né' %} + {% set gender = (r.person.gender == 'woman') ? 'fa-venus' : + (r.person.gender == 'man') ? 'fa-mars' : 'fa-neuter' %} + {% set genderTitle = (r.person.gender == 'woman') ? 'femme' : + (r.person.gender == 'homme') ? 'fa-mars' : 'neutre' %} + {{ born ~ ' le ' ~ r.person.birthdate|format_date('short') }} +
+{{ 'accompanying_course_work.action'|trans }}
{{ 'accompanying_course_work.goal'|trans }}
-{{ 'accompanying_course_work.results without objective'|trans }}
-{{ 'accompanying_course_work.results'|trans }}
-{{ 'accompanying_course_work.goal'|trans }}
-{{ 'accompanying_course_work.results'|trans }}
-{{ 'accompanying_course_work.no_results'|trans }}
- {% else %} -{{ 'accompanying_course_work.results'|trans }}
-{{ 'accompanying_course_work.Any work'|trans }}
@@ -317,7 +350,7 @@ {% block contentActivity %} {% set person = null %} - {% include 'ChillActivityBundle:Activity:list.html.twig' with {'context': 'accompanyingCourse', 'context': 'person'} %} + {% include 'ChillActivityBundle:Activity:list.html.twig' with {'context': 'accompanyingCourse', 'context': 'accompanyingCourse'} %} {% endblock %} {# ==> insert accompanyingCourse vue component #} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_by_accompanying_period.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_by_accompanying_period.html.twig index 8dfe1bfd5..b12f3c932 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_by_accompanying_period.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_by_accompanying_period.html.twig @@ -12,7 +12,7 @@{{ 'accompanying_course_work.action'|trans }}
{{ 'accompanying_course_work.goal'|trans }}
-