diff --git a/WF-WebAdmin/WF-WebAdmin/Model/Commentary.cs b/WF-WebAdmin/WF-WebAdmin/Model/Commentary.cs index c3251c3..acb43ef 100644 --- a/WF-WebAdmin/WF-WebAdmin/Model/Commentary.cs +++ b/WF-WebAdmin/WF-WebAdmin/Model/Commentary.cs @@ -2,8 +2,8 @@ { public class Commentary { - public int Id { get; set; } - public int IdUser { get; set; } + //public int Id { get; set; } + //public int IdUser { get; set; } public string Text { get; set; } public DateTime DateCreation { get; set; } } diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.razor b/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.razor index bba7495..7bc505b 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.razor +++ b/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.razor @@ -1,4 +1,4 @@ -@page "/" +@page "/Accueil" Accueil diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor b/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor index 6c180ac..0b0ec58 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor +++ b/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor @@ -31,9 +31,10 @@ else @if(user.Comments != null) { +

▶ Commentaire(s) posté(s) par @user.Name :

@foreach (var comment in user.Comments) { -

Commentaire (@comment.) : @comment.Text

+

@comment.DateCreation.ToShortDateString() - @comment.Text

} } else diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor b/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor new file mode 100644 index 0000000..f9f7369 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor @@ -0,0 +1,81 @@ +@page "/" +

▶ Connexion ◀

+ +
+ @*
*@ +

Identifiant *

+ + +

Mot de passe *

+ + + + +
+ +
+ + @*
*@ +
+ + + +@code { + private void ShowFullSite() + { + // Code pour afficher l'ensemble du menu + // Cela peut être un appel à une méthode ou un service qui change l'état de la visibilité du menu + } +} \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor.cs b/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor.cs new file mode 100644 index 0000000..0f288f5 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor.cs @@ -0,0 +1,13 @@ +using Microsoft.AspNetCore.Components; +using Microsoft.Extensions.Configuration.UserSecrets; +using WF_WebAdmin.Model; + + + +namespace WF_WebAdmin.Pages +{ + public partial class Login + { + + } +} \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor b/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor index d4c1b4f..2967cee 100644 --- a/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor +++ b/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor @@ -11,7 +11,13 @@ @@ -57,3 +63,4 @@ collapseNavMenu = !collapseNavMenu; } } + diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css b/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css index 9f8f5cf..7edc28f 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 { +.pseudo, .mail, .idUser, .dateCrea, .idQuote, .contentQuote, .CaracterQuote, .SourceQuote, .langueQuote, .UserPropositionQuote, titleComments, comments { margin-left: 10px; } diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUser.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUser.json index 519f6ca..0547f7e 100644 --- a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUser.json +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUser.json @@ -5,7 +5,17 @@ "Name": "Admin", "Email": "admin@gmail.com", "DateCreation": "2024-12-12", - "IsAdmin": true + "IsAdmin": true, + "Comments": [ + { + "Text": "Commentaire 1", + "DateCreation": "2024-12-12" + }, + { + "Text": "Commentaire 2", + "DateCreation": "2024-11-12" + } + ] }, { "Id": 2, @@ -21,7 +31,13 @@ "Name": "testeur", "Email": "testeur@gmail.com", "DateCreation": "2024-08-02", - "IsAdmin": false + "IsAdmin": false, + "Comments": [ + { + "Text": "Premier test effectué, tout semble OK.", + "DateCreation": "2024-08-02" + } + ] }, { "Id": 4, @@ -37,7 +53,13 @@ "Name": "jean_doe", "Email": "jean.doe@gmail.com", "DateCreation": "2024-06-25", - "IsAdmin": false + "IsAdmin": false, + "Comments": [ + { + "Text": "Utilisateur très actif, peut être un peu trop intrusif.", + "DateCreation": "2024-06-25" + } + ] }, { "Id": 6, @@ -69,7 +91,13 @@ "Name": "support_mark", "Email": "support.mark@gmail.com", "DateCreation": "2024-11-20", - "IsAdmin": false + "IsAdmin": false, + "Comments": [ + { + "Text": "Support rapide et efficace, mais manquant un peu de détails.", + "DateCreation": "2024-11-20" + } + ] }, { "Id": 10, @@ -85,7 +113,13 @@ "Name": "designer_steve", "Email": "designer.steve@gmail.com", "DateCreation": "2024-07-01", - "IsAdmin": false + "IsAdmin": false, + "Comments": [ + { + "Text": "Le design doit être retravaillé pour plus de clarté.", + "DateCreation": "2024-07-01" + } + ] }, { "Id": 12, @@ -126,37 +160,5 @@ "Email": "admin.kate@gmail.com", "DateCreation": "2024-04-16", "IsAdmin": true - }, - { - "Id": 17, - "Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7", - "Name": "support_olivia", - "Email": "support.olivia@gmail.com", - "DateCreation": "2024-07-30", - "IsAdmin": false - }, - { - "Id": 18, - "Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7", - "Name": "assistant_jack", - "Email": "assistant.jack@gmail.com", - "DateCreation": "2024-10-03", - "IsAdmin": false - }, - { - "Id": 19, - "Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7", - "Name": "developer_bob", - "Email": "developer.bob@gmail.com", - "DateCreation": "2024-06-01", - "IsAdmin": false - }, - { - "Id": 20, - "Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7", - "Name": "admin_sophie", - "Email": "admin.sophie@gmail.com", - "DateCreation": "2024-12-05", - "IsAdmin": true } ] \ No newline at end of file