homepage_widget: basically build tables for evaluations, tasks and courses

This commit is contained in:
2022-01-31 12:46:44 +01:00
parent e7db71b0f3
commit c806c06279
5 changed files with 49 additions and 8 deletions

View File

@@ -4,13 +4,15 @@
<tab-table v-else>
<template v-slot:thead>
<th scope="col">id</th>
<th scope="col">Ouvert le</th>
<th scope="col">Usagers concernés</th>
<th scope="col"></th>
</template>
<template v-slot:tbody>
<tr v-for="(c, i) in accompanyingCourses.results" :key="`course-${i}`">
<td>
{{ c.id}}
</td>
<td>{{ c.id}}</td>
<td>{{ $d(c.openingDate.datetime, 'long') }}</td>
<td>{{ c.participations.length }}</td>
<td>
<a class="btn btn-sm btn-show" :href="getUrl(c)">
{{ $t('show_entity', { entity: $t('the_course') }) }}