At the time of rendering a date field i want to display glyphicon-calender icon....for this i tried following...but i am getting glyphicon-icon at the bottom of the field....how to rectify this...whether we can set this in form itself or how can we do this in volt ? Please Help..!!!
{% for element in form %}
{% if is_a(element, 'Phalcon\Forms\Element\Hidden') %}
{{ element }}
{% elseif element.getName() == "txn_date" %}
<div class="form-group" >
{{ element.label() }}
{{ element.render(['class': 'form-control']) }}
<span class="glyphicon glyphicon-calendar form-group"></span>
</div>
{% else %}
<div class="form-group" >
{{ element.label() }}
{{ element.render(['class': 'form-control']) }}
</div>
{% endif %}
{% endfor %}