Commit c24ee71c authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Enhance dossier detail

parent fbfd3126
...@@ -88,4 +88,4 @@ class DossierList(PaginationMixin, representatives_votes_views.DossierList): ...@@ -88,4 +88,4 @@ class DossierList(PaginationMixin, representatives_votes_views.DossierList):
'proposals__recommendation' 'proposals__recommendation'
).annotate( ).annotate(
nb_recomm=Count('proposals__recommendation') nb_recomm=Count('proposals__recommendation')
).order_by('-reference') ).order_by('-nb_recomm', '-reference')
- extends "base.html" - extends "base.html"
- load i18n
- load representatives_votes_tags
- block content - block content
%h2= dossier.name %h1 {{ dossier.name }} {{ dossier.title }}
%h3= dossier.title
%p %p
<strong>{{ dossier.reference }}</strong> <strong>{{ dossier.reference }}</strong>
%h3 Votes ({{dossier.proposals.count}}) %h2
- for proposal in dossier.proposals.all - trans "Recommendations"
%h4
{{ forloop.counter }}. %table.table
{{ proposal.recommendation.title }} - %tr
{{ proposal.datetime }} - %th
{{ proposal.status }} - trans "Proposal"
%p %th
{{ proposal.title }} - trans "Title"
%small %th
{{ proposal.reference }} - trans "Recommendation"
{{ proposal.kind }} %th
{{ proposal.recommendation.description }} - trans "Status"
%p %th= "for" | position_icon
%h5 %th= "against" | position_icon
For : {{ proposal.total_for }} %th= "abstain" | position_icon
%h5
Against : {{ proposal.total_against }} - for proposal in dossier.proposals.all
%h5 %tr
Abstain : {{ proposal.total_abstain }} %td
%p = proposal.title
Participants : {{ proposal.representatives.count }} %br
%small
{{ proposal.reference }}
{{ proposal.kind }}
%td= proposal.recommendation.title
%td= proposal.recommendation.position | position_icon
%td= proposal.status
%td= proposal.total_for
%td= proposal.total_against
%td= proposal.total_abstain
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