Skip to content

Commit

Permalink
Link to OfficialDocuments if we've not ported them to BallotSOPNs
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed Jun 20, 2024
1 parent 9f55544 commit 1671ada
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 1671ada

Please sign in to comment.