aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2023-08-24 19:27:00 +0000
committerzsloan2023-08-24 19:30:23 +0000
commiteacad9fc47a34d71ff0dcccafa558f45f4e86033 (patch)
treeee681c38ad359017439493097930fd1b5c2fdd0b
parent71fd11faef98ed6bfdf30aab9b2b584058647370 (diff)
downloadgenenetwork2-eacad9fc47a34d71ff0dcccafa558f45f4e86033.tar.gz
Change URL for phenotype CSV download + only show sample table if fewer than 2000 samples
-rw-r--r--wqflask/wqflask/templates/edit_phenotype.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/wqflask/wqflask/templates/edit_phenotype.html b/wqflask/wqflask/templates/edit_phenotype.html
index f392dcdc..99efa46c 100644
--- a/wqflask/wqflask/templates/edit_phenotype.html
+++ b/wqflask/wqflask/templates/edit_phenotype.html
@@ -32,7 +32,7 @@
Download a spreadsheet of sample values to edit in Excel (or a similar program) and then upload the edited file
</p>
<div>
- <a href="/datasets/pheno/{{ publish_xref.id_ }}/traits/{{ dataset_name }}/csv?resource-id={{ resource_id }}" class="btn btn-link">
+ <a href="/datasets/pheno/{{ name }}/group/{{ dataset_id }}/csv?resource-id={{ resource_id }}" class="btn btn-link">
Click to Download Sample Data
</a>
</div>
@@ -222,7 +222,7 @@
</div>
<input type="submit" style="width: 125px; margin-right: 25px;" class="btn btn-success form-control changed" value="Submit Change">
</div>
-
+ {% if sample_list|length < 2000 %}
<div style="padding-top: 20px;">
<p class="text-info" style="padding-left: 5em;">
<strong>Type "x" to delete a value.</strong>
@@ -252,6 +252,7 @@
</tbody>
</table>
</div>
+ {% endif %}
</form>
</div>