diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor b/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor
index a15fe87..bf4a06b 100644
--- a/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor
+++ b/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor
@@ -54,13 +54,14 @@ else
}
- }
+
+ @*
-
+ *@
@if (showPopupDelete)
diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/ModifQuote.razor b/WF-WebAdmin/WF-WebAdmin/Pages/ModifQuote.razor
index ee6cebd..c86cdea 100644
--- a/WF-WebAdmin/WF-WebAdmin/Pages/ModifQuote.razor
+++ b/WF-WebAdmin/WF-WebAdmin/Pages/ModifQuote.razor
@@ -7,7 +7,7 @@
Ajouter une recherche
-
-
-
-
-
-
-
-
-
- Editer
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+ @* Editer*@
+
+
+
+
+
+@if (showEditQuote && selectedQuote != null)
+{
+
+}
\ No newline at end of file
diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/ModifQuote.razor.cs b/WF-WebAdmin/WF-WebAdmin/Pages/ModifQuote.razor.cs
index 155481b..4c9bd10 100644
--- a/WF-WebAdmin/WF-WebAdmin/Pages/ModifQuote.razor.cs
+++ b/WF-WebAdmin/WF-WebAdmin/Pages/ModifQuote.razor.cs
@@ -12,6 +12,10 @@ namespace WF_WebAdmin.Pages
private int MaxValue = 5;
private int totalItem;
+
+ private bool showEditQuote = false;
+
+ private Quote? selectedQuote;
[Inject]
public IQuoteService QuoteService { get; set; }
@@ -23,7 +27,6 @@ namespace WF_WebAdmin.Pages
return;
}
-
var response = await QuoteService.getSomeQuote(e.PageSize, e.Page);
if (!e.CancellationToken.IsCancellationRequested)
@@ -32,5 +35,25 @@ namespace WF_WebAdmin.Pages
quotes = response.ToArray();
}
}
+
+ private void OnEditButtonClicked(Quote quote)
+ {
+ if (selectedQuote == null) return;
+ selectedQuote = quote;
+ showEditQuote = true;
+ }
+
+ private void ClosePopup()
+ {
+ showEditQuote = false;
+ selectedQuote = null;
+ }
+
+ private async Task EditQuote()
+ {
+ await QuoteService.updateQuote(selectedQuote);
+ selectedQuote = null;
+ ClosePopup();
+ }
}
}
diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css b/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css
index 0f2ae37..7995488 100644
--- a/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css
+++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css
@@ -83,8 +83,18 @@ button {
background-color: #C3C4C5;
}
-.imgProfil, .imgQuote {
+.imgProfil {
border-radius: 25px;
+ width: 150px; /* Taille standard */
+ height: 150px; /* Taille standard */
+ object-fit: cover;
+}
+
+.imgQuote {
+ border-radius: 20px;
+ width: 300px; /* Taille standard */
+ height: 300px; /* Taille standard */
+ object-fit: cover;
}
.pseudo, .mail, .idUser, .dateCrea, .idQuote, .contentQuote, .CaracterQuote, .SourceQuote, .langueQuote, .UserPropositionQuote {
diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/edit.png b/WF-WebAdmin/WF-WebAdmin/wwwroot/edit.png
new file mode 100644
index 0000000..cbf3dce
Binary files /dev/null and b/WF-WebAdmin/WF-WebAdmin/wwwroot/edit.png differ
diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake_data_users.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake_data_users.json
index 5730ccb..7b3f5b7 100644
--- a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake_data_users.json
+++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake_data_users.json
@@ -1,7 +1,7 @@
[
{
"Id": 1,
- "Image": "https://tse4.mm.bing.net/th/id/OIP.fc5TQflh0cbxB1GUeOdk6gHaK8?w=123\u0026h=180\u0026c=7\u0026r=0\u0026o=5\u0026pid=1.7",
+ "Image": "https://assets.audiomack.com/merlijnmuziek/80c977f3a319cf2826af53c9faa7a46f787ba806ca3f783d23bbb7123942b697.jpeg?width=1000\u0026height=1000\u0026max=true",
"Name": "admin",
"Email": "adminop@gmail.com",
"DateCreation": "2024-12-12T00:00:00",