blob: 7f1aaf5fa0c44e1e04d16b203f881b85d2fde817 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php
if (isset($list_status) && $list_status === "") {
}
?>
<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" 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="Create">
</form>
|