diff --git a/backend/hub/templates/hub/candidate/detail.html b/backend/hub/templates/hub/candidate/detail.html index 1d69267..4c47f72 100644 --- a/backend/hub/templates/hub/candidate/detail.html +++ b/backend/hub/templates/hub/candidate/detail.html @@ -144,43 +144,39 @@

{% trans 'Representative name' %}: {{ candidate.name }}

{% trans 'Representative role' %}: {{ candidate.role }}

- {% if candidate.status == 'confirmed' or can_view_all_information %} - - {% if candidate.mandate %} - {% trans "Mandate" as doc_name %} - {% include "hub/partials/document.html" with document_url=candidate.mandate.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=False %} - {% endif %} - - {% if candidate.letter_of_intent %} - {% trans "Letter of intent" as doc_name %} - {% include "hub/partials/document.html" with document_url=candidate.letter_of_intent.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=False %} - {% endif %} + {% if candidate.mandate %} + {% trans "Mandate" as doc_name %} + {% include "hub/partials/document.html" with document_url=candidate.mandate.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=False %} + {% endif %} - {% if candidate.cv %} - {% trans "CV" as doc_name %} - {% include "hub/partials/document.html" with document_url=candidate.cv.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=False %} - {% endif %} + {% if candidate.letter_of_intent %} + {% trans "Letter of intent" as doc_name %} + {% include "hub/partials/document.html" with document_url=candidate.letter_of_intent.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=False %} + {% endif %} - {% if candidate.declaration_of_interests %} - {% trans "Declaration of interests" as doc_name %} - {% include "hub/partials/document.html" with document_url=candidate.declaration_of_interests.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=False %} - {% endif %} + {% if candidate.cv %} + {% trans "CV" as doc_name %} + {% include "hub/partials/document.html" with document_url=candidate.cv.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=False %} + {% endif %} - {% if candidate.statement %} - {% trans "Representative statement" as doc_name %} - {% include "hub/partials/document.html" with document_url=candidate.statement.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=False %} - {% endif %} + {% if candidate.declaration_of_interests %} + {% trans "Declaration of interests" as doc_name %} + {% include "hub/partials/document.html" with document_url=candidate.declaration_of_interests.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=False %} + {% endif %} - {% if candidate.fiscal_record %} - {% trans "Fiscal record" as doc_name %} - {% include "hub/partials/document.html" with document_url=candidate.fiscal_record.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=True %} - {% endif %} + {% if candidate.statement %} + {% trans "Representative statement" as doc_name %} + {% include "hub/partials/document.html" with document_url=candidate.statement.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=False %} + {% endif %} - {% if candidate.criminal_record %} - {% trans "Criminal record" as doc_name %} - {% include "hub/partials/document.html" with document_url=candidate.criminal_record.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=True %} - {% endif %} + {% if candidate.fiscal_record %} + {% trans "Fiscal record" as doc_name %} + {% include "hub/partials/document.html" with document_url=candidate.fiscal_record.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=True %} + {% endif %} + {% if candidate.criminal_record %} + {% trans "Criminal record" as doc_name %} + {% include "hub/partials/document.html" with document_url=candidate.criminal_record.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=True %} {% endif %}