From cc16ebc3927fa19c86d970067bcb9a16be94e40a Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 26 Jan 2025 22:19:25 +0200 Subject: feat(views): Implement adding a list item --- views/archive/index.php | 21 +++++++++++++++------ views/global/router.php | 1 + views/list/meta.php | 1 + views/list/update/index.php | 32 ++++++++++++++++++++++++++++++++ views/list/update/meta.php | 3 +++ 5 files changed, 52 insertions(+), 6 deletions(-) create mode 100644 views/list/update/index.php create mode 100644 views/list/update/meta.php (limited to 'views') diff --git a/views/archive/index.php b/views/archive/index.php index 7de2dff..085a033 100644 --- a/views/archive/index.php +++ b/views/archive/index.php @@ -37,14 +37,23 @@ RequesterUID)->Username ?> - -
- - -
- +
+

"" Does not exist!

diff --git a/views/global/router.php b/views/global/router.php index a783531..41e0b48 100644 --- a/views/global/router.php +++ b/views/global/router.php @@ -20,6 +20,7 @@ function route_view() { } switch ($root . $subroot) { + case '/list/update': return '/list/update'; } switch ($root) { diff --git a/views/list/meta.php b/views/list/meta.php index 137794e..5e5e52e 100644 --- a/views/list/meta.php +++ b/views/list/meta.php @@ -2,3 +2,4 @@ $lid = explode('/', $uri, 4)[2]; $title = 'List'; +$controller = 'list'; diff --git a/views/list/update/index.php b/views/list/update/index.php new file mode 100644 index 0000000..6fa91e1 --- /dev/null +++ b/views/list/update/index.php @@ -0,0 +1,32 @@ + + + +UID); + } + catch (Exception $e) {} +?> + + + + +

To which list do you want to add "URL ?>"?

+ +
+ + + + + +
diff --git a/views/list/update/meta.php b/views/list/update/meta.php new file mode 100644 index 0000000..96fd169 --- /dev/null +++ b/views/list/update/meta.php @@ -0,0 +1,3 @@ +