aboutsummaryrefslogtreecommitdiff
path: root/views/list/add
diff options
context:
space:
mode:
Diffstat (limited to 'views/list/add')
-rw-r--r--views/list/add/index.php11
-rw-r--r--views/list/add/meta.php1
2 files changed, 10 insertions, 2 deletions
diff --git a/views/list/add/index.php b/views/list/add/index.php
index 5366110..98c768d 100644
--- a/views/list/add/index.php
+++ b/views/list/add/index.php
@@ -11,7 +11,7 @@
catch (Exception $e) {}
?>
-<?php if ($webpage !== null && $list !== null): ?>
+<?php if ($webpage !== null && $list !== null && $list): ?>
<h2>
To which list do you want to add</br>
<?= $webpage->URL ?></br>
@@ -19,8 +19,15 @@
<?= $webpage->Date ?>?
</h2>
- <form action="/list" method="GET" class="font-125 flex-row width-100 center-margin">
+ <form action="#" method="POST" class="font-125 flex-row width-100 center-margin">
<input type="hidden" name="method" value="PATCH">
+ <?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; ?>
<select name="lid" class="flex-expand">
<?php foreach ($list as $list): ?>
<option value="<?= $list->LID ?>"><?= $list->Name ?></option>
diff --git a/views/list/add/meta.php b/views/list/add/meta.php
index 96fd169..5465475 100644
--- a/views/list/add/meta.php
+++ b/views/list/add/meta.php
@@ -1,3 +1,4 @@
<?php
$title = 'Add to list';
+$controller = 'list';