added tmeplate macros and base template for forms
This commit is contained in:
12
templates/web/contact_form.html
Normal file
12
templates/web/contact_form.html
Normal 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 %}
|
Reference in New Issue
Block a user