Allow comments to work fine on Form 2.0 too

This commit is contained in:
Flavio Copes 2016-09-15 15:18:14 +02:00
parent 61b7cd43d1
commit 9ade9bb637
3 changed files with 31 additions and 5 deletions

View file

@ -1,4 +1,4 @@
{% if grav.twig.enable %}
{% if grav.twig.enable_comments_plugin %}
<h3>{{'PLUGIN_COMMENTS.ADD_COMMENT'|t}}</h3>
@ -19,7 +19,7 @@
{% else %}
<div>
{% include "forms/fields/#{field.type}/#{field.type}.html.twig" %}
</div>
</div>
{% endif %}
{% else %}
<div>
@ -27,6 +27,7 @@
</div>
{% endif %}
{% endfor %}
{% include "forms/fields/formname/formname.html.twig" %}
<div class="buttons">
{% for button in grav.config.plugins.comments.form.buttons %}