From 68cf0750ee29d91abf8fe8d0a81426e324b41b12 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 13 Jul 2022 02:37:52 +0300 Subject: Implement dataset selection - Implement UI enabling selection from existing datasets - Start implementation of UI that enables creation of new dataset --- qc_app/templates/dbupdate_hidden_fields.html | 9 ++ qc_app/templates/select_dataset.html | 168 ++++++++++++--------------- qc_app/templates/select_study.html | 2 +- 3 files changed, 82 insertions(+), 97 deletions(-) (limited to 'qc_app/templates') diff --git a/qc_app/templates/dbupdate_hidden_fields.html b/qc_app/templates/dbupdate_hidden_fields.html index ec31202..c66ebba 100644 --- a/qc_app/templates/dbupdate_hidden_fields.html +++ b/qc_app/templates/dbupdate_hidden_fields.html @@ -10,5 +10,14 @@ {%if kwargs.get("genechipid"):%} {%endif%} +{%if kwargs.get("inbredsetid"):%} + +{%endif%} +{%if kwargs.get("tissueid"):%} + +{%endif%} +{%if kwargs.get("studyid"):%} + +{%endif%} {%endmacro%} diff --git a/qc_app/templates/select_dataset.html b/qc_app/templates/select_dataset.html index 4846f2c..59ead59 100644 --- a/qc_app/templates/select_dataset.html +++ b/qc_app/templates/select_dataset.html @@ -1,111 +1,87 @@ {%extends "base.html"%} +{%from "dbupdate_hidden_fields.html" import hidden_fields%} {%block title%}Select Dataset{%endblock%} +{%block css%} + +{%endblock%} + {%block contents%}

{{filename}}: select dataset

-
- - - -
- - - {{row[1]}} - - {%endfor%} - -
- -
- - -
- -
- - -
- -
- - -
- - - - - - - - - - - - - - {%for chip in genechips:%} - - - - - - - - {%else%} - - - - {%endfor%} - -
SelectGeneChip NameNameGeoPlatformGO Tree Value
- - {{chip["GeneChipName"]}}{{chip["Name"]}}{{chip["GeoPlatform"]}}{{chip["GO_tree_value"]}}
No chips found for selected species
- -
- -
- -
+ + + +
+ +
+ + +

OR

+ +
+ create new dataset + {{hidden_fields( + filename, filetype, species=species, genechipid=genechipid, + studyid=studyid)}} + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+ + {%endblock%} {%block javascript%} - {%endblock%} diff --git a/qc_app/templates/select_study.html b/qc_app/templates/select_study.html index e4b629c..d8bdcf0 100644 --- a/qc_app/templates/select_study.html +++ b/qc_app/templates/select_study.html @@ -11,7 +11,7 @@

{{filename}}: select study

-
Select from existing study -- cgit v1.2.3