aboutsummaryrefslogtreecommitdiff
path: root/views/list/update
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-02 10:27:14 +0200
committerSyndamia <kamen@syndamia.com>2025-02-02 10:27:14 +0200
commitb0fb3d9df06ab9aa77f95b3b60d60f414a9f5ebe (patch)
tree2e0cb2a2e8d5ff287cb99cac555538446536aac2 /views/list/update
parentee1add20e2861e95de0b6b3b621f0a8e277f2a02 (diff)
downloadnowayforward_human-b0fb3d9df06ab9aa77f95b3b60d60f414a9f5ebe.tar
nowayforward_human-b0fb3d9df06ab9aa77f95b3b60d60f414a9f5ebe.tar.gz
nowayforward_human-b0fb3d9df06ab9aa77f95b3b60d60f414a9f5ebe.zip
feat(views/list): Rename list/update to list/add
Diffstat (limited to 'views/list/update')
-rw-r--r--views/list/update/index.php44
-rw-r--r--views/list/update/meta.php3
2 files changed, 0 insertions, 47 deletions
diff --git a/views/list/update/index.php b/views/list/update/index.php
deleted file mode 100644
index 5366110..0000000
--- a/views/list/update/index.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
- require_login();
-
- $webpage = null;
- $list = null;
-
- try {
- $list = Database\Cookie::fromDB($TOKEN)->archiveLists();
- $webpage = Database\Webpage::fromDBwid($_GET['wid']);
- }
- catch (Exception $e) {}
-?>
-
-<?php if ($webpage !== null && $list !== null): ?>
- <h2>
- To which list do you want to add</br>
- <?= $webpage->URL ?></br>
- from</br>
- <?= $webpage->Date ?>?
- </h2>
-
- <form action="/list" method="GET" class="font-125 flex-row width-100 center-margin">
- <input type="hidden" name="method" value="PATCH">
- <select name="lid" class="flex-expand">
- <?php foreach ($list as $list): ?>
- <option value="<?= $list->LID ?>"><?= $list->Name ?></option>
- <?php endforeach; ?>
- </select>
- <input type="hidden" name="type" value="add">
- <input type="hidden" name="wid" value="<?= $_GET['wid'] ?>">
- <input type="submit" value="Select">
- </form>
-
-<?php elseif ($webpage === null): ?>
- <h2>No page with identifier <?= $_GET['wid'] ?> exists!</h2>
-
-<?php else: ?>
- <h2>You have no lists!</h2>
-
- <form action="/list/new" method="GET">
- <input type="submit" value="Create a new list">
- </form>
-
-<?php endif; ?>
diff --git a/views/list/update/meta.php b/views/list/update/meta.php
deleted file mode 100644
index 96fd169..0000000
--- a/views/list/update/meta.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-
-$title = 'Add to list';