aboutsummaryrefslogtreecommitdiff
path: root/app/view
diff options
context:
space:
mode:
Diffstat (limited to 'app/view')
-rw-r--r--app/view/templates/connect.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/view/templates/connect.php b/app/view/templates/connect.php
index 608a557..82c01ec 100644
--- a/app/view/templates/connect.php
+++ b/app/view/templates/connect.php
@@ -11,16 +11,14 @@
<?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 ?>">
<?php
-if(in_array($route, ['artedit', 'artread', 'artread/'])) {
+if(in_array($route, ['artedit', 'artread', 'artread/', 'artadd'])) {
echo '<input type="hidden" name="id" value="'. $id .'">';
}
?>
-<input type="password" name="pass" id="loginpass" placeholder="password">
+<input type="password" name="pass" id="loginpass" placeholder="password" autofocus>
<input name="log" type="submit" value="login">
</form>
@@ -35,4 +33,10 @@ if(in_array($route, ['artedit', 'artread', 'artread/'])) {
<?php } ?>
+<?php
+if(in_array($route, ['artedit', 'artread', 'artread/', 'artadd'])) {
+ echo '<p><a href="' . $this->uart('artread/', $id) . '">back to page read view</a></p>';
+}
+?>
+
<?php $this->stop() ?> \ No newline at end of file