aboutsummaryrefslogtreecommitdiff
path: root/app/view
diff options
context:
space:
mode:
Diffstat (limited to 'app/view')
-rw-r--r--app/view/templates/admin.php22
-rw-r--r--app/view/templates/edittopbar.php2
-rw-r--r--app/view/templates/homeopt.php3
3 files changed, 17 insertions, 10 deletions
diff --git a/app/view/templates/admin.php b/app/view/templates/admin.php
index 007ced4..4f03503 100644
--- a/app/view/templates/admin.php
+++ b/app/view/templates/admin.php
@@ -17,12 +17,6 @@
<input type="submit" value="Update configuration">
- <h2>Passwords</h2>
- <label for="admin">Admin password</label>
- <input type="password" name="admin" id="admin" value="<?= Config::admin() ?>">
- <label for="editor">Editor password</label>
- <input type="password" name="editor" id="editor" value="<?= Config::editor() ?>">
-
<h2>Page creation</h2>
<label for="defaultart">Create new page BODY based on an already existing one</label>
<select name="defaultart" id="defaultart">
@@ -44,14 +38,28 @@
}
?>
+ <div class="checkbox">
+ <input type="hidden" name="externallinkblank" value="0">
+ <input type="checkbox" name="externallinkblank" id="externallinkblank" value="1" <?= Config::externallinkblank() ? 'checked' : '' ?>>
+ <label for="externallinkblank">Open external links in new tab</label>
+ </div>
+
+ <div class="checkbox">
+ <input type="hidden" name="internallinkblank" value="0">
+ <input type="checkbox" name="internallinkblank" id="internallinkblank" value="1" <?= Config::internallinkblank() ? 'checked' : '' ?>>
+ <label for="internallinkblank">Open internal links in new tab</label>
+ </div>
+
<h2>Editing</h2>
<label for="existnot">Text to show when a page does not exist yet</label>
<input type="text" name="existnot" id="existnot" value="<?= Config::existnot() ?>">
- <label for="showeditmenu">Show editor menu in top right corner of pages</label>
+ <div class="checkbox">
<input type="checkbox" name="showeditmenu" id="showeditmenu" <?= Config::showeditmenu() === true ? 'checked' : '' ?>>
+ <label for="showeditmenu">Show editor menu in top right corner of pages</label>
+ </div>
<?php
if(Config::showeditmenu() === true) {
diff --git a/app/view/templates/edittopbar.php b/app/view/templates/edittopbar.php
index c547572..d5d032b 100644
--- a/app/view/templates/edittopbar.php
+++ b/app/view/templates/edittopbar.php
@@ -9,7 +9,7 @@
<a href="<?= $this->url('home') ?>" class="icon" >⍇</a>
</span>
<span>
- <input type="submit" value="update" accesskey="x" form="update">
+ <input type="submit" value="update" accesskey="s" form="update">
</span>
diff --git a/app/view/templates/homeopt.php b/app/view/templates/homeopt.php
index f240d0a..a37e65b 100644
--- a/app/view/templates/homeopt.php
+++ b/app/view/templates/homeopt.php
@@ -23,8 +23,7 @@ foreach ($opt->col('array') as $key => $col) {
<fieldset><legend>Privacy</legend><ul>
<li><input type="radio" id="4" name="secure" value="4"<?= $opt->secure() == 4 ? "checked" : "" ?>/><label for="4">all</label></li>
-<li><input type="radio" id="3" name="secure" value="3"<?= $opt->secure() == 3 ? "checked" : "" ?>/><label for="3">editor</label></li>
-<li><input type="radio" id="2" name="secure" value="2"<?= $opt->secure() == 2 ? "checked" : "" ?>/><label for="2">invite only</label></li>
+<li><input type="radio" id="2" name="secure" value="2"<?= $opt->secure() == 2 ? "checked" : "" ?>/><label for="2">not published</label></li>
<li><input type="radio" id="1" name="secure" value="1"<?= $opt->secure() == 1 ? "checked" : "" ?>/><label for="1">private</label></li>
<li><input type="radio" id="0" name="secure" value="0"<?= $opt->secure() == 0 ? "checked" : "" ?>/><label for="0">public</label></li>
</ul></fieldset>