Add missing form_errors calls.

No integration currently done. Should be handled before release

PHRAS-534
This commit is contained in:
Benoît Burnichon
2015-05-20 16:23:26 +02:00
parent 205dc746f4
commit 314f00ac2f

View File

@@ -32,11 +32,13 @@
{{ form_start(form, {'method': 'POST', 'action' : path('setup_display_globals'), 'attr': {'class' : 'form-horizontal'}}) }}
{{ form_errors(form) }}
{% for daform in form %}
<fieldset>
<legend>{{ daform.vars['label'] }}</legend>
{% for formdata in daform %}
<div class="control-group">
{{ form_errors(formdata) }}
{{ form_label(formdata, null, { 'label_attr': {'class' : 'control-label'} } ) }}
<div class="controls">
{{ form_widget(formdata, {'attr': {'class': 'input-xxlarge'}}) }}
@@ -95,4 +97,4 @@
}
});
{% endautoescape %}
</script>
</script>