aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-08-21 17:23:28 +0200
committervincent-peugnet <v.peugnet@free.fr>2019-08-21 17:23:28 +0200
commitb146952bb3ebacec8d4f1dd806ea5a9955bd3693 (patch)
tree2e4110ff5a7ef43dc7a067440011de5f1eae9cae
parent59e670424ef9d7769e4252fe0f83e42d39a5c9b4 (diff)
downloadwcms-b146952bb3ebacec8d4f1dd806ea5a9955bd3693.tar.gz
wcms-b146952bb3ebacec8d4f1dd806ea5a9955bd3693.zip
css style update
-rw-r--r--app/view/templates/homemenu.php136
-rw-r--r--assets/css/home.css23
2 files changed, 124 insertions, 35 deletions
diff --git a/app/view/templates/homemenu.php b/app/view/templates/homemenu.php
index 0a22513..0d705d1 100644
--- a/app/view/templates/homemenu.php
+++ b/app/view/templates/homemenu.php
@@ -1,4 +1,7 @@
<aside class="home">
+
+
+
<details class="hidephone" id="json">
<summary>File</summary>
<div class="submenu">
@@ -30,34 +33,66 @@
- <details class="hidephone" id="display">
- <summary>Display</summary>
+ <details class="hidephone" id="edit">
+ <summary>Edit</summary>
<div class="submenu">
- <h2>Worksapce</h2>
- <form action="">
- <ul>
- <?php foreach ($user->display() as $id => $setting) { ?>
- <li>
- <input type="checkbox" name="display[<?= $id ?>]" id="display_<?= $id ?>" value="true" <?= $setting ? 'checked' : '' ?>>
- <label for="display_<?= $id ?>"><?= $id ?></label>
- </li>
- <?php } ?>
- </ul>
- <input type="submit" value="update display">
- </form>
- <h2>Columns</h2>
- <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>
+ <i>Edit selected pages</i>
+ <h2>Actions</h2>
+ <form action="<?= $this->url('homerenderall') ?>" method="post">
+ <input type="submit" value="render">
+ <input type="submit" value="download">
+ <input type="submit" value="delete">
+ </form>
+ <h2>Edit Meta infos</h2>
+ <form action="" method="post">
+ <strong>Tag</strong>
+ </br>
+ <input type="checkbox" name="resettag" id="resettag">
+ <label for="resettag">reset tag(s)</label>
+ </br>
+ <input type="text" name="tag" id="addtag">
+ <label for="addtag">add tag(s)</label>
+ </br>
+ <strong>Date</strong>
+ </br>
+ <input type="checkbox" name="resetdate" id="resetdate">
+ <label for="resetdate">reset date as now</label>
+ </br>
+ <input type="date" name="date" id="date">
+ <label for="date">Date</label>
+ </br>
+ <input type="time" name="time" id="time">
+ <label for="time">Time</label>
+ </br>
+ <strong>Privacy</strong>
+ </br>
+ <select name="level" id="setlevel">
+ <option >--change privacy--</option>
+ <option value="0">public</option>
+ <option value="1">private</option>
+ <option value="2">not_published</option>
+ </select>
+ <label for="setlevel">Privacy level</label>
+ </br>
+ <strong>Templates</strong>
+ </br>
+ <select name="templatebody" id="templatebody">
+ <option>--set template body--</option>
+ </select>
+ <label for="templatebody">Body</label>
+ </br>
+ <select name="templatecss" id="templatecss">
+ <option>--set template css--</option>
+ </select>
+ <label for="templatecss">CSS</label>
+ </br>
+ <select name="templatejavascript" id="templatejavascript">
+ <option>--set template javascript--</option>
+ </select>
+ <label for="templatejavascript">Javascript</label>
+ </br>
+ <input type="submit" value="edit">
+ </form>
</div>
</details>
@@ -66,15 +101,12 @@
+
+
+
<details class="hidephone" id="selection" <?= !empty($optlist) ? 'open' : '' ?>>
- <summary>Selection</summary>
+ <summary>Filters</summary>
<div class="submenu">
- <h2>Rendering</h2>
- <form action="<?= $this->url('homerenderall') ?>" method="post">
- Render selected pages
- </br>
- <input type="submit" value="renderall">
- </form>
<h2>Get LIST code</h2>
<i>Generate code to display a list of pages</i>
<form action="<?= $this->url('homequery') ?>" method="post">
@@ -117,6 +149,8 @@
+
+
<details class="hidephone" id="bookmarks">
<summary>Bookmarks</summary>
<div class="submenu">
@@ -178,4 +212,38 @@
</details>
+
+ <details class="hidephone" id="display">
+ <summary>Display</summary>
+ <div class="submenu">
+ <h2>Worksapce</h2>
+ <form action="">
+ <ul>
+ <?php foreach ($user->display() as $id => $setting) { ?>
+ <li>
+ <input type="checkbox" name="display[<?= $id ?>]" id="display_<?= $id ?>" value="true" <?= $setting ? 'checked' : '' ?>>
+ <label for="display_<?= $id ?>"><?= $id ?></label>
+ </li>
+ <?php } ?>
+ </ul>
+ <input type="submit" value="update display">
+ </form>
+ <h2>Columns</h2>
+ <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>
+ </div>
+ </details>
+
+
+
</aside> \ No newline at end of file
diff --git a/assets/css/home.css b/assets/css/home.css
index 1c056b8..1a4fa1d 100644
--- a/assets/css/home.css
+++ b/assets/css/home.css
@@ -28,24 +28,30 @@ main.home {
aside.home {
display: flex;
background-color: darkgrey;
+ border-top: 1px solid grey;
+ border-bottom: 1px solid grey;
}
aside.home details, aside.home span {
width: 100%;
+ max-width: 280px;
}
aside.home details .submenu, aside.home summary {
background-color: darkgrey;
+ border-left: 1px solid grey;
}
aside.home .submenu {
position: absolute;
border: solid 1px dimgrey;
+ width: 20%;
+ max-width: 280px;
}
@@ -64,9 +70,24 @@ aside.home details#bookmarks ul {
}
+
+aside.home summary {
+ color: grey;
+}
+
+aside.home details > summary::-webkit-details-marker {
+ display: none;
+}
+
+
+aside.home summary:hover {
+ color: black;
+ cursor: pointer;
+}
+
+
details#selection code {
overflow: auto;
- max-width: 300px;
display: block;
white-space: nowrap;
color: #7b97b9;