diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-01-14 19:24:19 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-01-14 19:24:19 +0100 |
commit | 8130427ec508f1d66553b52052c840c311081061 (patch) | |
tree | 23bab28db0f649618aa6bea024dcee84a9a25308 /app/view | |
parent | eb30a63c819ca50ebbc896eb293a0745dcd043be (diff) | |
download | wcms-8130427ec508f1d66553b52052c840c311081061.tar.gz wcms-8130427ec508f1d66553b52052c840c311081061.zip |
fix save art out of session
Diffstat (limited to 'app/view')
-rw-r--r-- | app/view/templates/backtopbar.php | 1 | ||||
-rw-r--r-- | app/view/templates/connect.php | 4 | ||||
-rw-r--r-- | app/view/templates/navart.php | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/app/view/templates/backtopbar.php b/app/view/templates/backtopbar.php index 07b19e8..d6b522e 100644 --- a/app/view/templates/backtopbar.php +++ b/app/view/templates/backtopbar.php @@ -15,6 +15,7 @@ <form action="<?= $this->url('log') ?>" method="post" id="connect"> <input type="password" name="pass" id="loginpass" placeholder="password"> +<input type="hidden" name="route" value="home"> <input type="submit" name="log" value="login"> </form> diff --git a/app/view/templates/connect.php b/app/view/templates/connect.php index 06fe9c8..5d7ee5c 100644 --- a/app/view/templates/connect.php +++ b/app/view/templates/connect.php @@ -11,7 +11,11 @@ <?php if($user->isvisitor()) { ?> +<?= $route === 'artedit' ? '<p>Your edits have been temporary saved. You need to connect and update to store it completly</p>' : '' ?> + <form action="<?= $this->url('log') ?>" method="post"> +<input type="hidden" name="route" value="<?= $route ?>"> +<input type="hidden" name="id" value="<?= $id ?>"> <input type="password" name="pass" id="loginpass" placeholder="password"> <input name="log" type="submit" value="login"> </form> diff --git a/app/view/templates/navart.php b/app/view/templates/navart.php index be3b248..1e6b551 100644 --- a/app/view/templates/navart.php +++ b/app/view/templates/navart.php @@ -72,6 +72,7 @@ <li class="drop"> <form action="<?= $this->url('log') ?>" method="post"> <input type="password" name="pass" id="loginpass" placeholder="password"> + <input type="hidden" name="route" value="artread/"> <input type="hidden" name="id" value="<?= $art->id() ?>"> <input type="submit" name="log" value="login" id="button"> </form> @@ -82,6 +83,7 @@ <li class="drop"> <form action="<?= $this->url('log') ?>" method="post"> <input type="hidden" name="id" value="<?= $art->id() ?>"> + <input type="hidden" name="route" value="artread/"> <input type="submit" name="log" value="logout" id="button"> </form> </li> |