diff options
| author | Syndamia <kamen@syndamia.com> | 2025-02-01 11:55:53 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-02-01 11:55:53 +0200 |
| commit | 61c5b503352c983d4e532b5a59e2ae913e53e70c (patch) | |
| tree | 15ceba74eae8a30b413e56a64725d707a89554be /views/list | |
| parent | 0d87935bfd38f0cabecfaff374bd5ead221a494c (diff) | |
| download | nowayforward_human-61c5b503352c983d4e532b5a59e2ae913e53e70c.tar nowayforward_human-61c5b503352c983d4e532b5a59e2ae913e53e70c.tar.gz nowayforward_human-61c5b503352c983d4e532b5a59e2ae913e53e70c.zip | |
feat: Add create list button and improve new list page UI
Diffstat (limited to 'views/list')
| -rw-r--r-- | views/list/new/index.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/views/list/new/index.php b/views/list/new/index.php index 72ac7a3..7f1aaf5 100644 --- a/views/list/new/index.php +++ b/views/list/new/index.php @@ -1,3 +1,7 @@ +<?php + if (isset($list_status) && $list_status === "") { + } +?> <script type="text/javascript"> if (!cookieStorage.getItem('token')) { window.location.href = '/login'; @@ -8,16 +12,20 @@ <hr class="new-section"/> -<form action="#" method="POST"> +<form action="#" method="POST" class="font-115 flex-col-centered max-width-20 center-margin"> <?php if (isset($list_status)): ?> <?php if ($list_status !== ""): ?> <p class="item error"><span> <strong>Error:</strong> <?= $list_status ?> </span></p> + <?php else: ?> + <script type="text/javascript"> + window.location.href = '/list/<?= $lid ?>'; + </script> <?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"> + <input type="submit" value="Create"> </form> |
