Updated pre-commit hook and fixed bug in accordius/style.css.php
[lw2-viewer.git] / templates / edit-post.html
blobe522473796dcf103886381683002fac2fdc82590
1 <div class="posting-controls with-markdown-editor {% if post-id %}edit-existing-post{% else %}create-new-post{% endif %}" onsubmit="disableBeforeUnload();">
2 <form method="post" action="/edit-post" id="edit-post-form" class="aligned-form">
3 <div class="post-meta-fields">
4 <label for="title">Title:</label>
5 <input name="title" autocomplete="off" type="text" value="{{ title }}">
6 <input type="checkbox" class="link-post-checkbox" name="link-post" id="link-post"{% if url %} checked{% endif %}>
7 <label for="link-post">Link post</label>
8 <label for="url">URL:</label>
9 <input name="url" autocomplete="off" type="text" value="{{ url }}">
10 <input type="checkbox" class="question-checkbox" name="question" id="question"{% if question %} checked{% endif %}>
11 <label for="question">Question post</label>
12 <label for="section">Section:</label>
13 {% for section in section-list %}
14 <input type="radio" name="section" id="{{ section.name }}" value="{{ section.name }}"{% if section.selected %} checked{% endif %}><label for="{{ section.name }}">{{ section.desc }}</label>
15 {% endfor %}
16 </div>
17 <div class="textarea-container">
18 <textarea name="text" oninput="enableBeforeUnload();">{{ markdown-source }}</textarea>
19 <span class="markdown-reference-link">You can use <a href="http://commonmark.org/help/" target="_blank">Markdown</a> here.</span>
20 <button type="button" class="guiedit-mobile-auxiliary-button guiedit-mobile-help-button">Help</button>
21 <button type="button" class="guiedit-mobile-auxiliary-button guiedit-mobile-exit-button">Exit</button>
22 </div>
23 <div>
24 {% if post-id %}<input name="post-id" value="{{ post-id }}" type="hidden">{% endif %}
25 <input name="csrf-token" value="{{ csrf-token }}" type="hidden">
26 <input value="Submit" type="submit">
27 </div>
28 </form>
29 </div>