aboutsummaryrefslogtreecommitdiff
path: root/views/list/new
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-01 08:48:08 +0200
committerSyndamia <kamen@syndamia.com>2025-02-01 08:48:08 +0200
commitb2ab93f9275f64fabaa6d2fd75817fe66716d9bb (patch)
treed4b5391e544fa3065bd0ca54a8e62d7e0b9c6c89 /views/list/new
parent6eeb984a2cee866592cee9a55a0fe8864cb07464 (diff)
downloadnowayforward_human-b2ab93f9275f64fabaa6d2fd75817fe66716d9bb.tar
nowayforward_human-b2ab93f9275f64fabaa6d2fd75817fe66716d9bb.tar.gz
nowayforward_human-b2ab93f9275f64fabaa6d2fd75817fe66716d9bb.zip
feat(views): Move newlist to list/new
Diffstat (limited to 'views/list/new')
-rw-r--r--views/list/new/index.php23
-rw-r--r--views/list/new/meta.php4
2 files changed, 27 insertions, 0 deletions
diff --git a/views/list/new/index.php b/views/list/new/index.php
new file mode 100644
index 0000000..72ac7a3
--- /dev/null
+++ b/views/list/new/index.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+ if (!cookieStorage.getItem('token')) {
+ window.location.href = '/login';
+ }
+</script>
+
+<h1>Create a new list</h1>
+
+<hr class="new-section"/>
+
+<form action="#" method="POST">
+ <?php if (isset($list_status)): ?>
+ <?php if ($list_status !== ""): ?>
+ <p class="item error"><span>
+ <strong>Error:</strong> <?= $list_status ?>
+ </span></p>
+ <?php endif; ?>
+ <?php endif; ?>
+
+ <input type="text" name="name" placeholder="List title" minlength="1">
+ <textarea name="description" placeholder="Description"></textarea>
+ <input type="submit" value="Login">
+</form>
diff --git a/views/list/new/meta.php b/views/list/new/meta.php
new file mode 100644
index 0000000..6f02fff
--- /dev/null
+++ b/views/list/new/meta.php
@@ -0,0 +1,4 @@
+<?php
+
+$title = 'Create a new list of archives';
+$controller = 'list';