Allow comments to work fine on Form 2.0 too
This commit is contained in:
parent
61b7cd43d1
commit
9ade9bb637
3 changed files with 31 additions and 5 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue