Hello,
How can I add Recaptcha to the Contact form in the Gravstrap Theme?
I've found: /user/plugins/gravstrap/templates/vendor/simple_form.html.twig
<form name="simple_form" id="simple_form" class="form-horizontal" action="https://getsimpleform.com/messages?form_api_token={{ token | e('html_attr') }}" method="post">
{# Redirect URL after submit #}
<input type="hidden" name="redirect_to" value="{{ redirect_to | raw }}" />
{% set column_width = 12 %}
{% if show_form_labels %}
{% set column_width = 10 %}
{% endif %}
{{ dump(show_form_labels) }}
<div class="form-group">
{% if show_form_labels %}
<label for="name" class="col-md-2 control-label">Name</label>
{% endif %}
<div class="col-md-{{ column_width }}">
<input type="text" name="name" class="form-control" id="name" placeholder="Ihr Name" />
</div>
</div>
<div class="form-group">
{% if show_form_labels %}
<label for="email" class="col-md-2 control-label">Email</label>
{% endif %}
<div class="col-md-{{ column_width }}">
<input type="email" name="email" class="form-control" id="email" placeholder="[email protected]">
</div>
</div>
<div class="form-group">
{% if show_form_labels %}
<label for="message" class="col-md-2 control-label">Message</label>
{% endif %}
<div class="col-md-{{ column_width }}">
<textarea name="message" class="col-md-12 form-control" rows="6" id="message" placeholder="Ihre Nachricht" required></textarea>
</div>
</div>
<div class="form-group">
<div class="{% if show_form_labels %}col-md-offset-2 {% endif %}col-md-{{ column_width }}">
<button type="submit" class="btn btn-default">Absenden</button>
</div>
</div>
</form>
Thans for help!
Best regards
Stefan