{% extends 'locations/index.html' %}{% load staticfiles i18n civil_tags %}

{% block require_scripts %}<script src="{% module_path 'poll-results' %}"></script>{% endblock %}

{% block navigation_location %}<div class="location-page-polls">{% include 'locations/location-navbar.html' %}</div>{% endblock %}

{% block content %}<div class="col-sm-8 main-content">
  <h1>{{ poll.title }} - {% trans "results" %}</h1><hr />
  <h3>{% trans 'all answers'|capfirst %}</h3>
  <div id="chart-container" class="civ-chart-container" data-target="{{ poll.pk }}" data-content="{% obj_ct_id 'poll' %}" data-series="{{ data }}">
    <span class="fa fa-spin fa-refresh"> </span>
  </div>
  <h3>{% trans 'answers by time'|capfirst %}</h3>
  <div id="timeline-chart-container" class="civ-chart-container">
    <span class="fa fa-spin fa-refresh"> </span>
  </div>
  <h3>{% trans 'visits in time'|capfirst %}</h3>
  <div id="visit-chart-container" class="civ-chart-container">
    <span class="fa fa-spin fa-refresh"> </span>
  </div>
</div>
<div class="col-sm-4">{% include 'locations/sidebar.html' %}</div>{% endblock %}
