Commit 70f1a330 authored by Nicolas Joyard's avatar Nicolas Joyard

Add document list on dossier details page

parent 98f31254
......@@ -9,5 +9,7 @@ class DossierDetail(generic.DetailView):
queryset = Dossier.objects.prefetch_related(
'proposals',
'proposals__recommendation'
'proposals__recommendation',
'documents',
'documents__chamber',
)
......@@ -9,6 +9,32 @@
%p
<strong>{{ dossier.reference }}</strong>
%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
%h2
- trans "Recommendations"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment