dossier_detail.haml 1.62 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>

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 "Documents"

  %table.table
    %tr
      %th
        - trans "Chamber"
      %th
        - trans "Document type"
      %th
        - trans "Title"

    - for document in dossier.documents.all
      %tr
        %td
          = document.chamber | chamber_icon
        %td
          %a.external{'href': '{{ document.link }}', target:'_blank'}
            - if document.kind == 'procedure-file'
              - trans "Procedure file"
            - else
              = document.kind
        %td
          %a.external{'href': '{{ document.link }}', target:'_blank'}
            = document.title

Nicolas Joyard's avatar
Nicolas Joyard committed
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
  %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 }}
63
64
65
66
67
68
69
70
71

        - 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
72
73
74
75
76
        %td= proposal.status
        %td= proposal.total_for
        %td= proposal.total_against
        %td= proposal.total_abstain