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 98f5a67..dd3446f 100644 --- a/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css @@ -86,7 +86,7 @@ button { border-radius: 25px; } -.pseudo, .mail, .idUser, .dateCrea, .idQuote, .contentQuote, .CaracterQuote, .SourceQuote, .langueQuote, .UserPropositionQuote, titleComments, comments { +.pseudo, .mail, .idUser, .dateCrea, .idQuote, .contentQuote, .CaracterQuote, .SourceQuote, .langueQuote, .UserPropositionQuote { margin-left: 10px; } @@ -123,6 +123,39 @@ button { 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; +} + .buttonSubmitDiv { text-align: center;