1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-12-08 09:28:10 +00:00

47 insert current date button

This commit is contained in:
DanInSpace
2021-03-20 18:55:00 +05:00
parent 30ec26c5e2
commit 9071a72de3
7 changed files with 258 additions and 178 deletions

View File

@@ -7,9 +7,12 @@
<main class="main-width edit edit_no-preview">
<h1 class="edit__title">Edit {%s util.BeautifulName(hyphaName) %}</h1>
{%s= warning %}
<div class="toolbar">
<button onclick="insertDate()">Insert Date</button>
</div>
<form method="post" class="edit-form"
action="/upload-text/{%s hyphaName %}">
<textarea name="text">{%s textAreaFill %}</textarea>
<textarea id="edit-textarea" name="text">{%s textAreaFill %}</textarea>
<br/>
<input type="submit" name="action" value="Save" class="edit-form__save"/>
<input type="submit" name="action" value="Preview" class="edit-form__preview">
@@ -17,6 +20,7 @@
</form>
</main>
</div>
<script src="/static/toolbar.js"></script>
{% endfunc %}
{% func PreviewHTML(rq *http.Request, hyphaName, textAreaFill, warning string, renderedPage string) %}