mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-10 15:12:12 +00:00
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:
parent
319a455bf2
commit
d606ff6d3d
2 changed files with 42 additions and 0 deletions
|
|
@ -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__'}),
|
||||
|
|
|
|||
|
|
@ -11103,6 +11103,30 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
|||
<target>Update Part</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="back_to_jobs_btn" name="info_providers.bulk_import.back_to_jobs">
|
||||
<segment state="translated">
|
||||
<source>info_providers.bulk_import.back_to_jobs</source>
|
||||
<target>Back to Jobs</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="back_to_parts_btn" name="info_providers.bulk_import.back_to_parts">
|
||||
<segment state="translated">
|
||||
<source>info_providers.bulk_import.back_to_parts</source>
|
||||
<target>Back to Parts</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="job_completed_msg" name="info_providers.bulk_import.job_completed">
|
||||
<segment state="translated">
|
||||
<source>info_providers.bulk_import.job_completed</source>
|
||||
<target>Job completed!</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="job_completed_desc" name="info_providers.bulk_import.job_completed.description">
|
||||
<segment state="translated">
|
||||
<source>info_providers.bulk_import.job_completed.description</source>
|
||||
<target>All parts have been processed. You can review the results below or navigate back to the parts list.</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="quick_apply_btn" name="info_providers.bulk_import.quick_apply">
|
||||
<segment state="translated">
|
||||
<source>info_providers.bulk_import.quick_apply</source>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue