template error logging, css, better rendering
This commit is contained in:
parent
2e7a81d7c7
commit
0a85a81950
9 changed files with 51 additions and 39 deletions
|
@ -2,30 +2,31 @@
|
|||
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
<title>Edit '{{ title }}'</title>
|
||||
<meta property="og:title" content="Edit '{{ title }}'" />
|
||||
<title>Edit '{{ post.title }}'</title>
|
||||
<meta property="og:title" content="Edit '{{ post.title }}'" />
|
||||
{% endblock head %}
|
||||
|
||||
{% block content %}
|
||||
<form id="submit-form" action="/api/blog/posts/edit/{{ id }}" method=POST>
|
||||
<h1><a href="/" class="hidden-link">{{ username }} blog</a></h1>
|
||||
<form id="submit-form" action="/api/blog/posts/edit/{{ post.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>
|
||||
<textarea id="submit-title" type="text" name="title">{{ post.title }}</textarea>
|
||||
<br />
|
||||
<label for="submit-body">Content</label>
|
||||
<textarea id="submit-body" type="text" name="body">{{ body }}</textarea>
|
||||
<textarea id="submit-body" type="text" name="body">{{ post.body }}</textarea>
|
||||
<br />
|
||||
<button id="submit-button" type="submit">Edit post</button>
|
||||
</form>
|
||||
|
||||
<form action="/api/blog/posts/hide/{{ id }}" method="POST">
|
||||
<form action="/api/blog/posts/hide/{{ post.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">
|
||||
<form action="/api/blog/posts/delete/{{ post.id }}" method="POST">
|
||||
<input class="token" type="text" name="token" hidden>
|
||||
<button type="submit">Delete post</button>
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue