dossier_detail.haml 1.02 KB
Newer Older
1
2
- extends "base.html"

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

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
  %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 }}
37
38
39
40
41
42
43
44
45

        - if proposal.recommendation

          %td= proposal.recommendation.title
          %td= proposal.recommendation.recommendation | position_icon

        - else
          %td.no-recommendation{colspan:2}= "No recommendation"

Nicolas Joyard's avatar
Nicolas Joyard committed
46
47
48
49
50
        %td= proposal.status
        %td= proposal.total_for
        %td= proposal.total_against
        %td= proposal.total_abstain