Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Political Memory
memopol
Commits
2b8d8221
Commit
2b8d8221
authored
Apr 23, 2017
by
Nicolas Cn
Browse files
add dossier/votes page
parent
4adcced7
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/memopol/templates/representatives_votes/dossier_detail.html
View file @
2b8d8221
...
...
@@ -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>
...
...
src/memopol/templates/representatives_votes/dossier_detail_votes.html
0 → 100644
View file @
2b8d8221
{% extends 'representatives_votes/dossier_detail.html' %}
{% load i18n %}
{% load fontawesome %}
{% load memopol_tags %}
{% block dossier_content %}
{% endblock %}
src/memopol/urls.py
View file @
2b8d8221
...
...
@@ -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
(),
...
...
src/memopol/views/dossier_detail_votes.py
0 → 100644
View file @
2b8d8221
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment