about summary refs log tree commit diff
path: root/uploader/templates/phenotypes/bulk-edit-upload.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-03-21 14:12:32 -0500
committerFrederick Muriuki Muriithi2025-03-21 14:12:32 -0500
commit19f24ba8cd4b574c58f84b3cad1a78ebd18f5cdb (patch)
tree0ca7d5bcabb0654999ecf95ce14e93f6f401f3b2 /uploader/templates/phenotypes/bulk-edit-upload.html
parentc281820ea0ccb8c078c83deca128010b3df95dce (diff)
downloadgn-uploader-19f24ba8cd4b574c58f84b3cad1a78ebd18f5cdb.tar.gz
Bulk Edit: Initialise the bulk-edit upload
* Provide UI for uploading the file
* Provide (partially implemented) endpoint to handle the uploaded
  file.
Diffstat (limited to 'uploader/templates/phenotypes/bulk-edit-upload.html')
-rw-r--r--uploader/templates/phenotypes/bulk-edit-upload.html61
1 files changed, 61 insertions, 0 deletions
diff --git a/uploader/templates/phenotypes/bulk-edit-upload.html b/uploader/templates/phenotypes/bulk-edit-upload.html
new file mode 100644
index 0000000..926bcf5
--- /dev/null
+++ b/uploader/templates/phenotypes/bulk-edit-upload.html
@@ -0,0 +1,61 @@
+{%extends "phenotypes/base.html"%}
+{%from "flash_messages.html" import flash_all_messages%}
+{%from "macro-table-pagination.html" import table_pagination%}
+{%from "populations/macro-display-population-card.html" import display_population_card%}
+
+{%block title%}Phenotypes{%endblock%}
+
+{%block pagetitle%}Phenotypes{%endblock%}
+
+{%block lvl4_breadcrumbs%}
+<li {%if activelink=="view-dataset"%}
+    class="breadcrumb-item active"
+    {%else%}
+    class="breadcrumb-item"
+    {%endif%}>
+  <a href="{{url_for('species.populations.phenotypes.view_dataset',
+           species_id=species.SpeciesId,
+           population_id=population.Id,
+           dataset_id=dataset.Id)}}">View</a>
+</li>
+{%endblock%}
+
+{%block contents%}
+<div class="row">
+  <p>Upload the edited file you downloaded and edited.</p>
+</div>
+
+<div class="row">
+  <form id="frm-bulk-edit-upload"
+        class="form-horizontal"
+        method="POST"
+        action="{{url_for(
+                'species.populations.phenotypes.edit_upload_phenotype_data',
+                species_id=species.SpeciesId,
+                population_id=population.Id,
+                dataset_id=dataset.Id)}}"
+        enctype="multipart/form-data">
+
+    <div class="form-group row">
+      <label for="file-upload-bulk-edit-upload"
+             class="form-label col-form-label col-sm-2">
+        Edited File</label>
+      <div class="col-sm-10">
+        <input id="file-upload-bulk-edit-upload"
+               name="file_upload_bulk_edit_upload"
+               class="form-control"
+               type="file"
+               required="required" />
+      </div>
+    </div>
+
+    <input type="submit" class="btn btn-primary"
+           value="upload to edit" />
+
+  </form>
+</div>
+{%endblock%}
+
+
+{%block javascript%}
+{%endblock%}