Code: Alles auswählen
{{form.text(cols='30', rows='11')|safe}}
Code: Alles auswählen
{% macro render_field(field) %}
<dt>{{ field.label }}
<dd>{{ field(**kwargs)|safe }}
{% if field.errors %}
<ul class="errors">
{% for error in field.errors %}<li>{{ error }}{% endfor %}
</ul>
{% endif %}
</dd>
{% endmacro %}
Code: Alles auswählen
class NewForm(wtf.Form):
title = wtf.TextField()
content = wtf.TextAreaField()