File tree 2 files changed +18
-2
lines changed
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change
1
+ {% extends ' bootstrap_3_layout.html.twig' %}
2
+
3
+ {# Errors #}
4
+
5
+ {% block form_errors -%}
6
+ {% if errors | length > 0 -%}
7
+ {% if form .parent %}<span class =" help-block" >{% else %}<div class =" alert alert-danger" >{% endif %}
8
+ <ul class =" list-unstyled" >
9
+ {%- for error in errors -%}
10
+ {# use font-awesome icon library #}
11
+ <li ><span class =" fa fa-exclamation-triangle" ></span > {{ error .message }}</li >
12
+ {%- endfor -%}
13
+ </ul >
14
+ {% if form .parent %}</span >{% else %}</div >{% endif %}
15
+ {%- endif %}
16
+ {%- endblock form_errors %}
Original file line number Diff line number Diff line change @@ -55,15 +55,15 @@ twig:
55
55
debug : " %kernel.debug%"
56
56
strict_variables : " %kernel.debug%"
57
57
form_themes :
58
- - " bootstrap_3_layout .html.twig"
58
+ - " form/layout .html.twig"
59
59
- " form/fields.html.twig"
60
60
61
61
# Doctrine Configuration (used to access databases and manipulate their information)
62
62
doctrine :
63
63
dbal :
64
64
# if you don't want to use SQLite, change the URL in parameters.yml or set the DATABASE_URL environment variable
65
65
url : " %env(DATABASE_URL)%"
66
-
66
+
67
67
# instead of using a URL, you may also uncomment the following lines to configure your database
68
68
# driver: pdo_mysql
69
69
# host: "%database_host%"
You can’t perform that action at this time.
0 commit comments