convert forms to wtfforms

This commit is contained in:
2022-11-14 20:21:14 -05:00
parent 1eb56c6c99
commit ee3bc9c2e4
4 changed files with 33 additions and 22 deletions

View File

@@ -3,18 +3,16 @@
{% block content %}
<span><h1>{% block title %} Create New Task {% endblock %}</h1></span>
<form method="post">
{{ form.csrf_token }}
<p>
<label for="title">Title:</label><br>
<input type="text" id="title" name="title"><br>
{{ form.title.label }}
{{ form.title(size=20) }}
</p>
<p>
<label for="description">Description</label><br>
<textarea id="description"
name="description"
cols="25"
rows="5"> </textarea>
{{ form.description.label }}
</p>
{{ form.description(rows=5, cols=25) }}
<p>
<button class="btn btn-primary" type="submit">Add Task</button>
</p>