aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/confirmdelete.php
blob: 133f32ba55d65a3d97a89bf6b0827b904cbf1c88 (plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
<?php $this->layout('layout', ['title' => 'delete', 'description' => 'delete', 'css' => $css . 'delete.css']) ?>


<?php $this->start('page') ?>



<div>

<h1>Delete</h1>

<ul>
<li>Id : <?= $page->id() ?></li>
<li>Title : <?= $page->title() ?></li>
<li>Article(s) linked to this one : <?= $page->linkto('sort') ?></li>
<li>Article(s) linked from this one : <?= $page->linkfrom('sort') ?></li>
<li>Number of edits : <?= $page->editcount() ?></li>
</ul>

<?php if (!empty($page->linkto())) { ?>

<h2>Article linked to :</h2>

<ul>
<?php foreach ($page->linkto('array') as $linkto) {
    echo '<li><a href="./?id=' . $linkto . '">' . $linkto . '</a></li>';
} ?>
</ul>

<?php 
} ?>

</div>


<form action="<?= $this->upage('pagedelete', $page->id()) ?>" method="post">
<input type="hidden" name="deleteconfirm" value="true">
<input type="submit" value="confirm delete">
</form>



<?php $this->stop() ?>