aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/pagepassword.php
blob: 509c7ee6cede7aaf02eaacb8f6ac2223e9ff29d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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() ?>