{% extends "aa_recruitment/portal_base.html" %} {% load i18n %} {% block portal_content %}
{% translate "Open Corporation Applications" %}
{{ active_forms|length }} {% translate "available" %}
{% if active_forms %}
{% for form in active_forms %}
{{ form.title }}
{% if form.corporation %} {{ form.corporation.corporation_name }} {% endif %}

{{ form.description|truncatewords:40 }}

{% blocktranslate count counter=form.questions.count %}{{ counter }} question in questionnaire{% plural %}{{ counter }} questions in questionnaire{% endblocktranslate %}
{% endfor %}
{% else %}
{% translate "No Forms Currently Open" %}

{% translate "There are currently no active corporation applications open for submission. Please check back later or contact recruitment leadership." %}

{% endif %}
{% translate "My Applications" %}
{% translate "View All" %} →
{% if user_applications %}
{% for app in user_applications|slice:":5" %}
{{ app.form.title }} {% if app.status == "pending" %} {{ app.get_status_display }} {% elif app.status == "in_progress" %} {{ app.get_status_display }} {% elif app.status == "accepted" %} {{ app.get_status_display }} {% elif app.status == "rejected" %} {{ app.get_status_display }} {% else %} {{ app.get_status_display }} {% endif %}
{{ app.main_character_name|default:app.user.username }} • {{ app.created_at|date:"Y-m-d" }} {% translate "Status" %}
{% endfor %}
{% else %}

{% translate "You have not submitted any applications yet." %}

{% endif %}
{% endblock portal_content %}