summaryrefslogtreecommitdiff
path: root/app/gtd/templates/gtd/wiredpost_form.html
blob: a9880cf13bb44f4069da3cf1df97b26d4ba4032f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{% extends 'base_gtd.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" or field.name == "template_type" %}<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 %}