aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/view/templates')
-rw-r--r--app/view/templates/home.php2
-rw-r--r--app/view/templates/homemenu.php16
2 files changed, 9 insertions, 9 deletions
diff --git a/app/view/templates/home.php b/app/view/templates/home.php
index d3d9a99..ddf4e46 100644
--- a/app/view/templates/home.php
+++ b/app/view/templates/home.php
@@ -85,7 +85,7 @@
<tbody>
<?php foreach ($table2 as $item) { ?>
<tr>
- <?php if($user->issupereditor()) { ?><td class="hidephone"><input type="checkbox" name="pagesid[]" value="<?= $item->id() ?>" id="id_<?= $item->id() ?>" form="multiedit"></td><?php } ?>
+ <?php if($user->issupereditor()) { ?><td class="hidephone"><input type="checkbox" name="pagesid[]" value="<?= $item->id() ?>" id="id_<?= $item->id() ?>" form="multi"></td><?php } ?>
<td><label title="<?= $item->title() ?>" for="id_<?= $item->id() ?>"><?= $item->id() ?></label></td>
<td><?php if($user->issupereditor() || in_array($user->id(), $item->authors())) { ?><a href="<?= $this->upage('pageedit', $item->id()) ?>"><img src="<?= Wcms\Model::iconpath() ?>edit.png" class="icon"></a><?php } ?></td>
<td><a href="<?= $this->upage('pageread/', $item->id()) ?>" target="_blank"><img src="<?= Wcms\Model::iconpath() ?>read.png" class="icon"></a></td>
diff --git a/app/view/templates/homemenu.php b/app/view/templates/homemenu.php
index 8431e50..669f9f2 100644
--- a/app/view/templates/homemenu.php
+++ b/app/view/templates/homemenu.php
@@ -37,14 +37,8 @@
<summary>Edit</summary>
<div class="submenu">
<i>Edit selected pages</i>
- <h2>Actions</h2>
- <form action="" method="post">
- <input type="submit" value="render">
- <input type="submit" value="download">
- <input type="submit" value="delete">
- </form>
+ <form action="<?= $this->url('multi') ?>" method="post" id="multi">
<h2>Edit Meta infos</h2>
- <form action="<?= $this->url('multiedit') ?>" method="post" id="multiedit">
<input type="text" name="datas[title]" id="title">
<label for="title">title</label>
</br>
@@ -149,7 +143,13 @@
<input type="checkbox" name="reset[datemodif]" id="resetdatemodif" value="1">
<label for="resetdatemodif">update modification date</label>
</br>
- <input type="submit" value="edit">
+ <input type="submit" name="action" value="edit">
+ <h2>Actions</h2>
+ <input type="submit" name="action" value="render">
+ <input type="hidden" name="confirmdelete" value="0">
+ <input type="checkbox" name="confirmdelete" id="confirmdelete" value="1">
+ <label for="confirmdelete">confirm</label>
+ <input type="submit" name="action" value="delete">
</form>
</div>
</details>