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/profile/index.php | |
| 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/profile/index.php')
| -rw-r--r-- | views/profile/index.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/views/profile/index.php b/views/profile/index.php index c1e067d..4ade4e7 100644 --- a/views/profile/index.php +++ b/views/profile/index.php @@ -15,6 +15,18 @@ <div class="user-blank-afterspace"></div> + <section id="user-buttons" hidden> + <form action="/list/new" method="GET"> + <input type="submit" value="Create a new list"> + </form> + </section> + <script type="text/javascript"> + function showUserButtons() { + document.getElementById('user-buttons').hidden = false; + } + authenticated(showUserButtons); + </script> + <nav id="user-nav"> <button id="openArchives" onclick="openArchives()">Archives</button> <button id="openLists" onclick="openLists()" class="not-selected">Lists</button> |
