cat <<-EOF
<h1>Move Page</h1>
<p class="pageid">$(HTML "${page}")</p>
- <input name="newlocation" value="$(HTML "$location")" placeholder="New Location">
+ <input list="locations" autocomplete="off" name="newlocation" value="$(HTML "$location")" placeholder="New Location">
<ul>
<li>A page with the same name must not already exist at the new location.</li>
<li>You must have permission to create new pages at this location.</li>
cat <<-EOF
<h1>Rename Page</h1>
<p class="pageid">$(HTML "${page}")</p>
- <input name="newname" value="$(HTML "$name")" placeholder="New Name">
+ <input autocomplete="off" name="newname" value="$(HTML "$name")" placeholder="New Name">
<ul>
<li>A page with the new name must not already exist.</li>
<li>You must have permission to create new pages at this location.</li>
theme_page - <<-EOF
<form method=POST id=movepage>
<input type=hidden name=session_id value="$SESSION_KEY">
+ <datalist id="locations">
+ $(page_glob / -1 |while read loc; do
+ [ "$loc" = "$page" ] && continue
+ acl_write "$loc" || continue
+ printf '\n <option>%s</option>' "$(HTML "$loc")"
+ done)
+ </datalist>
$(l10n_movepage)
</form>
EOF
cat <<-EOF
<h1>Seite verschieben</h1>
<p class="pageid">$(HTML "${page}")</p>
- <input name="newlocation" value="$(HTML "$location")" placeholder="Neuer Ort">
+ <input list="locations" autocomplete="off" name="newlocation" value="$(HTML "$location")" placeholder="Neuer Ort">
<ul>
<li>Eine Seite mit dem selben Namen darf nicht schon vorhanden sein.</li>
<li>Sie müssen die Berechtigung haben, Seiten an diesem Ort anzulegen.</li>
cat <<-EOF
<h1>Seite Umbenennen</h1>
<p class="pageid">$(HTML "${page}")</p>
- <input name="newname" value="$(HTML "$name")" placeholder="Neuer Name">
+ <input autocomplete="off" name="newname" value="$(HTML "$name")" placeholder="Neuer Name">
<ul>
<li>Eine Seite mit dem neuen Namen darf nicht schon vorhanden sein.</li>
<li>Sie müssen die Berechtigung haben, Seiten an diesem Ort anzulegen.</li>
text-decoration: line-through;
}
+main > form#movepage input,
+main > form#renamepage input {
+ min-width: 30em;
+ max-width: 100%;
+}
+
[id$="/[revision]"] main .revisions,
[id$="/[attachment]"] main > .attachment.list {
margin: 1em;