blob: 68277518432212a2d293f449f596d69572514143 (
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
{%extends "species/base.html"%}
{%from "flash_messages.html" import flash_all_messages%}
{%block title%}Edit Species{%endblock%}
{%block pagetitle%}Edit Species{%endblock%}
{%block css%}
<style type="text/css">
.card {
margin-top: 0.3em;
border-width: 1px;
border-style: solid;
border-radius: 0.3em;
border-color: #AAAAAA;
padding: 0.5em;
}
</style>
{%endblock%}
{%block lvl2_breadcrumbs%}
<li {%if activelink=="edit-species"%}
class="breadcrumb-item active"
{%else%}
class="breadcrumb-item"
{%endif%}>
<a href="{{url_for('species.edit_species_extra',
species_id=species.SpeciesId)}}">Edit</a>
</li>
{%endblock%}
{%block contents%}
{{flash_all_messages()}}
<div class="row">
<form id="frm-edit-species"
method="POST"
action="{{url_for('species.edit_species_extra',
species_id=species.SpeciesId)}}">
<legend>Edit Extra Detail for Species '{{species.FullName}}'</legend>
<input type="hidden" name="species_id" value="{{species.SpeciesId}}" />
<div class="form-group">
<label for="lbl-species-taxonid" class="form-label">
Taxonomy Id
</label>
<label id="lbl-species-taxonid"
disabled="disabled"
class="form-control">{{species.TaxonomyId}}</label>
</div>
<div class="form-group">
<label for="txt-species-name" class="form-label">
Common Name
</label>
<input type="text"
id="txt-species-name"
name="species_name"
required="required"
value="{{species.SpeciesName}}"
class="form-control" />
<small class="form-text text-muted">
This is the layman's name for the species, e.g. mouse</mall>
</div>
<div class="form-group">
<label for="txt-species-fullname" class="form-label">
Scientific Name
</label>
<input type="text"
id="txt-species-fullname"
name="species_fullname"
required="required"
value="{{species.FullName}}"
class="form-control" />
<small class="form-text text-muted">
A scientific name for the species that mostly adheres to the biological
binomial nomenclature system.</small>
</div>
<div class="form-group">
<label for="select-species-family" class="form-label">
Family
</label>
<select id="select-species-family"
name="species_family"
class="form-control">
<option value="">Select the family</option>
{%for family in families%}
<option value="{{family}}"
{%if species.Family == family%}
selected="selected"
{%endif%}>{{family}}</option>
{%endfor%}
</select>
<small class="form-text text-muted">
A general classification for the species. This is mostly for use in
GeneNetwork's menus.</small>
</div>
<div class="form-group">
<label for="txt-species-familyorderid" class="form-label">
Family Order Id
</label>
<input type="number"
id="txt-species-familyorderid"
name="species_familyorderid"
value="{{species.FamilyOrderId}}"
class="form-control" />
<small class="form-text text-muted">
This is a number that determines the order of the "Family" groupings
above in the GeneNetwork menus. This is an integer value that's manually
assigned.</small>
</div>
<div class="form-group">
<label for="txt-species-orderid" class="form-label">
Order Id
</label>
<input type="number"
id="txt-species-orderid"
name="species_orderid"
value="{{species.OrderId or max_order_id}}"
class="form-control" />
<small class="form-text text-muted">
This integer value determines the order of the species in relation to
each other, but also within the respective "Family" groups.</small>
</div>
<div class="form-group">
<input type="submit" value="Submit Changes" class="btn btn-primary" />
</div>
</form>
</div>
{%endblock%}
{%block sidebarcontents%}
<div class="card">
<div class="card-body">
<h5 class="card-title">Family Order</h5>
<div class="card-text">
<p>The current family order is as follows</p>
<table class="table">
<thead>
<tr>
<th>Family Order Id</th>
<th>Family</th>
</tr>
</thead>
<tbody>
{%for item in family_order%}
<tr>
<td>{{item[0]}}</td>
<td>{{item[1]}}</td>
</tr>
{%endfor%}
</tbody>
</table>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Order ID</h5>
<div class="card-text">
<p>The current largest OrderID is: {{max_order_id}}</p>
<p>We recommend giving a new species an order ID that is five more than
the current highest i.e. {{max_order_id + 5}}.</p>
</div>
</div>
</div>
{%endblock%}
|