Skip to content

Commit

Permalink
bug #92 Fixed form errors for comment (hason)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Fixed form errors for comment

Commits
-------

84b8836 Fixed form errors for comment
  • Loading branch information
javiereguiluz committed Jul 8, 2015
2 parents 0eff94a + 84b8836 commit d838ad6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/Resources/views/blog/comment_form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@
<fieldset>
<legend>{{ 'title.add_comment'|trans }}</legend>

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

{% if not form.vars.valid %}
<div class="alert alert-danger form-error">
{{ form_errors(form.content) }}
</div>
{{ form_errors(form.content) }}
{% endif %}

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

0 comments on commit d838ad6

Please sign in to comment.