blob: 30dc10b761bbc17a41b87bd3251b2b751cbe7ae6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
{%extends "phenotypes/add-phenotypes-base.html"%}
{%from "flash_messages.html" import flash_all_messages%}
{%from "macro-table-pagination.html" import table_pagination%}
{%from "phenotypes/macro-display-pheno-dataset-card.html" import display_pheno_dataset_card%}
{%block title%}Phenotypes{%endblock%}
{%block pagetitle%}Phenotypes{%endblock%}
{%block lvl4_breadcrumbs%}
<li {%if activelink=="add-phenotypes"%}
class="breadcrumb-item active"
{%else%}
class="breadcrumb-item"
{%endif%}>
<a href="{{url_for('species.populations.phenotypes.add_phenotypes',
species_id=species.SpeciesId,
population_id=population.Id,
dataset_id=dataset.Id)}}">Add Phenotypes</a>
</li>
{%endblock%}
{%block frm_add_phenotypes_documentation%}
<p>Provide all the files requested below. … document this better …</p>
{%endblock%}
{%block frm_add_phenotypes_elements%}
<fieldset id="fldset-file-metadata">
<legend>File(s) Metadata</legend>
<div class="form-group">
<label for="txt-file-separator" class="form-label">File Separator</label>
<div class="input-group">
<input id="txt-file-separator"
name="file-separator"
type="text"
value="	"
class="form-control"
maxlength="1" />
<span class="input-group-btn">
<button id="btn-reset-file-separator" class="btn btn-info">Reset Default</button>
</span>
</div>
<span class="form-text text-muted">
Provide the character that separates the fields in your file(s). It should
be the same character for all files (if more than one is provided).<br />
A tab character will be assumed if you leave this field blank.</span>
</div>
<div class="form-group">
<label for="txt-file-comment-character" class="form-label">File Comment-Character</label>
<div class="input-group">
<input id="txt-file-comment-character"
name="file-comment-character"
type="text"
value="#"
class="form-control"
maxlength="1" />
<span class="input-group-btn">
<button id="btn-reset-file-comment-character" class="btn btn-info">
Reset Default</button>
</span>
</div>
<span class="form-text text-muted">
This specifies that lines that begin with the character provided will be
considered comment lines and ignored in their entirety.</span>
</div>
<div class="form-group">
<label for="txt-file-na" class="form-label">File "No-Value" Indicators</label>
<div class="input-group">
<input id="txt-file-na"
name="file-na"
type="text"
value="- NA N/A"
class="form-control" />
<span class="input-group-btn">
<button id="btn-reset-file-na" class="btn btn-info">Reset Default</button>
</span>
</div>
<span class="form-text text-muted">
This specifies strings in your file indicate that there is no value for a
particular cell (a cell is where a column and row intersect). Provide a
space-separated list of strings if you have more than one way of
indicating no values.</span>
</div>
</fieldset>
{%endblock%}
{%block page_documentation%}
page documentation goes here!!!
{%block more_javascript%}
<script type="text/javascript">
$("#btn-reset-file-separator").on("click", (event) => {
event.preventDefault();
$("#txt-file-separator").val("\t");
});
$("#btn-reset-file-comment-character").on("click", (event) => {
event.preventDefault();
$("#txt-file-comment-character").val("#");
});
$("#btn-reset-file-na").on("click", (event) => {
event.preventDefault();
$("#txt-file-na").val("- NA N/A");
});
</script>
{%endblock%}
|