blob: 10fdcf3ad11154e7c264c9cf165c35bf57bb7f89 (
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
|
<section id="cancel" class="box">
<a href="?">cancel.</a>
</section>
<section id="frontmatter" class="box">
<details>
<summary>Opengraph</summary>
<div>
<label for="og-description">Description</label>
<textarea id="og-description" name="og-description" form="edit-form">{og-description}</textarea>
</div>
</details>
</section>
<section id="edit" class="box">
<h2>Editing '{page-editing}'</h2>
<form id="edit-form" action="/quark/api/edit" method="POST" target="preview" enctype="multipart/form-data">
<input type="hidden" name="name" value="{page-editing}">
<textarea name="content" spellcheck="true">{page-content}</textarea>
<input type="text" name="commit" placeholder="Change Message (optional)" spellcheck="true" autocomplete="off">
<input type="submit" value="Edit Page" name="edit">
<input type="submit" value="Preview Page" name="preview">
</form>
<!-- https://stackoverflow.com/a/16661115 -->
</section>
<section id="preview" class="box">
<h2>Page Preview</h2>
<iframe id="preview-frame" name="preview"></iframe>
</section>
|