diff options
author | Frederick Muriuki Muriithi | 2025-05-05 11:51:25 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-05-05 12:41:50 -0500 |
commit | 7057f7ddd0c14790398f65ae7ca1acf10da5a52e (patch) | |
tree | 6400fd5a75bcbf954ce7393a97109b9b25cf59eb /uploader/templates | |
parent | 8ba9a5831041e41e6e2bec805f72635c6ac13e2c (diff) | |
download | gn-uploader-7057f7ddd0c14790398f65ae7ca1acf10da5a52e.tar.gz |
Include the publication when provided.
Diffstat (limited to 'uploader/templates')
-rw-r--r-- | uploader/templates/phenotypes/add-phenotypes-raw-files.html | 1 | ||||
-rw-r--r-- | uploader/templates/phenotypes/review-job-data.html | 15 |
2 files changed, 14 insertions, 2 deletions
diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html index 2ff6a4f..5709491 100644 --- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html +++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html @@ -585,6 +585,7 @@ })); }); formdata.append("resumable-upload", "true"); + formdata.append("publication-id", $("#txt-publication-id").val()); return formdata; } diff --git a/uploader/templates/phenotypes/review-job-data.html b/uploader/templates/phenotypes/review-job-data.html index 7bc8c62..befb5e2 100644 --- a/uploader/templates/phenotypes/review-job-data.html +++ b/uploader/templates/phenotypes/review-job-data.html @@ -40,9 +40,20 @@ species “<strong>{{species.SpeciesName}} ({{species.FullName}})</strong>” will be updated as follows:</p> + <ul> + {%if publication%} + <li>All {{summary.get("pheno", {}).get("total-data-rows", "0")}} phenotypes + are linked to the following publication: + <ul> + <li><strong>Publication Title:</strong> + {{publication.Title or "—"}}</li> + <li><strong>Author(s):</strong> + {{publication.Authors or "—"}}</li> + </ul> + </li> + {%endif%} {%for ftype in ("phenocovar", "pheno", "phenose", "phenonum")%} {%if summary.get(ftype, False)%} - <ul> <li>A total of {{summary[ftype]["number-of-files"]}} files will be processed adding {%if ftype == "phenocovar"%}(possibly){%endif%} {{summary[ftype]["total-data-rows"]}} new @@ -53,9 +64,9 @@ {%endif%} to the database. </li> - </ul> {%endif%} {%endfor%} + </ul> <a href="#" class="not-implemented btn btn-primary">continue</a> </div> |