forked from mirror/oddmu
30 lines
1.3 KiB
HTML
30 lines
1.3 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">
|
|
<base href="/view/{{.Dir}}">
|
|
<title>Editing {{.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>Editing {{.Title}}</h1>
|
|
<form id="editor" action="/save/{{.Path}}" method="POST">
|
|
<textarea name="body" rows="20" cols="80" placeholder="# Title
|
|
|
|
Text" lang="{{.Language}}" autofocus>{{printf "%s" .Body}}</textarea>
|
|
<p><label><input type="checkbox" name="notify" checked> Add link to <a href="changes">the list of changes</a>.</label></p>
|
|
<p><input type="submit" value="Save">
|
|
<button formaction="/preview/{{.Path}}" type="submit">Preview</button>
|
|
<a href="/view/{{.Path}}"><button type="button">Cancel</button></a></p>
|
|
</form>
|
|
</body>
|
|
</html>
|