{% load wagtailcore_tags gem_tags %}

<div class="polls polls--call-to-action">
  <div class="polls__bubble-icon"></div>
  <div class="polls__container">
    {% trans "Take a vote!" as headingtext %}
    {% include "patterns/basics/headings/sp_variations/heading.html" with type="micro" htmltag="p" title=headingtext %}

    {% include "patterns/basics/headings/sp_variations/heading.html" with type="subheading" htmltag="h3" title=form_page.title %}
      {% if form_page.homepage_introduction %}
          {% include "patterns/basics/headings/sp_variations/heading.html" with type="subheading" htmltag="p" title=form_page.homepage_introduction|smarttruncatechars:100|safe %}
      {% endif %}
      {% if form %}
        {% include "patterns/basics/forms/forms-modules/form.html"  with  formtype="poll" formtypeClass="polls" %}
      {% else %}
          {% include "patterns/basics/forms/forms-modules/forms-feeback.html" with formtype="poll" formtypeClass="polls" %}
      {% endif %}
  </div>
</div>
