crablog/site/content/templates/submit.html

26 lines
No EOL
733 B
HTML

{% extends "base.html" %}
{% block head %}
{{ super() }}
<title>Submit post</title>
<meta property="og:title" content="Submit post" />
{% endblock head %}
{% block content %}
<form id="submit-form" action="/api/blog/create" method=POST>
<label for="title">Title</label>
<textarea id="submit-title" type="text" name="title">{{ title }}</textarea>
<br />
<label for="submit-body">Content</label>
<textarea id="submit-body" type="text" name="body">{{ body }}</textarea>
<br />
<div class="submit-box">
<div>
<label for="token">Password</label>
<input id="token" type="password" name="token">
</div>
<button id="submit-button" type="submit">Submit</button>
</div>
</form>
{% endblock content %}