2024-08-10 21:01:49 +02:00
|
|
|
{% extends "base.html" %}
|
2020-11-21 20:51:32 +01:00
|
|
|
|
2024-08-10 21:01:49 +02:00
|
|
|
{% block head %}
|
|
|
|
{{ super() }}
|
|
|
|
<title>Edit '{{ title }}'</title>
|
|
|
|
<meta property="og:title" content="Edit '{{ title }}'" />
|
|
|
|
{% endblock head %}
|
2020-11-21 20:51:32 +01:00
|
|
|
|
2024-08-10 21:01:49 +02:00
|
|
|
{% block content %}
|
|
|
|
<form id="submit-form" action="/api/blog/posts/edit/{{ id }}" method=POST>
|
|
|
|
<label for="token">Password</label>
|
|
|
|
<br />
|
|
|
|
<input id="token" type="password" name="token">
|
|
|
|
<br />
|
|
|
|
<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 />
|
|
|
|
<button id="submit-button" type="submit">Edit post</button>
|
|
|
|
</form>
|
2020-11-21 20:51:32 +01:00
|
|
|
|
2024-08-10 21:01:49 +02:00
|
|
|
<form action="/api/blog/posts/hide/{{ id }}" method="POST">
|
|
|
|
<input class="token" type="text" name="token" hidden>
|
|
|
|
<button type="submit">Hide post</button>
|
|
|
|
</form>
|
|
|
|
<form action="/api/blog/posts/delete/{{ id }}" method="POST">
|
|
|
|
<input class="token" type="text" name="token" hidden>
|
|
|
|
<button type="submit">Delete post</button>
|
|
|
|
</form>
|
|
|
|
{% endblock content %}
|