Skip to content

Commit

Permalink
Merge pull request #2396 from DemocracyClub/link-to-old-official-docu…
Browse files Browse the repository at this point in the history
…ments

Link to OfficialDocuments if we've not ported them to BallotSOPNs
  • Loading branch information
symroe authored Jun 21, 2024
2 parents 25d2596 + 1671ada commit 9a6f7dd
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,23 @@
<a href="{{ sopn.get_absolute_url }}">View the Statement of Persons Nominated (SOPN) for this ballot</a>
</p>
{% else %}
{% if user_can_upload_documents and ballot.officialdocument_set.exists %}
Legacy SOPNs that need to be migrated:
<ul>
{% for officialdocument in ballot.officialdocument_set.all %}
{% if officialdocument.uploaded_file %}
<li><a href="{{ officialdocument.uploaded_file.url }}">{{ officialdocument.uploaded_file.url }}</a></li>
{% endif %}
{% endfor %}

</ul>

{% endif %}

{% if user_can_upload_documents %}
{% url 'upload_ballot_sopn_view' ballot_paper_id=ballot.ballot_paper_id as url %}
<a href="{{ url }}" class="button">Upload SOPN</a>
{% endif %}


{% endif %}

0 comments on commit 9a6f7dd

Please sign in to comment.