How can I add a conditional CSS class based on the Python if statement in the following example to show a form element has-success has-feedback
?
<div class="form-group {% if not error_username %} has-success has-feedback {% endif %}">
source
to share