I read through Flask-WTF extremely simplified wiki, and couldn't understand much about what I can do with it. I am under the impression that the <form>
section of the html now can only look like
<form method="post">
{{ form.hidden_tag() }}
{{ form.name }}
<input type="submit">
</form>
But I really want to style my using materialized such as:
<div class="row">
<div class="input-field col s6">
<i class="material-icons prefix">account_circle</i>
<input value="FN" id="first_name" type="text" class="validate">
<label class="active" for="first_name">First Name</label>
</div>
<div class="input-field col s6">
<input value="LN" id="last_name" type="text" class="validate">
<label class="active" for="last_name">Last Name</label>
</div>
</div>
Where can I fit {{ form.first_name }}
and {{ form.last_name }}
into?
EDIT: Let me elaborate on my answer a bit more:
For example, I want something like Materialized datepicker
(a good pop up calendar that lets user to choose the date), this should be in the <input class='datepicker' length="50">
, but now that I am replacing the whole <input>
line with {{ form.date }}
... I lost that privilege to edit the class and what not.
f
refer to in your first way? – Kraigkrait