Add navigation buttons and completion banner to bulk import step2

Adds Back to Jobs / Back to Parts buttons at the top of the page
and a success banner when the job is completed, so users aren't
stuck on the page after applying all parts.
This commit is contained in:
Sebastian Almberg 2026-03-11 15:41:50 +01:00
parent 319a455bf2
commit d606ff6d3d
2 changed files with 42 additions and 0 deletions

View file

@ -14,6 +14,24 @@
{% block card_content %}
<!-- Navigation -->
<div class="d-flex justify-content-between align-items-center mb-3">
<a href="{{ path('bulk_info_provider_manage') }}" class="btn btn-outline-secondary btn-sm">
<i class="fas fa-arrow-left"></i> {% trans %}info_providers.bulk_import.back_to_jobs{% endtrans %}
</a>
<a href="{{ path('parts_show_all') }}" class="btn btn-outline-primary btn-sm">
<i class="fas fa-list"></i> {% trans %}info_providers.bulk_import.back_to_parts{% endtrans %}
</a>
</div>
{% if job.isCompleted %}
<div class="alert alert-success mb-3" role="alert">
<i class="fas fa-check-circle"></i>
<strong>{% trans %}info_providers.bulk_import.job_completed{% endtrans %}</strong>
{% trans %}info_providers.bulk_import.job_completed.description{% endtrans %}
</div>
{% endif %}
<div {{ stimulus_controller('bulk-import', {
'jobId': job.id,
'researchUrl': path('bulk_info_provider_research_part', {'jobId': job.id, 'partId': '__PART_ID__'}),