             {% if field.is_hidden %}
                                {{ field }}
                            {% else %}
                                <span class="form-group">
                                    {{ field.label_tag }}
                                    {{ field }}
                                    {% for error in field.errors %}
                                        <ul class="error-block">
                                            <li>{{ error|escape }}</li>
                      