summaryrefslogtreecommitdiff
path: root/app/posts/templates/posts/post_form.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/posts/templates/posts/post_form.html')
-rw-r--r--app/posts/templates/posts/post_form.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/posts/templates/posts/post_form.html b/app/posts/templates/posts/post_form.html
new file mode 100644
index 0000000..23289fe
--- /dev/null
+++ b/app/posts/templates/posts/post_form.html
@@ -0,0 +1,16 @@
+{% extends 'base.html' %}
+{% block primary %}
+<main role="main" class="archive-wrapper">
+ <form action="" method="post" class="comment-form">{% csrf_token %}
+ {% for field in form %}
+ <fieldset>
+ {%if field.name == "guide_type" or field.name == "post_status" %}<span class="selector">{{field.label_tag}}</span>{%else%}{{field.label_tag}}{%endif%}
+ {%if field.name == "body_markdown"%}<div class="textarea-rounded">{{ field }}</div>{%else%}{{field}}{%endif%}
+ </fieldset>
+ <small class="alert">{% if field.errors %}{{field.errors}}{% endif %}</small>
+ {%endfor%}
+ <input class="btn" type="submit" name="add_new" value="Save and add another" />
+ <input type="submit" name="save" class="btn" value="Save" />
+ </form>
+</main>
+{% endblock %}