Commit 2b8d8221 authored by Nicolas Cn's avatar Nicolas Cn
Browse files

add dossier/votes page

parent 4adcced7
......@@ -37,6 +37,11 @@
<h3>{% trans "Other proposals" %}</h3>
</a>
</li>
<li role="presentation" {% if tab == 'votes' %}class="active"{% endif %}>
<a href="{% url 'dossier-votes' pk=dossier.pk %}" role="tab">
<h3>{% trans "Votes" %}</h3>
</a>
</li>
<li role="presentation" {% if tab == 'documents' %}class="active"{% endif %}>
<a href="{% url 'dossier-documents' pk=dossier.pk %}" role="tab">
<h3>{% trans "Documents" %}</h3>
......
{% extends 'representatives_votes/dossier_detail.html' %}
{% load i18n %}
{% load fontawesome %}
{% load memopol_tags %}
{% block dossier_content %}
{% endblock %}
......@@ -18,6 +18,7 @@ from views.charts import ThemeScoresJSONView, ChamberScoresJSONView
from views.dossier_detail_base import DossierDetailBase
from views.dossier_detail_recommendations import DossierDetailRecommendations
from views.dossier_detail_proposals import DossierDetailProposals
from views.dossier_detail_votes import DossierDetailVotes
from views.dossier_detail_documents import DossierDetailDocuments
from views.dossier_list import DossierList
......@@ -122,6 +123,12 @@ urlpatterns = [
name='dossier-proposals'
),
url(
r'^dossiers/(?P<pk>\d+)/votes/$',
DossierDetailVotes.as_view(),
name='dossier-votes'
),
url(
r'^dossiers/(?P<pk>\d+)/documents/$',
DossierDetailDocuments.as_view(),
......
from .dossier_detail_base import DossierDetailBase
class DossierDetailVotes(DossierDetailBase):
template_name = 'representatives_votes/dossier_detail_votes.html'
def get_context_data(self, **kwargs):
c = super(DossierDetailVotes, self).get_context_data(**kwargs)
return c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment