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