diff --git a/readux_ingest_ecds/forms.py b/readux_ingest_ecds/forms.py index 13fc7dc..85a18d6 100644 --- a/readux_ingest_ecds/forms.py +++ b/readux_ingest_ecds/forms.py @@ -6,20 +6,6 @@ class MultipleFileInput(forms.ClearableFileInput): allow_multiple_selected = True -class MultipleFileField(forms.FileField): - def __init__(self, *args, **kwargs): - kwargs.setdefault("widget", MultipleFileInput()) - super().__init__(*args, **kwargs) - - def clean(self, data, initial=None): - single_file_clean = super().clean - if isinstance(data, (list, tuple)): - result = [single_file_clean(d, initial) for d in data] - else: - result = [single_file_clean(data, initial)] - return result - - class BulkVolumeUploadForm(forms.ModelForm): class Meta: model = Bulk diff --git a/readux_ingest_ecds/templates/admin/readux_ingest_ecds/bulk/change_form.html b/readux_ingest_ecds/templates/admin/readux_ingest_ecds/bulk/change_form.html new file mode 100644 index 0000000..d664144 --- /dev/null +++ b/readux_ingest_ecds/templates/admin/readux_ingest_ecds/bulk/change_form.html @@ -0,0 +1,136 @@ +{% extends "admin/change_form.html" %} {% load i18n admin_urls %} {% load static +%} {% block extrastyle %} {{ block.super }} + +{% endblock %} {% block submit_buttons_bottom %} +
+ + +
+{% endblock %} {% block admin_change_form_document_ready %} {{ block.super }} + +{% endblock %} {% block content %} {{ block.super }} +
+
Uploading...
+
0%
+
+ +
+
+

+ You must leave this window open during upload. +

+

+ Once upload completes, you will be sent to a new page. You may then + navigate away while the rest of the ingest completes; you will receive an + email to notify you when the ingest has completed. +

+
+
+{% endblock %}