Skip to content

Commit

Permalink
Merge pull request #607 from XWB/method
Browse files Browse the repository at this point in the history
Remove duplicate form elements
  • Loading branch information
XWB committed Jul 11, 2017
2 parents 200b021 + 73e1111 commit ce7a477
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Resources/views/Thread/comment_remove.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
{{ form_rest(form) }}
{% endblock %}

<input type="hidden" name="_method" value="patch" />

<div class="fos_comment_submit">
{% block fos_comment_form_submit %}
<input type="submit" value="{{ 'fos_comment_comment_delete' | trans({}, 'FOSCommentBundle') }}" />
Expand Down
2 changes: 0 additions & 2 deletions Resources/views/Thread/commentable.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
{{ form_rest(form) }}
{% endblock %}

<input type="hidden" name="_method" value="patch" />

<div class="fos_comment_submit">
{% block fos_comment_form_submit %}
<input type="submit" value="{{ (isCommentable ? 'fos_comment_thread_open' : 'fos_comment_thread_close') | trans({}, 'FOSCommentBundle') }}" />
Expand Down

0 comments on commit ce7a477

Please sign in to comment.