aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/populations/create-population.html
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/templates/populations/create-population.html')
-rw-r--r--uploader/templates/populations/create-population.html73
1 files changed, 59 insertions, 14 deletions
diff --git a/uploader/templates/populations/create-population.html b/uploader/templates/populations/create-population.html
index b57afba..007b6bf 100644
--- a/uploader/templates/populations/create-population.html
+++ b/uploader/templates/populations/create-population.html
@@ -37,12 +37,15 @@
<div class="row">
<form method="POST"
action="{{url_for('species.populations.create_population',
- species_id=species.SpeciesId)}}">
+ species_id=species.SpeciesId,
+ return_to=return_to)}}">
<legend>Create Population</legend>
{{flash_all_messages()}}
+ <input type="hidden" name="return_to" value="{{return_to}}">
+
<div {%if errors.population_fullname%}
class="form-group has-error"
{%else%}
@@ -107,7 +110,13 @@
value="{{error_values.population_code or ''}}"
class="form-control" />
<small class="form-text text-muted">
- … document what this field is for …
+ <p class="form-text text-muted">
+ This is a 3-character code for your population, that is prepended to
+ the phenotype identifiers. e.g. For the "BXD Family" population, the
+ code is "BXD" and therefore, the phenotype identifiers for the
+ population look like the following examples: <em>BXD_10148</em>,
+ <em>BXD_10180</em>, <em>BXD_10197</em>, etc.
+ </p>
</small>
</div>
@@ -145,21 +154,35 @@
{%else%}
class="form-group"
{%endif%}>
- <label for="select-population-family" class="form-label">Family</label>
- <select id="select-population-family"
- name="population_family"
- class="form-control"
- required="required">
- <option value="">Please select a family</option>
+ <label for="txt-population-family" class="form-label">Family</label>
+ <input type="text"
+ id="txt-population-family"
+ name="population_family"
+ class="form-control"
+ list="families-list" />
+ <datalist id="families-list">
{%for family in families%}
- <option value="{{family}}"
- {%if error_values.population_family == family%}
- selected="selected"
- {%endif%}>{{family}}</option>
+ <option value="{{family}}">{{family}}</option>
{%endfor%}
- </select>
+ </datalist>
<small class="form-text text-muted">
- <p>… provide some documentation on what this field does …</p>
+ <p>
+ This is <strong>optional</strong> metadata. It is used to group
+ populations into "families" for presentation in the menus.
+ {%if families | length > 0%}
+ Examples of currently existing families are:
+ <ul>
+ {%for family in families[0:7]%}
+ <li>{{family}}</li>
+ {%endfor%}
+ <li>etc.</li>
+ </ul>
+ {%endif%}
+
+ You can
+ {%if families|length>0%} select from existing families, or {%endif%}
+ create a new family by typing in the input box above. You can also
+ leave the family blank.</p>
</small>
</div>
@@ -207,6 +230,28 @@
{%endif%}>{{gtype}}</option>
{%endfor%}
</select>
+ <small class="form-text text-muted text-danger">
+ <p>
+ <span class="glyphicon glyphicon-exclamation-sign"></span>
+ This might be a poorly named field.
+ </p>
+ <p>
+ It probably has more to do with the mating crosses/crossings used to
+ produce the individuals in the population. I am no biologist, however,
+ and I'm leaving this here to remind myself to confirm this.
+ </p>
+ <p>
+ I still don't know what riset is.<br />
+ … probably something to do with Recombinant Inbred Strains
+ </p>
+ <p>
+ Possible resources for this:
+ <ul>
+ <li>https://www.informatics.jax.org/silver/chapters/3-2.shtml</li>
+ <li>https://www.informatics.jax.org/silver/chapters/9-2.shtml</li>
+ </ul>
+ </p>
+ </small>
</div>
<div class="form-group">