{# templates/admin/exam_paper/bulk_import.html.twig #} {% extends base_template %} {% block title %}Bulk Past Question Repository Ingestion{% endblock %} {% block navbar %} {{ parent() }} {% endblock %} {% block content %}

Upload Archive Pack

Instructions: Pack your past questions into a compressed .zip file. Ensure each filename starts with a valid course code (e.g., DCIT302-exam.pdf or BBA 204 Paper.pdf). The parser will automatically isolate the codes and match them to the database.

{# {{ form_start(form) }} {{ form_widget(form) }} {{ form_end(form) }}#} {{ form_start(form, {'attr': {'id': 'bulk-import-form'}}) }} {{ form_row(form.institute) }} {{ form_row(form.zipFile) }} {{ form_row(form.academicYear) }} {{ form_row(form.semester) }}
{{ form_row(form.submit) }}
{{ form_end(form) }}
{% if results is not null %}

Ingestion Execution Summary

{# Update the execution summary section in templates/admin/exam_paper/bulk_import.html.twig #}

{{ results.success }}

Successfully Imported

{{ results.duplicates }}

Skipped Duplicates

{{ results.skipped }}

Errors/Invalid Name
Processing Output Logs
{% if results.logs is empty %} > Execution clean. All files processed successfully. {% else %} {% for log in results.logs %}
> {{ log }}
{% endfor %} {% endif %}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}