{% if application.recruiter %}
{{ application.recruiter.profile.main_character.character_name }}
{% else %}
Unclaimed
{% endif %}
{% if admin and perms.hrapps.claim_recruiter %}
Claim
{% endif %}
Reviewer
{% if application.reviewer %}
{{ application.reviewer.profile.main_character.character_name }}
{% else %}
Unclaimed
{% endif %}
{% if admin and perms.hrapps.claim_reviewer %}
Claim
{% endif %}
{% if request.user == application.user and not admin and not application.status in final_states %}
{% endif %}
{% if admin and perms.hrapps.modify_status and not application.status in final_states %}
{% endif %}
{% if admin and perms.hrapps.manage_hrapps %}
{# Default state is pending. Manage perms are required to return an in progress application to default state. #}
{% endif %}
Characters
Character
{% if corptools is not None %}
CT
{% endif %}
{% if memberaudit is not None%}
MA
{% endif %}
{% for character in characters %}
{{ character.character_name }}
{% if corptools is not None %}
{% if character.character_name in corptools %}
{% else %}
{% endif %}
{% endif %}
{% if memberaudit is not None %}
{% if character.character_name in memberaudit %}
{% else %}
{% endif %}
{% endif %}
{% endfor %}
Responses
{% for response in responses %}
{{ response.question }}
{% if response.allowUpdates and request.user == application.user and not admin and not application.is_closed %}
{% if response.allowMultiple and response.attachmentLimit == 0 %}
{% include "hrapps/main/partials/view/upload_button.html" with question_id=forloop.counter multiple=response.allowMultiple attachLimit=response.attachmentLimit %}
{% elif response.allowMultiple and attachments|filter_by_question_id:forloop.counter|length < response.attachmentLimit %}
{% include "hrapps/main/partials/view/upload_button.html" with question_id=forloop.counter multiple=response.allowMultiple attachLimit=response.attachmentLimit %}
{% elif not response.allowMultiple and attachments|filter_by_question_id:forloop.counter|length == 0 %}
{% include "hrapps/main/partials/view/upload_button.html" with question_id=forloop.counter multiple=response.allowMultiple attachLimit=response.attachmentLimit %}
{% endif %}
{% endif %}
{% if response.has_attachments and admin and perms.hrapps.modify_status %}
{% endif %}
{% if response.answer_is_list %}
{% for answer in response.answer %}
{{ answer }}
{% endfor %}
{% elif response.has_attachments %}
{% for attachment in attachments|filter_by_question_id:forloop.counter %}
{% endfor %}
{% else %}
{{ response.answer|linebreaksbr|urlize }}
{% endif %}
{% endfor %}
{% if perms.hrapps.view_comment or perms.hrapps.create_comment %}
{% include "hrapps/shared/partials/view/comment_card.html" %}
{% endif %}
{% if not admin %}
{% include "hrapps/main/partials/view/withdraw_confirm_modal.html" %}
{% include "hrapps/main/partials/view/upload_offcanvas.html" %}
{% elif admin %}
{% include "hrapps/admin/partials/view/approve_confirm_modal.html" %}
{% include "hrapps/admin/partials/view/pend_confirm_modal.html" %}
{% include "hrapps/admin/partials/view/reject_confirm_modal.html" %}
{% include "hrapps/admin/partials/view/review_confirm_modal.html" %}
{% endif %}
{% endblock %}
{% block extra_javascript %}
{% include "hrapps/bundles/lightbox-js.html" %}
{% endblock %}