dossier_list.haml 1.07 KB
Newer Older
1
- extends "base.html"
Nicolas Joyard's avatar
Nicolas Joyard committed
2
- load i18n
3
- load memopol_tags
4

Nicolas Joyard's avatar
Nicolas Joyard committed
5
6
7
8
- block head

  {{ filter.form.media }}

9
- block content
Nicolas Joyard's avatar
Nicolas Joyard committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

  - block search

    {% url 'dossier-list' as action_url %}
    - include '_filter_form.html' with action=action_url form=filter.form qs=request.GET.urlencode

  - if object_list|length == 0

    .no-results="No matching dossiers found :("

  - else

    - include 'core/blocks/pagination.html'

    %h1
      - trans "Dossiers"

    %table.table
28
      %tr
29
30
        %th
          - trans "Chambers"
Nicolas Joyard's avatar
Nicolas Joyard committed
31
32
33
34
        %th
          - trans "Title"
        %th
          - trans "Recommendations"
35
36
        %th
          - trans "Proposals"
Nicolas Joyard's avatar
Nicolas Joyard committed
37
38
39
40
41
        %th
          - trans "Reference"

      - for dossier in object_list
        %tr
42
43
44
          %td
            - for chamber in dossier.chambers
              = chamber | chamber_small_icon
Nicolas Joyard's avatar
Nicolas Joyard committed
45
46
47
48
          %td
            %a{'href': "{% url 'dossier-detail' dossier.pk %}"}
              {{ dossier.title }}
          %td= dossier.nb_recomm
49
          %td= dossier.nb_proposals
Nicolas Joyard's avatar
Nicolas Joyard committed
50
          %td= dossier.reference
51

Nicolas Joyard's avatar
Nicolas Joyard committed
52
    - include "core/blocks/pagination.html"