added tmeplate macros and base template for forms

This commit is contained in:
Kyle Roux
2017-05-16 10:51:21 -07:00
parent ce763d6493
commit 8faabf9775
6 changed files with 79 additions and 87 deletions

View File

@ -0,0 +1,12 @@
{% extends 'layouts/master.html' %}
{% from "web/_macros.html" import render_field %}
{% block body %}
<h1>{{ self.title() }}</h1>
<form action="{% block form_action %}{% endblock %}" method="post">
{{ form.csrf_token }}
{% for field in form %}
{{ render_field(field, field._field_args) }}
{% endfor %}
</form>
{% endblock %}