{{'PLUGIN_COMMENTS.ADD_COMMENT'|t}}

{% for field in grav.config.plugins.comments.form.fields %} {% set value = form.value(field.name) %} {% if field.evaluateDefault %} {% set value = evaluate(field.evaluateDefault) %} {% endif %} {% if config.plugins.login.enabled and grav.user.authenticated %} {% if field.name == 'name' %} {% elseif field.name == 'email' %} {% else %}
{% include "forms/fields/#{field.type}/#{field.type}.html.twig" %}
{% endif %} {% else %}
{% include "forms/fields/#{field.type}/#{field.type}.html.twig" %}
{% endif %} {% endfor %} {% include "forms/fields/formname/formname.html.twig" %}
{% for button in grav.config.plugins.comments.form.buttons %} {% endfor %}
{{ nonce_field('form', 'form-nonce')|raw }}
{{ form.message }}