{% extends "base-apply.html" %} {% load render_table from django_tables2 %} {% load i18n static wagtailcore_tags workflow_tags statusbar_tags heroicons dashboard_statusbar_tags %} {% block title %}{% trans "Dashboard" %}{% endblock %} {% block content %} {% adminbar %} {% slot header %}{% trans "Dashboard" %}{% endslot %} {% slot sub_heading %}{% trans "An overview of active and past submissions and projects" %}{% endslot %}

{% trans "Submit a new application" %}

{% trans "Apply now for our open rounds" %}

{% trans "Apply" %}
{% endadminbar %}
{% if my_active_submissions %}

{% trans "My active submissions" %}

{% for submission in my_active_submissions %}

{{ submission.title }}

{% trans "Submitted on " %} {{ submission.submit_time.date }} {% trans "by" %} {{ submission.user.get_full_name }}

{% status_bar submission.workflow submission.phase request.user css_class="status-bar--small" %}
{% if request.user|has_edit_perm:submission %} {% if submission.status == 'draft_proposal' %} {% trans "Start your" %} {{ submission.stage }} {% trans "application" %} {% else %} {% trans "Edit" %} {% endif %} {% endif %}
{% empty %} {% trans "No active submissions" %} {% endfor %}
{% endif %} {% if active_projects.count %}

{% trans "My active projects" %}

{% for project in active_projects.data %}

{{ project.title }}

{% trans "Project start date: " %} {{ project.created_at.date }}

{% project_status_bar project.status request.user css_class="status-bar--small" %}
{% empty %} {% trans "No active projects" %} {% endfor %}
{% endif %}
{% if historical_submissions.count %}

{% trans "Submission history" %}

{% render_table historical_submissions.table %}
{% endif %} {% if historical_projects.count %}

{% trans "Project history" %}

{% render_table historical_projects.table %}
{% endif %} {% endblock %}