{% extends "admin/base.html" %} {% block stylesheets %} {% endblock %} {% block content %}

{% if type %}{{ type|title }} {% endif %}Submissions

{% if q and field %}
Searching for submissions with {{ field }} matching {{ q }}
Page {{ submissions.page }} of {{ submissions.total }} results
{% endif %} {% with form = Forms.submissions.SubmissionSearchForm(field=field, q=q) %}
{{ form.field(class="form-control custom-select w-100") }}
{{ form.q(class="form-control w-100", placeholder="Search for matching submission") }}
{% endwith %}

{% if type == "incorrect" %} {% endif %} {% if request.args.get("full") %} {% else %} {% endif %}
{% set mode = Configs.user_mode %} {% if mode == UserModeTypes.TEAMS %} {% endif %} {% for sub in submissions.items %} {% if mode == UserModeTypes.TEAMS %} {% endif %} {% endfor %}
 
IDUser{{ get_mode_as_word(capitalize=True) }} Challenge Type Provided Date
 
{{ sub.id }} {{ sub.user.name }} {{ sub.account.name }} {{ sub.challenge.name }} {{ sub.type }} {% if request.args.get('full') %}
{{ sub.provided }}
{% else %}
{{ sub.provided | truncate(45, True) }}
{% if sub.provided | length > 50 %} {% endif %} {% endif %}
{% if submissions.pages > 1 %}
Page
{% if submissions.page != 1 %} <<< {% endif %} {% if submissions.next_num %} >>> {% endif %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %} {% block entrypoint %} {{ Assets.js("assets/js/pages/submissions.js", theme="admin") }} {% endblock %}