{% 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=survey.title %}
      {% if survey.homepage_introduction %}
          {% include "patterns/basics/headings/sp_variations/heading.html" with type="subheading" htmltag="p" title=survey.homepage_introduction|smarttruncatechars:100|safe %}
      {% endif %}
      {% if form %}
        {% include "patterns/basics/surveys/surveys-modules/form.html"  with  surveytype="poll" surveytypeClass="polls" %}
      {% else %}
          {% include "patterns/basics/surveys/surveys-modules/surveys-feeback.html" with surveytype="poll" surveytypeClass="polls" %}
      {% endif %}
  </div>
</div>
