diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor b/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor index 5868126..592f043 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor +++ b/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor @@ -1,4 +1,5 @@ @page "/ValidQuiz" +@using System.Dynamic @using WF_WebAdmin.Model

Quiz à valider

@@ -11,18 +12,43 @@ else {

Quizs en attente de validation :

- - - - - - - - - - + + + + + + + + + + + + + + + + @foreach (Quiz quiz in quizzes) + { + + + + + + + + + +
+ + +
+ + } + +
#QuestionRéponse ARéponse BRéponse CRéponse DRéponse CorrecteUtilisateurActions
@quiz.Id@quiz.Question@quiz.AnswerA@quiz.AnswerB@quiz.AnswerC@quiz.AnswerD@quiz.CAnswer@quiz.UserProposition
} \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor.cs b/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor.cs index 8c10d74..e133a94 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor.cs +++ b/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor.cs @@ -19,6 +19,17 @@ namespace WF_WebAdmin.Pages { quizzes = await Http.GetFromJsonAsync($"{NavigationManager.BaseUri}fake-dataQuiz.json"); } + + private void ValidateQuiz(Quiz quiz) + { + // Action to validate the quiz + Console.WriteLine($"Quiz {quiz.Id} validated!"); + } + private void RejectQuiz(Quiz quiz) + { + // Action to reject the quiz + Console.WriteLine($"Quiz {quiz.Id} rejected!"); + } } } \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/check.png b/WF-WebAdmin/WF-WebAdmin/wwwroot/check.png new file mode 100644 index 0000000..c3fedbe Binary files /dev/null and b/WF-WebAdmin/WF-WebAdmin/wwwroot/check.png differ diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/cross.png b/WF-WebAdmin/WF-WebAdmin/wwwroot/cross.png new file mode 100644 index 0000000..c64f8bb Binary files /dev/null and b/WF-WebAdmin/WF-WebAdmin/wwwroot/cross.png differ diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css b/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css index 9f8f5cf..ccc0d2b 100644 --- a/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css @@ -105,7 +105,8 @@ button { left: 0; width: 100%; height: 100%; - background-color: white border-radius:20px; + background-color: white; + border-radius:20px; display: flex; justify-content: center; align-items: center; @@ -121,4 +122,37 @@ button { gap: 10px; width: 300px; text-align: center; +} + +table { + border-collapse: collapse; + width: 100%; +} + +tr { + background-color: lightgrey; +} + +td { + padding: 10px 20px; + border: none; +} + +.boutons { + display: flex; + justify-content: space-between; + gap: 10px; +} + +.boutons button { + border: none; + background-color: transparent; + padding: 5px; + cursor: pointer; +} + +.boutons button img { + width: 24px; + height: 24px; + object-fit: contain; } \ No newline at end of file