aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates/rqtl2/select-tissue.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-12 16:38:54 -0500
committerFrederick Muriuki Muriithi2024-06-13 12:01:14 -0500
commitf726c71bf1636a838f45363d1613763a2926e34f (patch)
tree8b5e0323106026abafa5cc0385a32df9df62f9e5 /qc_app/templates/rqtl2/select-tissue.html
parent05402410638fc7dd678a6289ccd2a9ce11acc5e7 (diff)
downloadgn-uploader-f726c71bf1636a838f45363d1613763a2926e34f.tar.gz
Update html templates to use bootstrap for styling
Diffstat (limited to 'qc_app/templates/rqtl2/select-tissue.html')
-rw-r--r--qc_app/templates/rqtl2/select-tissue.html181
1 files changed, 92 insertions, 89 deletions
diff --git a/qc_app/templates/rqtl2/select-tissue.html b/qc_app/templates/rqtl2/select-tissue.html
index 78d5afe..34e1758 100644
--- a/qc_app/templates/rqtl2/select-tissue.html
+++ b/qc_app/templates/rqtl2/select-tissue.html
@@ -6,107 +6,110 @@
{%block contents%}
<h2 class="heading">Tissue</h2>
-<div class="explainer">
+<div class="row">
<p>The data you are uploading concerns a tissue, cell, organ, or other
biological material used in an experiment.</p>
<p>Select the appropriate biological material below</p>
</div>
{%if tissues | length > 0%}
-<form method="POST"
- action="{{url_for('upload.rqtl2.select_tissue',
- species_id=species.SpeciesId, population_id=population.Id)}}"
- id="frm:select-probeset-dataset">
- <legend class="heading">Select from existing ProbeSet datasets</legend>
- {{flash_messages("error-select-tissue")}}
-
- <input type="hidden" name="species_id" value="{{species.SpeciesId}}" />
- <input type="hidden" name="population_id"
- value="{{population.InbredSetId}}" />
- <input type="hidden" name="rqtl2_bundle_file"
- value="{{rqtl2_bundle_file}}" />
- <input type="hidden" name="geno-dataset-id" value="{{geno_dataset.Id}}" />
-
- <fieldset>
- <label for="select-tissue">Tissue</label>
- <select id="select-tissue"
- name="tissueid"
- required="required"
- {%if tissues | length == 0%}disabled="disabled"{%endif%}>
- <option value="">Select a tissue</option>
- {%for tissue in tissues%}
- <option value={{tissue.Id}}>
- {{tissue.Name}}
- {%if tissue.Short_Name%}
- -- ({{tissue.Short_Name}})
- {%endif%}
- </option>
- {%endfor%}
- </select>
-
- <span class="form-col-2">Select from existing biological material.</span>
- </fieldset>
-
- <fieldset>
- <input type="submit"
- value="use selected"
- class="btn btn-primary form-col-2" />
- </fieldset>
-</form>
+<div class="row">
+ <form method="POST"
+ action="{{url_for('upload.rqtl2.select_tissue',
+ species_id=species.SpeciesId, population_id=population.Id)}}"
+ id="frm:select-probeset-dataset">
+ <legend class="heading">Select from existing ProbeSet datasets</legend>
+ {{flash_messages("error-select-tissue")}}
+
+ <input type="hidden" name="species_id" value="{{species.SpeciesId}}" />
+ <input type="hidden" name="population_id"
+ value="{{population.InbredSetId}}" />
+ <input type="hidden" name="rqtl2_bundle_file"
+ value="{{rqtl2_bundle_file}}" />
+ <input type="hidden" name="geno-dataset-id" value="{{geno_dataset.Id}}" />
+
+ <div class="form-group">
+ <label class="form-label" for="select-tissue">Tissue</label>
+ <select id="select-tissue"
+ name="tissueid"
+ required="required"
+ {%if tissues | length == 0%}disabled="disabled"{%endif%}
+ class="form-control"
+ aria-describedby="help-select-tissue">
+ <option value="">Select a tissue</option>
+ {%for tissue in tissues%}
+ <option value={{tissue.Id}}>
+ {{tissue.Name}}
+ {%if tissue.Short_Name%}
+ -- ({{tissue.Short_Name}})
+ {%endif%}
+ </option>
+ {%endfor%}
+ </select>
+
+ <span id="help-select-tissue" class="form-text text-muted">
+ Select from existing biological material.</span>
+ </div>
+
+ <button type="submit" class="btn btn-primary">use selected</button>
+ </form>
+</div>
-<p style="color:#FE3535; padding-left:20em; font-weight:bolder;">OR</p>
+<div class="row">
+ <p style="color:#FE3535; padding-left:20em; font-weight:bolder;">OR</p>
+</div>
{%endif%}
-<div class="explainer">
+<div class="row">
<p>If you cannot find the biological material in the drop-down above, add it
to the system below.</p>
-</div>
-<form method="POST"
- action="{{url_for('upload.rqtl2.create_tissue',
- species_id=species.SpeciesId, population_id=population.Id)}}"
- id="frm:create-probeset-dataset">
- <legend class="heading">Add new tissue, organ or biological material</legend>
- {{flash_messages("error-create-tissue")}}
-
- <input type="hidden" name="species_id" value="{{species.SpeciesId}}" />
- <input type="hidden" name="population_id"
- value="{{population.InbredSetId}}" />
- <input type="hidden" name="rqtl2_bundle_file"
- value="{{rqtl2_bundle_file}}" />
- <input type="hidden" name="geno-dataset-id" value="{{geno_dataset.Id}}" />
-
- <fieldset>
- <label for="tissue-name">name</label>
- <input type="text"
- id="txt-tissuename"
- name="tissuename"
- required="required"
- title = "A name to identify the tissue, organ or biological material." />
-
- <span class="form-col-2">
- A name to identify the tissue, organ or biological material.
- </span>
- </fieldset>
-
- <fieldset>
- <label for="txt-shortname">short name</label>
- <input type="text" id="txt-tissueshortname" name="tissueshortname"
- required="required"
- maxlength="7"
- title="A short name (e.g. 'Mam') for the biological material." />
-
- <span class="form-col-2">
- Provide a short name for the tissue, organ or biological material used in
- the experiment.
- </span>
- </fieldset>
-
- <fieldset>
- <input type="submit"
- value="add new material"
- class="btn btn-primary form-col-2" />
- </fieldset>
+ <form method="POST"
+ action="{{url_for('upload.rqtl2.create_tissue',
+ species_id=species.SpeciesId, population_id=population.Id)}}"
+ id="frm:create-probeset-dataset">
+ <legend class="heading">Add new tissue, organ or biological material</legend>
+ {{flash_messages("error-create-tissue")}}
+
+ <input type="hidden" name="species_id" value="{{species.SpeciesId}}" />
+ <input type="hidden" name="population_id"
+ value="{{population.InbredSetId}}" />
+ <input type="hidden" name="rqtl2_bundle_file"
+ value="{{rqtl2_bundle_file}}" />
+ <input type="hidden" name="geno-dataset-id" value="{{geno_dataset.Id}}" />
+
+ <div class="form-group">
+ <label class="form-label" for="tissue-name">name</label>
+ <input type="text"
+ id="txt-tissuename"
+ name="tissuename"
+ required="required"
+ title = "A name to identify the tissue, organ or biological material."
+ class="form-control"
+ aria-describedby="help-tissue-name" />
+
+ <span class="form-text text-muted" id="help-tissue-name">
+ A name to identify the tissue, organ or biological material.
+ </span>
+ </div>
+
+ <div class="form-group">
+ <label for="txt-shortname" class="form-label">short name</label>
+ <input type="text" id="txt-tissueshortname" name="tissueshortname"
+ required="required"
+ maxlength="7"
+ title="A short name (e.g. 'Mam') for the biological material."
+ class="form-control"
+ aria-describedby="help-tissue-short-name" />
+
+ <span class="form-text text-muted" id="help-tissue-short-name">
+ Provide a short name for the tissue, organ or biological material used in
+ the experiment.
+ </span>
+ </div>
+
+ <button type="submit" class="btn btn-primary" />add new material</button>
</form>
+</div>
{%endblock%}