dossier_list.haml 928 Bytes
Newer Older
1
- extends "base.html"
Nicolas Joyard's avatar
Nicolas Joyard committed
2
- load i18n
3

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

  {{ filter.form.media }}

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

  - 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
27
      %tr
Nicolas Joyard's avatar
Nicolas Joyard committed
28
29
30
31
        %th
          - trans "Title"
        %th
          - trans "Recommendations"
32
33
        %th
          - trans "Proposals"
Nicolas Joyard's avatar
Nicolas Joyard committed
34
35
36
37
38
39
40
41
42
        %th
          - trans "Reference"

      - for dossier in object_list
        %tr
          %td
            %a{'href': "{% url 'dossier-detail' dossier.pk %}"}
              {{ dossier.title }}
          %td= dossier.nb_recomm
43
          %td= dossier.nb_proposals
Nicolas Joyard's avatar
Nicolas Joyard committed
44
          %td= dossier.reference
45

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