17 lines
885 B
HTML
17 lines
885 B
HTML
{% extends 'base.html' %}
|
|
{% block content %}
|
|
<h1>Edit: {{ post.title }}</h1>
|
|
<form method="post" action="/admin/posts/{{ post.id }}/edit">
|
|
<p><label>Titel <input name="title" value="{{ post.title }}" required></label></p>
|
|
<p><label>Slug <input name="slug" value="{{ post.slug }}" required></label></p>
|
|
<p><label>Locale
|
|
<select name="locale">
|
|
<option value="de" {{ 'selected' if post.locale=='de' else '' }}>de</option>
|
|
<option value="en" {{ 'selected' if post.locale=='en' else '' }}>en</option>
|
|
</select></label></p>
|
|
<p><label>Publiziert <input type="checkbox" name="is_published" value="1" {{ 'checked' if post.is_published else '' }}></label></p>
|
|
<p><label>Body (Markdown)<br><textarea name="body_md" rows="12" style="width:100%">{{ post.body_md or '' }}</textarea></label></p>
|
|
<p><button type="submit">Speichern</button></p>
|
|
</form>
|
|
{% endblock %}
|