aboutsummaryrefslogtreecommitdiff
path: root/w/view/templates/home.php
diff options
context:
space:
mode:
Diffstat (limited to 'w/view/templates/home.php')
-rw-r--r--w/view/templates/home.php26
1 files changed, 25 insertions, 1 deletions
diff --git a/w/view/templates/home.php b/w/view/templates/home.php
index 34bac1a..2303f0f 100644
--- a/w/view/templates/home.php
+++ b/w/view/templates/home.php
@@ -10,8 +10,28 @@
<?php $this->insert('navback', ['user' => $user]) ?>
+<?php if($user->canedit()) { ?>
<section>
+
+<div>
+
+<form id="goto" action="./" method="get">
+<input type="text" name="id" placeholder="id" required>
+<input type="submit" name="aff" value="read">
+<input type="submit" name="aff" value="edit">
+<input type="submit" name="action" value="add">
+</form>
+
+
+<form action="./" method="get">
+<input type="submit" name="action" value="analyseall">
+</form>
+
+
+</div>
+
+
<div id="flex">
@@ -55,13 +75,14 @@
<table id="home2table">
- <tr><th>x</th><th>id</th><th>edit</th><th>see</th><th>log</th><th>tag</th><th>summary</th><th>↘ to</th><th>↗ from</th><th>last modification</th><th>date of creation</th><th>privacy</th></tr>
+ <tr><th>x</th><th>id</th><th>edit</th><th>see</th><th>del</th><th>log</th><th>tag</th><th>summary</th><th>↘ to</th><th>↗ from</th><th>last modification</th><th>date of creation</th><th>privacy</th></tr>
<?php foreach ($table2 as $item) { ?>
<tr>
<td><input type="checkbox" name="id[]" value="<?= $item->id() ?>" id="<?= $item->id() ?>"></td>
<td><label title="<?= $item->title() ?>" for="<?= $item->id() ?>"><?= $item->id() ?></label></td>
<td><a href="?id=<?= $item->id() ?>&aff=edit">✏</a></td>
<td><a href="?id=<?= $item->id() ?>" target="_blank">👁</a></td>
+ <td><a href="?id=<?= $item->id() ?>&action=delete" >🗑</a></td>
<td><a href="?id=<?= $item->id() ?>&aff=log" target="_blank">¶</a></td>
<td><?= $item->tag('sort') ?></td>
<td><?= $item->description() ?></td>
@@ -78,6 +99,9 @@
</div>
</div>
</section>
+
+<?php } ?>
+
</body>