aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/homemenu.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/view/templates/homemenu.php')
-rw-r--r--app/view/templates/homemenu.php49
1 files changed, 49 insertions, 0 deletions
diff --git a/app/view/templates/homemenu.php b/app/view/templates/homemenu.php
new file mode 100644
index 0000000..2dd486c
--- /dev/null
+++ b/app/view/templates/homemenu.php
@@ -0,0 +1,49 @@
+<aside class="home">
+ <details class="hidephone">
+ <summary>Import page as file</summary>
+ <form action="<?= $this->url('artupload') ?>" method="post" enctype="multipart/form-data">
+ <input type="file" name="pagefile" id="pagefile" accept=".json">
+ <label for="pagefile">JSON Page file</label>
+ <input type="hidden" name="erase" value="0">
+ <input type="hidden" name="datecreation" value="0">
+ </br>
+ <input type="text" name="id" id="id" placeholder="new id (optionnal)">
+ <label for="id">change ID</label>
+ </br>
+ <input type="checkbox" name="datecreation" id="datecreation" value="1">
+ <label for="datecreation">Reset date creation as now</label>
+ </br>
+ <input type="checkbox" name="author" id="author" value="1">
+ <label for="author">Reset author(s) as just you</label>
+ </br>
+ <input type="checkbox" name="erase" id="erase" value="1">
+ <label for="erase">Replace if already existing</label>
+ </br>
+ <input type="submit" value="upload">
+ </form>
+ </details>
+
+
+
+ <details class="hidephone">
+ <summary>Columns</summary>
+ <form action="<?= $this->url('homecolumns') ?>" method="post">
+ <ul>
+ <?php
+ foreach (Model::COLUMNS as $col) { ?>
+ <li>
+ <input type="checkbox" name="columns[]" value="<?= $col ?>" id="col_<?= $col ?>" <?= in_array($col, $user->columns()) ? 'checked' : '' ?>>
+ <label for="col_<?= $col ?>"><?= $col ?></label>
+ </li>
+ <?php } ?>
+ </ul>
+ <input type="submit" value="update columns">
+ </form>
+ </details>
+
+ <span>
+ <a href="">Render All</a>
+ </span>
+
+
+</aside> \ No newline at end of file