{% extends 'base.html' %}{% block title %}Polls{% endblock %}{% block content %}

Polls & Surveys

Quick questions to hear from everyone

{% if is_hr %}
+ Create a poll
{% endif %} {% for x in polls %}

{{x.p.question}}

By {{x.p.author}} · {{x.p.created}} · {{x.total}} vote(s) {% if x.p.status=='Closed' %}· Closed{% endif %}
{% if is_hr %}
{% endif %}
{% if x.mine is none and x.p.status=='Open' and g.emp %}
{% for o in x.ops %}{% endfor %}
{% else %}
{% for o in x.ops %}{% set n = x.counts[loop.index0] %}
{{o}}{{ ' ✓' if x.mine==loop.index0 }}
{{n}} · {{ ((n/x.total*100)|round|int) if x.total else 0 }}%
{% endfor %}
{% endif %}
{% else %}
No polls yet.
{% endfor %}{% endblock %}