diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-08-18 03:33:11 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-08-18 03:33:11 +0200 |
commit | 50e367e56b367259a2e6fb29621c97e9b0fc9c5e (patch) | |
tree | 082c451342bc52deffb9c36eacd5df125de7bbb1 /app/view/templates/homemenu.php | |
parent | 11233711f4e16957fbe6f5c4f4399e269e87f68f (diff) | |
download | wcms-50e367e56b367259a2e6fb29621c97e9b0fc9c5e.tar.gz wcms-50e367e56b367259a2e6fb29621c97e9b0fc9c5e.zip |
interface home update
Diffstat (limited to 'app/view/templates/homemenu.php')
-rw-r--r-- | app/view/templates/homemenu.php | 49 |
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 |