convert forms to wtfforms
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user