From 9b22b1ff5496d36853724aafa5ebb478f979882d Mon Sep 17 00:00:00 2001 From: Arthaud Date: Fri, 20 Oct 2023 17:32:21 +0200 Subject: [PATCH] feat: display sources --- resources/js/Components/Form/TextListInput.vue | 3 ++- resources/js/Pages/News/Partials/NewsForm.vue | 1 + resources/js/Pages/News/Show.vue | 17 +++++++++++++---- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/resources/js/Components/Form/TextListInput.vue b/resources/js/Components/Form/TextListInput.vue index df9901f..74aae94 100644 --- a/resources/js/Components/Form/TextListInput.vue +++ b/resources/js/Components/Form/TextListInput.vue @@ -3,6 +3,7 @@ import TextInput from "@/Components/Form/TextInput.vue"; const props = defineProps<{ modelValue: Array; + placeholder?: string; }>(); const emit = defineEmits<{ @@ -35,7 +36,7 @@ function handleDeleteLine(index: number) {
  • - +
diff --git a/resources/js/Pages/News/Partials/NewsForm.vue b/resources/js/Pages/News/Partials/NewsForm.vue index f9ec175..4dd994f 100644 --- a/resources/js/Pages/News/Partials/NewsForm.vue +++ b/resources/js/Pages/News/Partials/NewsForm.vue @@ -117,6 +117,7 @@ function handleSubmit() { diff --git a/resources/js/Pages/News/Show.vue b/resources/js/Pages/News/Show.vue index aa47768..0f8a86e 100644 --- a/resources/js/Pages/News/Show.vue +++ b/resources/js/Pages/News/Show.vue @@ -24,10 +24,19 @@ defineProps<{
-
-

{{ news.title }}

-

{{ news.summary }}

- Voir la vidéo +
+

{{ news.title }}

+

{{ news.summary }}

+ +

Sources

+ + +
+ Voir la vidéo