dossier_detail.haml 938 Bytes
Newer Older
1
2
- extends "base.html"

Nicolas Joyard's avatar
Nicolas Joyard committed
3
4
5
- load i18n
- load representatives_votes_tags

6
7
- block content

Nicolas Joyard's avatar
Nicolas Joyard committed
8
  %h1 {{ dossier.name }} {{ dossier.title }}
9
10
11
  %p
    <strong>{{ dossier.reference }}</strong>

Nicolas Joyard's avatar
Nicolas Joyard committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  %h2
    - trans "Recommendations"

  %table.table
    %tr
      %th
        - trans "Proposal"
      %th
        - trans "Title"
      %th
        - trans "Recommendation"
      %th
        - trans "Status"
      %th= "for" | position_icon
      %th= "against" | position_icon
      %th= "abstain" | position_icon

    - for proposal in dossier.proposals.all
      %tr
        %td
          = proposal.title
          %br
          %small
            {{ proposal.reference }}
            {{ proposal.kind }}
        %td= proposal.recommendation.title
Nicolas Joyard's avatar
Nicolas Joyard committed
38
        %td= proposal.recommendation.recommendation | position_icon
Nicolas Joyard's avatar
Nicolas Joyard committed
39
40
41
42
43
        %td= proposal.status
        %td= proposal.total_for
        %td= proposal.total_against
        %td= proposal.total_abstain