aboutsummaryrefslogtreecommitdiff
path: root/views/list/index.php
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-02 10:54:23 +0200
committerSyndamia <kamen@syndamia.com>2025-02-02 10:54:23 +0200
commit4bebfa04cf759d77c511541bdf30747c76a3b2e1 (patch)
tree10eb1a2820fbbf3f49fdafb0a7821abc25e306e6 /views/list/index.php
parentb0fb3d9df06ab9aa77f95b3b60d60f414a9f5ebe (diff)
downloadnowayforward_human-4bebfa04cf759d77c511541bdf30747c76a3b2e1.tar
nowayforward_human-4bebfa04cf759d77c511541bdf30747c76a3b2e1.tar.gz
nowayforward_human-4bebfa04cf759d77c511541bdf30747c76a3b2e1.zip
feat(views/list): Fully implement list updating
Diffstat (limited to 'views/list/index.php')
-rw-r--r--views/list/index.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/views/list/index.php b/views/list/index.php
index 9b49268..4a84f78 100644
--- a/views/list/index.php
+++ b/views/list/index.php
@@ -18,6 +18,23 @@
<?= $author->Username ?>
</p>
<p><?= $list->Description ?></p>
+
+ <section id="list-buttons" hidden>
+ <form action="/list/update" method="GET">
+ <input type="hidden" name="lid" value="<?= $list->LID ?>">
+ <input type="submit" value="Update">
+ </form>
+ <form action="/list/delete" method="GET">
+ <input type="hidden" name="lid" value="<?= $list->LID ?>">
+ <input type="submit" value="Delete">
+ </form>
+ </section>
+ <script type="text/javascript">
+ function showListButtons() {
+ document.getElementById('list-buttons').hidden = false;
+ }
+ authenticated(showListButtons);
+ </script>
</section>
<section>
<?php