diff --git a/.gradle/7.4.1/checksums/checksums.lock b/.gradle/7.4.1/checksums/checksums.lock index 61e1e2327a6cd02c5b6609cfbdbde00af3457cd1..f0ed0076b5d6f718f7d50f2d63732c9eb6af926a 100644 Binary files a/.gradle/7.4.1/checksums/checksums.lock and b/.gradle/7.4.1/checksums/checksums.lock differ diff --git a/.gradle/7.4.1/dependencies-accessors/dependencies-accessors.lock b/.gradle/7.4.1/dependencies-accessors/dependencies-accessors.lock index f7c0fffd6ea311c0ca24df3f724f68c3dcfe3d2e..bb87dff84e19540605f8f6f78f8d7b548a259592 100644 Binary files a/.gradle/7.4.1/dependencies-accessors/dependencies-accessors.lock and b/.gradle/7.4.1/dependencies-accessors/dependencies-accessors.lock differ diff --git a/.gradle/7.4.1/executionHistory/executionHistory.bin b/.gradle/7.4.1/executionHistory/executionHistory.bin index 1ca13825097c01790d11e0f2fbaeecfd1155346b..e19864a15f0f40595cad1d453f32ed0fa67b94b8 100644 Binary files a/.gradle/7.4.1/executionHistory/executionHistory.bin and b/.gradle/7.4.1/executionHistory/executionHistory.bin differ diff --git a/.gradle/7.4.1/executionHistory/executionHistory.lock b/.gradle/7.4.1/executionHistory/executionHistory.lock index 90a5dc99e50d2a89d93865ca638ebdc10e988afc..92ddd5b509b2c7af69a585cef66ac49357bdcdb3 100644 Binary files a/.gradle/7.4.1/executionHistory/executionHistory.lock and b/.gradle/7.4.1/executionHistory/executionHistory.lock differ diff --git a/.gradle/7.4.1/fileHashes/fileHashes.bin b/.gradle/7.4.1/fileHashes/fileHashes.bin index fa7f191cc18984b9ac007ef916657da117baedf3..0b90727d2543bc5a0ce93b1afa7bdfd7c8648ae2 100644 Binary files a/.gradle/7.4.1/fileHashes/fileHashes.bin and b/.gradle/7.4.1/fileHashes/fileHashes.bin differ diff --git a/.gradle/7.4.1/fileHashes/fileHashes.lock b/.gradle/7.4.1/fileHashes/fileHashes.lock index fa22f48bc2f40ed412efebc098b4d2590012612a..372401cfde61af91d182afda44e3c5017a1dbcfc 100644 Binary files a/.gradle/7.4.1/fileHashes/fileHashes.lock and b/.gradle/7.4.1/fileHashes/fileHashes.lock differ diff --git a/.gradle/7.4.1/fileHashes/resourceHashesCache.bin b/.gradle/7.4.1/fileHashes/resourceHashesCache.bin index 0e4cf9c1dc2a3735cde1a1d34b90a662a81f5e38..84bed45641c48a86c45e50e16c9a042f469f613f 100644 Binary files a/.gradle/7.4.1/fileHashes/resourceHashesCache.bin and b/.gradle/7.4.1/fileHashes/resourceHashesCache.bin differ diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index a4d3587da0de234be35019e85739f312e5b39cde..c0fb55e3e93dc75e93e7cfd87c7ab0ef418c553e 100644 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/.gradle/file-system.probe b/.gradle/file-system.probe index f28f8e55beff7880184b292a89e526fc5c60e982..11eb4f4d3083c13c347fb8db56ee66ae61fb5d7d 100644 Binary files a/.gradle/file-system.probe and b/.gradle/file-system.probe differ diff --git a/bin/default/.gradle/7.4.1/executionHistory/executionHistory.bin b/bin/default/.gradle/7.4.1/executionHistory/executionHistory.bin index 27bd44615a449b1147f107478767737d823d659c..8cbe002a377e025f687abf243c88d0cfe6664869 100644 Binary files a/bin/default/.gradle/7.4.1/executionHistory/executionHistory.bin and b/bin/default/.gradle/7.4.1/executionHistory/executionHistory.bin differ diff --git a/bin/default/.gradle/7.4.1/executionHistory/executionHistory.lock b/bin/default/.gradle/7.4.1/executionHistory/executionHistory.lock index 3a0ec28d2eb2d0cb6edf236bb88dfe794c954f01..07dc3df6469b578746f5d7b8e2ad6bfee5687617 100644 Binary files a/bin/default/.gradle/7.4.1/executionHistory/executionHistory.lock and b/bin/default/.gradle/7.4.1/executionHistory/executionHistory.lock differ diff --git a/bin/default/.gradle/7.4.1/fileHashes/fileHashes.bin b/bin/default/.gradle/7.4.1/fileHashes/fileHashes.bin index 104c4b0746d7045f758312fe0e707a013b779ba1..34e492acc14032a7e9ac139c5122e112b7dbcdb6 100644 Binary files a/bin/default/.gradle/7.4.1/fileHashes/fileHashes.bin and b/bin/default/.gradle/7.4.1/fileHashes/fileHashes.bin differ diff --git a/bin/default/.gradle/7.4.1/fileHashes/fileHashes.lock b/bin/default/.gradle/7.4.1/fileHashes/fileHashes.lock index e81593b672268ba07bc94af02ba60e8be34c3e2b..8b24fd074b3598c46c3a0036992aadb99b32ea69 100644 Binary files a/bin/default/.gradle/7.4.1/fileHashes/fileHashes.lock and b/bin/default/.gradle/7.4.1/fileHashes/fileHashes.lock differ diff --git a/bin/default/.gradle/7.4.1/fileHashes/resourceHashesCache.bin b/bin/default/.gradle/7.4.1/fileHashes/resourceHashesCache.bin index 002351d3cf1657907b96d9f6541b1a2c9c460936..8ca30f9b7c8a54cade3d51031474b9938fb8aa20 100644 Binary files a/bin/default/.gradle/7.4.1/fileHashes/resourceHashesCache.bin and b/bin/default/.gradle/7.4.1/fileHashes/resourceHashesCache.bin differ diff --git a/bin/default/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/bin/default/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 119bb3081a29754d28b09ca4c2f8d3ccae6be0f5..6479b6b9eab667cd00b4bbcdf93541a747132199 100644 Binary files a/bin/default/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/bin/default/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/bin/default/.gradle/buildOutputCleanup/outputFiles.bin b/bin/default/.gradle/buildOutputCleanup/outputFiles.bin index 322a6dbc33b255c9e6f79dd9dc18efed2fd7edd8..c4634a71b2c4392cde86ff80ec178c23abb754e6 100644 Binary files a/bin/default/.gradle/buildOutputCleanup/outputFiles.bin and b/bin/default/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/bin/default/.gradle/file-system.probe b/bin/default/.gradle/file-system.probe index 72f263b8e9197bf25d0bd9830a6262de8dd7fd1f..11eb4f4d3083c13c347fb8db56ee66ae61fb5d7d 100644 Binary files a/bin/default/.gradle/file-system.probe and b/bin/default/.gradle/file-system.probe differ diff --git a/bin/default/build/resources/main/views/profs.ftl b/bin/default/build/resources/main/views/profs.ftl index 106a4ef08b10295ad5a5e8c38d27c415ca0dfe94..39fd9bfb2db5721153d4fd8bac3265036f0ac18a 100644 --- a/bin/default/build/resources/main/views/profs.ftl +++ b/bin/default/build/resources/main/views/profs.ftl @@ -1,5 +1,6 @@ <#ftl encoding="utf-8"> + <body xmlns="http://www.w3.org/1999/html"> <ul> @@ -9,6 +10,11 @@ </#list> </ul> + +<form method="post" action="prof/delete"> + <input name="id"> +</form> + </body> </html> diff --git a/bin/default/build/tmp/compileJava/previous-compilation-data.bin b/bin/default/build/tmp/compileJava/previous-compilation-data.bin index 696af7713ba6696ab5d66308658b2e9599f92e85..ff3746184e3cc77428baebcde70f425c0559a74a 100644 Binary files a/bin/default/build/tmp/compileJava/previous-compilation-data.bin and b/bin/default/build/tmp/compileJava/previous-compilation-data.bin differ diff --git a/bin/default/src/main/resources/views/profs.ftl b/bin/default/src/main/resources/views/profs.ftl index 106a4ef08b10295ad5a5e8c38d27c415ca0dfe94..39fd9bfb2db5721153d4fd8bac3265036f0ac18a 100644 --- a/bin/default/src/main/resources/views/profs.ftl +++ b/bin/default/src/main/resources/views/profs.ftl @@ -1,5 +1,6 @@ <#ftl encoding="utf-8"> + <body xmlns="http://www.w3.org/1999/html"> <ul> @@ -9,6 +10,11 @@ </#list> </ul> + +<form method="post" action="prof/delete"> + <input name="id"> +</form> + </body> </html> diff --git a/build/classes/java/main/com/uca/StartServer.class b/build/classes/java/main/com/uca/StartServer.class index 971a70de7e04b8e96c4d7b778b7f02f856b55b51..c99cd788b01d1b4d609196d29f3a3043c2c5cc96 100644 Binary files a/build/classes/java/main/com/uca/StartServer.class and b/build/classes/java/main/com/uca/StartServer.class differ diff --git a/build/resources/main/views/profs.ftl b/build/resources/main/views/profs.ftl index 106a4ef08b10295ad5a5e8c38d27c415ca0dfe94..04e10515e567f108bba7fcc66c194f6948fd61d4 100644 --- a/build/resources/main/views/profs.ftl +++ b/build/resources/main/views/profs.ftl @@ -1,5 +1,6 @@ <#ftl encoding="utf-8"> + <body xmlns="http://www.w3.org/1999/html"> <ul> @@ -9,6 +10,12 @@ </#list> </ul> + +<form method="get" action="profs/delete"> + <input name="id"> + <button type="submit">Envoyer</button> +</form> + </body> </html> diff --git a/build/tmp/compileJava/previous-compilation-data.bin b/build/tmp/compileJava/previous-compilation-data.bin index d52c4ef8f81a68d60df347c73a1dd7add84c0197..f2d7aca412fbfebe552f47d11ddd6a5e48c42498 100644 Binary files a/build/tmp/compileJava/previous-compilation-data.bin and b/build/tmp/compileJava/previous-compilation-data.bin differ diff --git a/src/com/uca/StartServer.java b/src/com/uca/StartServer.java index adf9890eeaa0d2ae697b6cce915315dd08b46e19..89df43048ed0ea75bf549b2983f4e2fee7a310ca 100644 --- a/src/com/uca/StartServer.java +++ b/src/com/uca/StartServer.java @@ -36,9 +36,13 @@ public class StartServer { return ProfGUI.getAllProfs(); }); - get("/profs/delete/:id",(req,res) -> { - ProfGUI.delete(req.params(":id")); - return ProfGUI.getAllProfs(); + get("/profs/delete",(req,res) -> { + + ProfGUI.delete(req.queryParams("id")); + res.redirect("/profs"); + return null; }); + + } } \ No newline at end of file diff --git a/src/main/resources/views/profs.ftl b/src/main/resources/views/profs.ftl index 106a4ef08b10295ad5a5e8c38d27c415ca0dfe94..04e10515e567f108bba7fcc66c194f6948fd61d4 100644 --- a/src/main/resources/views/profs.ftl +++ b/src/main/resources/views/profs.ftl @@ -1,5 +1,6 @@ <#ftl encoding="utf-8"> + <body xmlns="http://www.w3.org/1999/html"> <ul> @@ -9,6 +10,12 @@ </#list> </ul> + +<form method="get" action="profs/delete"> + <input name="id"> + <button type="submit">Envoyer</button> +</form> + </body> </html>