mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
homepage_widget: details + courses table
This commit is contained in:
parent
00ac6aa1b9
commit
b83ad77fd8
@ -7,7 +7,7 @@
|
|||||||
<a class="nav-link"
|
<a class="nav-link"
|
||||||
:class="{'active': activeTab === 'MyCustoms'}"
|
:class="{'active': activeTab === 'MyCustoms'}"
|
||||||
@click="selectTab('MyCustoms')">
|
@click="selectTab('MyCustoms')">
|
||||||
<i class="fa fa-home"></i>
|
<i class="fa fa-dashboard"></i>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
|
@ -3,9 +3,20 @@
|
|||||||
<span v-if="noResults" class="chill-no-data-statement">{{ $t('no_data') }}</span>
|
<span v-if="noResults" class="chill-no-data-statement">{{ $t('no_data') }}</span>
|
||||||
<tab-table v-else>
|
<tab-table v-else>
|
||||||
<template v-slot:thead>
|
<template v-slot:thead>
|
||||||
|
<th scope="col">id</th>
|
||||||
|
<th scope="col"></th>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:tbody>
|
<template v-slot:tbody>
|
||||||
<tr></tr>
|
<tr v-for="(c, i) in accompanyingCourses.results" :key="`course-${i}`">
|
||||||
|
<td>
|
||||||
|
{{ c.id}}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<a class="btn btn-sm btn-show" :href="getUrl(c)">
|
||||||
|
{{ $t('show_entity', { entity: $t('the_course') }) }}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</template>
|
</template>
|
||||||
</tab-table>
|
</tab-table>
|
||||||
</template>
|
</template>
|
||||||
@ -32,8 +43,13 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
return this.accompanyingCourses.count === 0;
|
return this.accompanyingCourses.count === 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getUrl(c) {
|
||||||
|
return `/fr/parcours/${c.id}`
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ const appMessages = {
|
|||||||
no_dashboard: "Pas de tableaux de bord",
|
no_dashboard: "Pas de tableaux de bord",
|
||||||
counter: {
|
counter: {
|
||||||
unread_notifications: "notifications non lues",
|
unread_notifications: "notifications non lues",
|
||||||
assignated_courses: "parcours assignés",
|
assignated_courses: "parcours récents assignés",
|
||||||
assignated_actions: "actions assignées",
|
assignated_actions: "actions assignées",
|
||||||
assignated_evaluations: "évaluations assignées",
|
assignated_evaluations: "évaluations assignées",
|
||||||
alert_tasks: "tâches en rappel",
|
alert_tasks: "tâches en rappel",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user