32 lines
924 B
HTML
32 lines
924 B
HTML
{% extends "admin/base.html" %}
|
|
|
|
{% block title %}Edit Article{% endblock title %}
|
|
|
|
{% block content %}
|
|
<h1>Edit Article</h1>
|
|
|
|
<form method="post" action="/admin/blog/articles/{{ article.id }}">
|
|
<label>
|
|
Title
|
|
<input type="text" name="title" value="{{ article.title }}" required>
|
|
</label>
|
|
<label>
|
|
Excerpt
|
|
<textarea name="excerpt" rows="4">{% if article.excerpt %}{{ article.excerpt }}{% endif %}</textarea>
|
|
</label>
|
|
<label>
|
|
Content
|
|
<textarea name="content" rows="18" required>{{ article.content }}</textarea>
|
|
</label>
|
|
<label>
|
|
Featured image id
|
|
<input type="text" name="featured_image_id" value="{% if article.featured_image_id %}{{ article.featured_image_id }}{% endif %}">
|
|
</label>
|
|
<label>
|
|
<input type="checkbox" name="published" {% if article.published %}checked{% endif %}>
|
|
Published
|
|
</label>
|
|
<button type="submit">Save</button>
|
|
</form>
|
|
{% endblock content %}
|