Skip to content

Commit d838ad6

Browse files
committed
bug symfony#92 Fixed form errors for comment (hason)
This PR was merged into the master branch. Discussion ---------- Fixed form errors for comment Commits ------- 84b8836 Fixed form errors for comment
2 parents 0eff94a + 84b8836 commit d838ad6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/Resources/views/blog/comment_form.html.twig

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@
88
<fieldset>
99
<legend>{{ 'title.add_comment'|trans }}</legend>
1010

11-
<div class="form-group">
11+
<div class="form-group{% if not form.vars.valid %} has-error{% endif %}">
1212
{{ form_label(form.content, 'Content', { label_attr: { class: 'hidden' }}) }}
1313

1414
{% if not form.vars.valid %}
15-
<div class="alert alert-danger form-error">
16-
{{ form_errors(form.content) }}
17-
</div>
15+
{{ form_errors(form.content) }}
1816
{% endif %}
1917

2018
{{ form_widget(form.content, { attr: { rows: 10 } }) }}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy