20 lines
697 B
HTML
Executable file
20 lines
697 B
HTML
Executable file
{% extends "polls/event_detail_base.html" %}
|
|
{% load staticfiles %}
|
|
{% load bootstrap3 %}
|
|
|
|
{% block event_nav_polls %}active{% endblock %}
|
|
{% block event_content %}
|
|
<h2>Related Polls</h2>
|
|
{% if object.polls.all %}
|
|
<ul class="list-group">
|
|
{% for poll in object.polls.all %}
|
|
<li class="list-group-item"><a href="{% url 'polls:view-poll' event_id=event.id poll_num=forloop.counter %}">{{ poll.question_text }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p>No polls are available for this Event.</p>
|
|
{% endif %}
|
|
{% if is_organiser %}
|
|
<a href="{% url 'polls:create-poll' event.id %}" class="btn btn-default" role="button">Add Poll</a>
|
|
{% endif %}
|
|
{% endblock %}
|