aboutsummaryrefslogtreecommitdiff
path: root/w/view/templates/home.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-02 02:03:52 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-02 02:03:52 +0100
commit85824de70ded75c98bd50220160e2171fdc8df41 (patch)
tree11480f65ff97ddbb3ea4806ff1f313628ced15a0 /w/view/templates/home.php
parent36ef34af2abcdea63a73b578208f20ca40b52f49 (diff)
downloadwcms-85824de70ded75c98bd50220160e2171fdc8df41.tar.gz
wcms-85824de70ded75c98bd50220160e2171fdc8df41.zip
render working and url auto link
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>