diff options
author | Frederick Muriuki Muriithi | 2022-07-12 08:51:20 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-07-19 04:59:59 +0300 |
commit | ee44431de6cf860fe89e796eab2bb0d555d90105 (patch) | |
tree | 79b80c7577044a0b79296ca460d989d6fa53975c /qc_app/templates/dbupdate_hidden_fields.html | |
parent | 3038c5166aad408d7255f83668b78d635878d3d3 (diff) | |
download | gn-uploader-ee44431de6cf860fe89e796eab2bb0d555d90105.tar.gz |
Add 'group' and 'tissue' selection.
- Build code to populate the "Group" and "Tissue" dropdown lists
- Enable redirect with POST data (code 307) in case there is input
error to enable the user fix their errors
- Move hidden fields to macro to reduce repetition
Diffstat (limited to 'qc_app/templates/dbupdate_hidden_fields.html')
-rw-r--r-- | qc_app/templates/dbupdate_hidden_fields.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/qc_app/templates/dbupdate_hidden_fields.html b/qc_app/templates/dbupdate_hidden_fields.html new file mode 100644 index 0000000..cdebeab --- /dev/null +++ b/qc_app/templates/dbupdate_hidden_fields.html @@ -0,0 +1,14 @@ +{%macro hidden_fields(filename, filetype):%} + +<!-- {{kwargs}}: mostly for accessing the kwargs in macro --> + +<input type="hidden" name="filename" value="{{filename}}" /> +<input type="hidden" name="filetype" value="{{filetype}}" /> +{%if kwargs.get("species"):%} +<input type="hidden" name="species" value="{{species}}" /> +{%endif%} +{%if kwargs.get("genechipid"):%} +<input type="hidden" name="genechipid" value="{{genechipid}}" /> +{%endif%} + +{%endmacro%} |