{% extends "base-apply.html" %} {% load i18n static workflow_tags wagtailcore_tags statusbar_tags archive_tags submission_tags %} {% load heroicons %} {% block title %}#{{ object.public_id|default_if_none:object.id}}: {{ object.title }}{% endblock %} {% block body_class %}{% endblock %} {% block content %} {% if object.round.specific.is_sealed %} {% endif %}
{% if request.GET.ref == 'all-alt' %} {% trans "Back to submissions" %} {% endif %}

{{ object.title }} #{{ object.public_id|default:object.id }}

{{ object.stage }} {{ object.page }} {% if object.round %} {% if request.user.is_apply_staff %} {{ object.round }} {% else %} {{ object.round }} {% endif %} {% endif %}
{% status_bar object.workflow object.phase request.user author=object.user same_stage=True %}
{% if object.is_archive %}
{% heroicon_outline "lock-closed" aria_hidden="true" size=16 stroke_width=2 class="inline align-baseline me-1" %} {% trans "This submission has been archived. This is visible to the roles " %} {{ archive_access_groups|join_with_commas }}
{% endif %}
{# Tab 1 #}
{% if request.user|has_edit_perm:object and object.status == 'draft_proposal' and not request.user.is_apply_staff %}

{% trans "Congratulations!" %}

{% blocktrans with stage=object.previous.stage %}Your {{ stage }} application has been accepted.{% endblocktrans %}
{% blocktrans with stage=object.stage %}Start your {{ stage }} application.{% endblocktrans %}
{% else %}
{% if object.is_draft %} {% trans "Drafted " %} {% else %} {% trans "Submitted " %} {% endif %} {{ object.submit_time|date:"SHORT_DATETIME_FORMAT" }} {% trans "by" %} {% display_submission_author %} {% trans "Updated" %} {{ object.live_revision.timestamp|date:"SHORT_DATETIME_FORMAT" }} {% trans "by" %} {% display_submission_author True %}
{% user_can_delete_submission object request.user as can_delete_submission %} {% if can_delete_submission %} {% heroicon_micro "trash" class="inline me-1 fill-red-600" aria_hidden=true %} {% trans "Delete" %} {% endif %} {% if request.user|has_edit_perm:object %} {% heroicon_micro "pencil-square" class="inline me-1" aria_hidden=true %} {% trans "Edit" %} {% endif %}
{% include "funds/includes/rendered_answers.html" %}
{% endif %}
{# Tab 2 #}
{% if not object.is_archive %}

{% trans "Add communication" %}

{% include "activity/include/comment_form.html" %} {% include "activity/include/comment_list.html" with editable=True %} {% else %} {% include "activity/include/comment_list.html" with editable=False %} {% endif %}
{# Tab 3 #}
{% comment %} Loaded using the htmx via alpine's custom event "open-tab-3"{% endcomment %}

{% trans "Loading…" %}

{% endblock %} {% block extra_js %} {{ comment_form.media.js }} {% endblock %}