blob: 93de92f9ef4f90d88ca86552500e0ff589504839 (
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
|
{%extends "phenotypes/base.html"%}
{%from "flash_messages.html" import flash_all_messages%}
{%from "macro-table-pagination.html" import table_pagination%}
{%from "populations/macro-display-population-card.html" import display_population_card%}
{%block title%}Phenotypes{%endblock%}
{%block pagetitle%}Phenotypes{%endblock%}
{%block lvl4_breadcrumbs%}
<li {%if activelink=="create-dataset"%}
class="breadcrumb-item active"
{%else%}
class="breadcrumb-item"
{%endif%}>
<a href="{{url_for('species.populations.phenotypes.create_dataset',
species_id=species.SpeciesId,
population_id=population.Id)}}">Create Datasets</a>
</li>
{%endblock%}
{%block contents%}
{{flash_all_messages()}}
<div class="row">
<p>Create a new phenotype dataset.</p>
</div>
<div class="row">
<form id="frm-create-pheno-dataset"
action="{{url_for('species.populations.phenotypes.create_dataset',
species_id=species.SpeciesId,
population_id=population.Id)}}"
method="POST">
<div class="form-group">
<label class="form-label" for="txt-dataset-name">Name</label>
{%if errors["dataset-name"] is defined%}
<small class="form-text text-muted danger">
<p>{{errors["dataset-name"]}}</p></small>
{%endif%}
<input type="text"
name="dataset-name"
id="txt-dataset-name"
value="{{original_formdata.get('dataset-name') or (population.InbredSetCode + 'Publish')}}"
{%if errors["dataset-name"] is defined%}
class="form-control danger"
{%else%}
class="form-control"
{%endif%}
required="required" />
<small class="form-text text-muted">
<p>A short representative name for the dataset.</p>
<p>Recommended: Use the population code and append "Publish" at the end.
<br />This field will only accept names composed of
letters ('A-Za-z'), numbers (0-9), hyphens and underscores.</p>
</small>
</div>
<div class="form-group">
<label class="form-label" for="txt-dataset-fullname">Full Name</label>
{%if errors["dataset-fullname"] is defined%}
<small class="form-text text-muted danger">
<p>{{errors["dataset-fullname"]}}</p></small>
{%endif%}
<input id="txt-dataset-fullname"
name="dataset-fullname"
type="text"
value="{{original_formdata.get('dataset-fullname', '')}}"
{%if errors["dataset-fullname"] is defined%}
class="form-control danger"
{%else%}
class="form-control"
{%endif%}
required="required" />
<small class="form-text text-muted">
<p>A longer, descriptive name for the dataset — useful for humans.
</p></small>
</div>
<div class="form-group">
<label class="form-label" for="txt-dataset-shortname">Short Name</label>
<input id="txt-dataset-shortname"
name="dataset-shortname"
type="text"
class="form-control"
value="{{original_formdata.get('dataset-shortname') or (population.InbredSetCode + ' Publish')}}" />
<small class="form-text text-muted">
<p>An optional, short name for the dataset. <br />
If this is not provided, it will default to the value provided for the
<strong>Name</strong> field above.</p></small>
</div>
<div class="form-group">
<input type="submit"
class="btn btn-primary"
value="create phenotype dataset" />
</div>
</form>
</div>
{%endblock%}
{%block sidebarcontents%}
{{display_population_card(species, population)}}
{%endblock%}
|