blob: 4da37aba9bb92ba0dbf04c916b8202b77019622f (
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
31
32
33
34
35
36
37
38
39
40
41
42
|
<section id="cancel" class="box">
<a href="?">cancel.</a>
</section>
<section id="section-list" class="box">
<h2>sections</h2>
<ul>
{%pattern sections-list}<li>{section}</li>{%end}
</ul>
<form id="create-section-form" action="/quark/api/create/section" method="POST" target="preview">
<input type="text" name="name" placeholder="new section" spellcheck="true" autocomplete="off">
<input type="submit" value="Create" name="create" id="submit-create-section">
</form>
</section>
<section id="create" class="box">
<h2>Page Creation</h2>
<form id="create-form" action="/quark/api/create" method="POST" enctype="multipart/form-data" target="preview">
<datalist id="sections">
{%pattern sections-data}<option value="{section}"></option>{%end}
</datalist>
<input type="text" name="name" placeholder="Name" spellcheck="true" list="sections">
<textarea name="content" spellcheck="true"></textarea>
<input type="submit" value="Preview" name="preview" id="submit-preview">
<input type="submit" value="Create Page" name="create" id="submit-create">
<input type="submit" value="Create Draft" name="draft" id="submit-draft" disabled>
</form>
</section>
<section id="preview" class="box">
<h2>Page Preview</h2>
<iframe id="preview-frame" name="preview"></iframe>
</section>
<section class="box" style="display: none">
<h2>Drafts</h2>
<ol>
{%pattern drafts}
<li><a href="{draft.edit_link}">{draft.name}</a></li>
{%end}
</ol>
</section>
|