diff options
author | zsloan | 2023-05-03 18:14:11 +0000 |
---|---|---|
committer | zsloan | 2023-05-03 18:14:11 +0000 |
commit | 3a5131b57ec93c5cc955a3f5ec0511caadfb4db0 (patch) | |
tree | 4d6478a9461dfe0b08a955421e1ec98333f3b058 | |
parent | 142dc2fa87a602c5f357e0a16ab799ed1371b91a (diff) | |
download | genenetwork2-3a5131b57ec93c5cc955a3f5ec0511caadfb4db0.tar.gz |
Add table for editing sample values/SE/N
-rw-r--r-- | wqflask/wqflask/templates/edit_phenotype.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/wqflask/wqflask/templates/edit_phenotype.html b/wqflask/wqflask/templates/edit_phenotype.html index cd4f2b60..a97b4a20 100644 --- a/wqflask/wqflask/templates/edit_phenotype.html +++ b/wqflask/wqflask/templates/edit_phenotype.html @@ -190,6 +190,34 @@ </div> <input type="submit" style="width: 125px; margin-right: 25px;" class="btn btn-success form-control changed" value="Submit Change"> </div> + + <div style="padding-top: 20px;"> + <table style="width: 500px;" class="table table-hover table-striped table-bordered left-float"> + <thead> + <th></th> + <th>ID</th> + <th>Sample</th> + <th>Value</th> + <th></th> + <th>SE</th> + <th>N</th> + </thead> + <tbody> + {% for sample in sample_list %} + <tr> + <td><input type="checkbox"></td> + <td>{{ loop.index }}</td> + <td>{{ sample }}</td> + <td><input type="text" name="value:{{ sample }}" value="{% if sample_data.get(sample) %}{{ '%0.3f' | format(sample_data.get(sample).value | float) }}{% else %}x{% endif %}" size=4 maxlength=4></input></td> + <td>±</td> + <td><input type="text" name="error:{{ sample }}" step='0.001' value="{% if sample_data.get(sample).error %}{{ '%0.3f' | format(sample_data.get(sample).error | float) }}{% else %}x{% endif %}" size=4 maxlength=4></input></td> + <td><input type="text" name="n_cases:{{ sample }}" value="{% if sample_data.get(sample).n_cases %}{{ sample_data.get(sample).n_cases }}{% else %}x{% endif %}" size=3 maxlength=3></input></td> + </tr> + {% endfor %} + </tbody> + </table> + </div> + </form> </div> |