Merge branch 'fix/accompanying_period-work-creation-date' into 'master'

accompanying course work: remove display of creation date

See merge request Chill-Projet/chill-bundles!186
This commit is contained in:
Julien Fastré 2021-10-26 15:56:53 +00:00
commit 6921817853
3 changed files with 10 additions and 9 deletions

View File

@ -12,7 +12,7 @@ and this project adheres to
<!-- write down unreleased development here -->
* [person]: accompanying course work: remove creation date display the list of work + handle case when end date is null
## Test releases

View File

@ -37,6 +37,9 @@ div.accompanying_course_work-list {
border-radius: 12px;
border: 2px solid $chill-green;
}
&.no-label:before {
display: none;
}
}
}
}

View File

@ -20,14 +20,6 @@
<div class="timeline">
<ul>
<li class="completed">
<div class="date">
<span>{{ w.createdAt|format_date('long') }}</span>
</div>
<div class="label">
<span>{{ 'accompanying_course_work.create_date'|trans }}</span>
</div>
</li>
<li class="completed">
<div class="date">
<span>{{ w.startDate|format_date('long') }}</span>
@ -36,6 +28,11 @@
<span>{{ 'accompanying_course_work.start_date'|trans }}</span>
</div>
</li>
{% if w.endDate == null %}
<li>
<div class="label no-label"></div>
</li>
{% else %}
<li class="{%if date(w.endDate) < date('now') %}completed{% endif %}">
<div class="date">
<span>{{ w.endDate|format_date('long') }}</span>
@ -44,6 +41,7 @@
<span>{{ 'accompanying_course_work.end_date'|trans }}</span>
</div>
</li>
{% endif %}
</ul>
</div>