aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/backtopbar.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-12-04 20:39:48 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-12-04 20:39:48 +0100
commit42e89ac398bdf2a98167b0b71123c98e297b2130 (patch)
tree623c5e42d9b40a7372f17c070e2b39f52dc44ed1 /app/view/templates/backtopbar.php
parentdd14929505e3fd0bc1710ed757b501d3ec1f6ca1 (diff)
downloadwcms-42e89ac398bdf2a98167b0b71123c98e297b2130.tar.gz
wcms-42e89ac398bdf2a98167b0b71123c98e297b2130.zip
editor right bar
Diffstat (limited to 'app/view/templates/backtopbar.php')
-rw-r--r--app/view/templates/backtopbar.php22
1 files changed, 16 insertions, 6 deletions
diff --git a/app/view/templates/backtopbar.php b/app/view/templates/backtopbar.php
index 1f4a246..a06c304 100644
--- a/app/view/templates/backtopbar.php
+++ b/app/view/templates/backtopbar.php
@@ -1,29 +1,38 @@
<div id="topbar">
+<span id="user">
+
<?php if($user->isvisitor()) { ?>
-<form action="<?= $this->url('log') ?>" method="post">
+<form action="<?= $this->url('log') ?>" method="post" id="connect">
<input type="password" name="pass" id="loginpass" placeholder="password">
<input type="submit" name="log" value="login">
</form>
-<?php } else { ?>
+<?php } else { ?>
-<form action="<?= $this->url('log') ?>" method="post">
+<span>
+User level : <?= $user->level() ?>
+</span>
+
+
+<form action="<?= $this->url('log') ?>" method="post" id="connect">
<input type="submit" name="log" value="logout">
</form>
-<span>
-User level : <?= $user->level() ?>
+
+
</span>
+
+
+
<?php } ?>
<?php if($user->iseditor()) { ?>
-
<span>
<a href="<?= $this->url('home') ?>">home</a>
<?php
@@ -34,6 +43,7 @@ if($user->isadmin()) {
<?php
}
?>
+| <i><a href="https://github.com/vincent-peugnet/wcms" target="_blank">github↝</a></i>
</span>