I have a Flask Wtf form as follows:
class URL_Status(Form):
url = URLField("Enter URL",
validators=[url(), DataRequired()],
render_kw={"placeholder": "http://www.example.com"},)
submit = SubmitField('Search', render_kw={"onclick": "loading()"})
now I would like to add a bootstrap glyphicon in the input filed i.e. 'url'. As far as I know from this link. We need to write the code as follows:
<div class="form-group has-feedback">
<label class="control-label">Username</label>
<input type="text" class="form-control" placeholder="Username" />
<i class="glyphicon glyphicon-user form-control-feedback"></i>
</div>
When I call the form in HTMl my html creates all the code except this line:
<i class="glyphicon glyphicon-user form-control-feedback"></i>
Any suggestions how can I add this line from my class 'URL_Status' so that I am able to see a glyphicon with my input field. Thanks