forked from mirror/oddmu
26 lines
1.2 KiB
HTML
26 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="format-detection" content="telephone=no">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
|
<title>Add to {{.Title}}</title>
|
|
<style>
|
|
html { max-width: 70ch; padding: 1ch; height: calc(100% - 2ch); margin: auto }
|
|
body { hyphens: auto; color: #111; background-color: #ffe; margin: 0; padding: 0; height: 100%; display: flex; flex-flow: column }
|
|
form, textarea { box-sizing: border-box; width: 100%; font-size: inherit }
|
|
#editor { flex: 1 1 auto; display: flex; flex-flow: column }
|
|
textarea { flex: 1 1 auto }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Adding to {{.Title}}</h1>
|
|
<form id="editor" action="/append/{{.Path}}" method="POST">
|
|
<textarea name="body" rows="20" cols="80" placeholder="Text" lang="{{.Language}}" autofocus required></textarea>
|
|
<p><label><input type="checkbox" name="notify" checked> Add link to <a href="/view/changes">the list of changes</a>.</label></p>
|
|
<p><input type="submit" value="Add">
|
|
<a href="/view/{{.Path}}"><button type="button">Cancel</button></a></p>
|
|
</form>
|
|
</body>
|
|
</html>
|