aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/pagepassword.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/view/templates/pagepassword.php')
-rw-r--r--app/view/templates/pagepassword.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/app/view/templates/pagepassword.php b/app/view/templates/pagepassword.php
new file mode 100644
index 0000000..509c7ee
--- /dev/null
+++ b/app/view/templates/pagepassword.php
@@ -0,0 +1,39 @@
+<?php
+
+$this->layout('readerlayout') ?>
+
+<?php
+$this->start('head');
+?>
+
+<head>
+ <?= Wcms\Config::alertcss() ? '<link href="' . Wcms\Model::dirtopath(Wcms\Model::ASSETS_CSS_DIR) . 'global.css" rel="stylesheet" />' : '' ?>
+</head>
+
+
+<?php
+$this->stop();
+?>
+
+
+
+<?php $this->start('page') ?>
+
+<body class="alert">
+
+<main class="alert">
+
+
+<h1>This page is password protected</h1>
+
+<form action="<?= $this->url('pageread/post', ['page' => $pageid]) ?>" method="post">
+<label for="pagepassword">Page password</label>
+<input type="password" name="pagepassword" id="pagepassword" autofocus required>
+</form>
+
+</main>
+
+
+</body>
+
+<?php $this->stop() ?> \ No newline at end of file