diff --git a/front-end/src/components/RessourcesComponents/AddCourse.vue b/front-end/src/components/RessourcesComponents/AddCourse.vue
index 57b0f23b..a89d36a3 100644
--- a/front-end/src/components/RessourcesComponents/AddCourse.vue
+++ b/front-end/src/components/RessourcesComponents/AddCourse.vue
@@ -6,21 +6,34 @@
Ajouter un cours
-
-
- Contenu du cours
-
-
-
-
+
@@ -76,8 +83,11 @@
import { computed, onMounted } from 'vue';
import { useCoursStore } from '@/store/modules/course.store';
import { useRouter } from 'vue-router';
+
import Board from '@/components/common/svg/Board.vue';
import Clipboard from '@/components/common/svg/Clipboard.vue';
+import ArrowLeft from '@/components/common/svg/ArrowLeft.vue';
+import Book from '@/components/common/svg/Book.vue';
// get store
const course = useCoursStore();
@@ -90,35 +100,28 @@ const router = useRouter();
const courses = [
{
id: 1,
- title: 'Cours 1',
- description: 'Description du cours 1',
+ title: 'Backlog',
+ description: 'Backlog de la semaine',
open: false,
files: [
- { id: 1, name: 'Fichier 1', url: '#' },
- { id: 2, name: 'Fichier 2', url: '#' },
- { id: 3, name: 'Fichier 3', url: '#' },
+ {
+ id: 1,
+ name: 'Fichier 1',
+ url: 'https://cdn.discordapp.com/attachments/892146093872259113/1119231010777870388/BacklogPGP-1.pdf',
+ },
],
},
{
id: 2,
- title: 'Cours 2',
- description: 'Description du cours 2',
+ title: 'Image',
+ description: 'PHP',
open: false,
files: [
- { id: 4, name: 'Fichier 4', url: '#' },
- { id: 5, name: 'Fichier 5', url: '#' },
- { id: 6, name: 'Fichier 6', url: '#' },
- ],
- },
- {
- id: 3,
- title: 'Cours 3',
- description: 'Description du cours 3',
- open: false,
- files: [
- { id: 7, name: 'Fichier 7', url: '#' },
- { id: 8, name: 'Fichier 8', url: '#' },
- { id: 9, name: 'Fichier 9', url: '#' },
+ {
+ id: 2,
+ name: 'Fichier 4',
+ url: 'https://cdn.discordapp.com/attachments/892146093872259113/1119231656885239930/K8DkEqSzlXEAAAAASUVORK5CYII.png',
+ },
],
},
];
@@ -149,6 +152,10 @@ onMounted(async () => {
await getCourseById(_id.value);
});
+const toggleCourse = (course) => {
+ course.open = !course.open;
+};
+
const goToProject = (canva) => {
router.push(`/app/agility/project/${canva._id}`);
};
@@ -156,6 +163,10 @@ const goToProject = (canva) => {
const goToRetro = (retro) => {
router.push(`/app/retrospective/${retro.slug}`);
};
+
+const returnToCourse = () => {
+ router.push(`/app/ressource/cours/`);
+};