diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-03-28 22:03:52 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-03-28 22:03:52 +0100 |
commit | d8b02407afd7ce933d1a9935f5c723a5d47ae368 (patch) | |
tree | 8a38b5e269e05e0badbb1f5fca90381d25c41346 /app/view | |
parent | 53fcf8ed3cf59f38adfa4d66e925e147a64f7eef (diff) | |
download | wcms-d8b02407afd7ce933d1a9935f5c723a5d47ae368.tar.gz wcms-d8b02407afd7ce933d1a9935f5c723a5d47ae368.zip |
graphic update
Diffstat (limited to 'app/view')
-rw-r--r-- | app/view/templates/admin.php | 40 | ||||
-rw-r--r-- | app/view/templates/font.php | 16 | ||||
-rw-r--r-- | app/view/templates/info.php | 59 | ||||
-rw-r--r-- | app/view/templates/media.php | 2 | ||||
-rw-r--r-- | app/view/templates/timeline.php | 14 | ||||
-rw-r--r-- | app/view/templates/user.php | 13 |
6 files changed, 110 insertions, 34 deletions
diff --git a/app/view/templates/admin.php b/app/view/templates/admin.php index bd37464..08126a7 100644 --- a/app/view/templates/admin.php +++ b/app/view/templates/admin.php @@ -10,11 +10,19 @@ <main class="admin"> - <h1>Administration</h1> + <section> <form action="<?= $this->url('adminupdate') ?>" method="post"> + + <article> + + <h1>Administration</h1> + <input type="submit" value="Update configuration"> + </article> + + <article> <h2>Home page</h2> @@ -49,6 +57,10 @@ ?> </select> + </article> + + <article> + <h2>Page creation</h2> <label for="defaultprivacy">Default privacy</label> @@ -82,6 +94,10 @@ } ?> + </article> + + <article> + <h2>Editing</h2> @@ -89,7 +105,8 @@ <label for="existnot">Text to show when a page does not exist yet</label> <input type="text" name="existnot" id="existnot" value="<?= Config::existnot() ?>"> - <h2>Render</h2> + + <h4>Render</h4> <div class="checkbox"> <input type="hidden" name="reccursiverender" value="0"> @@ -97,7 +114,8 @@ <label for="reccursiverender">Reccursive render</label> </div> - <h3>Links</h3> + + <h4>Links</h4> <div class="checkbox"> <input type="hidden" name="externallinkblank" value="0"> @@ -113,7 +131,7 @@ <i>(This modifications need re-rendering)</i> - <h3>Edit quick menu</h3> + <h4>Edit quick menu</h4> <div class="checkbox"> <input type="checkbox" name="showeditmenu" id="showeditmenu" <?= Config::showeditmenu() === true ? 'checked' : '' ?>> @@ -137,6 +155,10 @@ } ?> + </article> + + <article> + <h2>CSS</h2> <label for="globalcss">Edit global css that will apply to every pages</label> @@ -154,6 +176,9 @@ ?> </select> + </article> + + <article> <h2>Tracking</h2> @@ -162,13 +187,18 @@ <i>(Need rendering to work)</i> + </article> + <article> <input type="submit" value="Update configuration"> + </article> + + </form> - + </section> </main> </body> diff --git a/app/view/templates/font.php b/app/view/templates/font.php index 3de0dce..6c53023 100644 --- a/app/view/templates/font.php +++ b/app/view/templates/font.php @@ -10,8 +10,11 @@ <main class="font"> +<section> -<h1>Fonts</h1> +<article> + +<h1>Fonts manager</h1> <div> @@ -21,6 +24,10 @@ <a href="<?= $fontfile ?>" target="_blank">👓 View font CSS file</a> </div> +</article> + +<article> + <h2>Add Font</h2> <form action="<?= $this->url('fontadd') ?>" method="post" enctype="multipart/form-data"> @@ -31,6 +38,9 @@ <input type="submit" value="upload font(s)"> </form> +</article> + +<article> <h2>Font stock</h2> @@ -55,6 +65,10 @@ foreach ($fontlist as $font ) { ?> </table> +</article> + +</section> + </main> </body> diff --git a/app/view/templates/info.php b/app/view/templates/info.php index 3203ce6..6e971fb 100644 --- a/app/view/templates/info.php +++ b/app/view/templates/info.php @@ -10,6 +10,34 @@ <main class="info"> + +<section> + + +<nav> +<h2>Manual Summary</h2> +<ul> + <li><a href="#startup">Startup</a></li> + <ul> + + </ul> + <li><a href="#structure">Structure</a></li> + <ul> + <li><a href="#attributes">Page attributes</a></li> + <li><a href="#database">Database</a></li> + </ul> + <li><a href="#editor">Editor</a></li> + <ul> + <li><a href="#elementsyntax">Elements syntax</a></li> + <li><a href="#bodysyntax">Body syntax</a></li> + </ul> +</ul> + +</nav> + + +<article> + <h1>Info</h1> <h2>Version</h2> @@ -39,34 +67,9 @@ <a href="https://nicolas.club1.fr" target="_blank">🚲 Nicolas Peugnet</a> +</article> - - -<nav> -<h2>Manual Summary</h2> -<ul> - <li><a href="#startup">Startup</a></li> - <ul> - - </ul> - <li><a href="#structure">Structure</a></li> - <ul> - <li><a href="#attributes">Page attributes</a></li> - <li><a href="#database">Database</a></li> - </ul> - <li><a href="#editor">Editor</a></li> - <ul> - <li><a href="#elementsyntax">Elements syntax</a></li> - <li><a href="#bodysyntax">Body syntax</a></li> - </ul> -</ul> - -</nav> - - - - -<article> +<article id="manual"> <h2 id="manual">Manual</h2> @@ -362,6 +365,8 @@ __content of this page html element__ </article> +</section> + </main> </body> diff --git a/app/view/templates/media.php b/app/view/templates/media.php index 1b63b16..cf02ebb 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -12,7 +12,7 @@ <div id="tree"> -<h1>Explorer</h1> +<h2>Explorer</h2> <table id="dirlsit"> diff --git a/app/view/templates/timeline.php b/app/view/templates/timeline.php index fcf8afd..874b953 100644 --- a/app/view/templates/timeline.php +++ b/app/view/templates/timeline.php @@ -14,6 +14,10 @@ <main class="timeline"> +<section> + +<article id="live"> + <h1>Timeline</h1> <ul> @@ -68,6 +72,12 @@ foreach ($groupedeventlist as $eventuser) { </ul> +</article> + +<article id="message"> + +<h2>Message</h2> + <form action="<?= $this->url('timelineadd') ?>" method="post"> <input type="hidden" name="type" value="message"> @@ -83,6 +93,10 @@ foreach ($groupedeventlist as $eventuser) { <?php } ?> +</article> + +</section> + </body> diff --git a/app/view/templates/user.php b/app/view/templates/user.php index 0f9ac7b..7512267 100644 --- a/app/view/templates/user.php +++ b/app/view/templates/user.php @@ -10,6 +10,9 @@ <main class="user"> +<section> + +<article> <h1>User : <?= $user->id() ?></h1> @@ -26,8 +29,13 @@ </form> +</article> + + <?php if($user->isadmin()) { ?> +<article> + <h1>Admin panel</h1> <table> @@ -110,9 +118,14 @@ foreach ($userlist as $user ) { </table> +</article> + <?php } ?> +</section> + + </main> </body> |