aboutsummaryrefslogtreecommitdiff
path: root/w/view/templates/delete.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/delete.php
parent36ef34af2abcdea63a73b578208f20ca40b52f49 (diff)
downloadwcms-85824de70ded75c98bd50220160e2171fdc8df41.tar.gz
wcms-85824de70ded75c98bd50220160e2171fdc8df41.zip
render working and url auto link
Diffstat (limited to 'w/view/templates/delete.php')
-rw-r--r--w/view/templates/delete.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/w/view/templates/delete.php b/w/view/templates/delete.php
new file mode 100644
index 0000000..be54451
--- /dev/null
+++ b/w/view/templates/delete.php
@@ -0,0 +1,44 @@
+<?php $this->layout('layout', ['title' => 'delete', 'description' => 'delete']) ?>
+
+
+<?php $this->start('page') ?>
+
+
+<?php $this->insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]) ?>
+
+<div>
+
+<h1>Delete</h1>
+
+<ul>
+<li>Id : <?= $art->title() ?></li>
+<li>Title : <?= $art->title() ?></li>
+<li>Article(s) linked to this one : <?= $art->linkto('sort') ?></li>
+<li>Article(s) linked from this one : <?= $art->linkfrom('sort') ?></li>
+<li>Number of edits : <?= $art->editcount() ?></li>
+</ul>
+
+<?php if (!empty($art->linkto())) { ?>
+
+<h2>Article linked to :</h2>
+
+<ul>
+<?php foreach ($art->linkto('array') as $linkto) {
+ echo '<li><a href="./?id=' . $linkto . '">' . $linkto . '</a></li>';
+} ?>
+</ul>
+
+<?php
+} ?>
+
+</div>
+
+
+<form action="./?id=<?= $art->id() ?>&action=delete" method="post">
+<input type="hidden" name="deleteconfirm" value="true">
+<input type="submit" value="confirm delete">
+</form>
+
+
+
+<?php $this->stop() ?> \ No newline at end of file