Skip to content

Commit

Permalink
Revert hiding rejected candidates' documents
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Dec 2, 2024
1 parent 39a9198 commit cd70155
Showing 1 changed file with 27 additions and 31 deletions.
58 changes: 27 additions & 31 deletions backend/hub/templates/hub/candidate/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,43 +144,39 @@
<p><span class="label">{% trans 'Representative name' %}:</span> {{ candidate.name }}</p>
<p><span class="label">{% trans 'Representative role' %}:</span> {{ candidate.role }}</p>

{% 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 %}

</div>
Expand Down

0 comments on commit cd70155

Please sign in to comment.