diff --git a/Resources/views/Form/fields.html.twig b/Resources/views/Form/fields.html.twig
index b79394550..173941e44 100644
--- a/Resources/views/Form/fields.html.twig
+++ b/Resources/views/Form/fields.html.twig
@@ -2,10 +2,14 @@
{% block form_row %}
{% spaceless %}
-
- {{ form_errors(form) }}
+
{{ form_label(form) }}
{{ form_widget(form) }}
+ {{ form_errors(form) }}
{% endspaceless %}
{% endblock form_row %}
@@ -89,7 +93,7 @@
{% set label_attr = label_attr|merge({'for': id}) %}
{% endif %}
{% if required %}
- {% set label_attr = label_attr|merge({'class': (label_attr.class|default('inline ') ~ ' required')|trim}) %}
+ {% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' required')|trim}) %}
{% endif %}
{% if label is empty %}
{% set label = name|humanize %}
@@ -106,7 +110,20 @@
{{ form_widget(form.daily_counter, { 'attr': { 'class': 'input belgian_national_number_daily_counter' } } ) }}
{{ form_widget(form.control_digit, { 'attr': { 'class': 'input belgian_national_number_control_digit' } } ) }}
{% endspaceless %}
-{% endblock %}
+{% endblock %}
+
+
+{% block form_errors %}
+{% spaceless %}
+ {% if errors|length > 0 %}
+
+ {% for error in errors %}
+ - {{ error.message }}
+ {% endfor %}
+
+ {% endif %}
+{% endspaceless %}
+{% endblock form_errors %}
{#
diff --git a/Tests/Controller/DefaultControllerTest.php b/Tests/Controller/DefaultControllerTest.php
index d728906dd..6b49cccf5 100644
--- a/Tests/Controller/DefaultControllerTest.php
+++ b/Tests/Controller/DefaultControllerTest.php
@@ -8,10 +8,6 @@ class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
- $client = static::createClient();
-
- $crawler = $client->request('GET', '/hello/Fabien');
-
- $this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0);
+
}
}