sutty-base-jekyll-theme/_includes/contact.html

24 lines
801 B
HTML
Raw Normal View History

2020-06-05 14:31:40 +00:00
{% comment %}
2021-01-13 17:37:17 +00:00
Esta imagen obtiene una cookie desde la API de Sutty para autorizar el
envío del formulario.
2020-06-05 14:31:40 +00:00
{% endcomment %}
2021-01-13 17:37:17 +00:00
<img class="d-none invisible" src="https://api.sutty.nl/v1/sites/{{ site.hostname }}/contact/cookie.png" />
2020-06-05 14:31:40 +00:00
{% comment %}
El formulario se envía a la API. La definición del formulario se
encuentra en _data/forms/contacto.yml
{% endcomment %}
2021-01-13 17:37:17 +00:00
<form
data-turbo="false"
data-controller="contact"
data-delay="60"
2021-01-13 17:37:17 +00:00
action="https://api.sutty.nl/v1/sites/{{ site.hostname }}/contact/{{ include.name }}"
method="post">
2020-06-05 14:31:40 +00:00
{%- for field in include.form -%}
{% assign template = field[1].type | append: '.html' %}
<div class="col{{ field[1].col | default: 12 | prepend: '-' }}">
{% include {{ template }} field=field %}
</div>
{%- endfor -%}
</form>