blob: c7c57fb7ca2a82b55e8d1160bf2c72daf5942176 (
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
|
{%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" />
</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" />
</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>
</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" />
</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}}"
class="form-control" />
</div>
<div class="form-group">
<input type="submit" value="Submit Changes" class="btn btn-primary" />
</div>
</form>
</div>
{%endblock%}
{%block sidebarcontents%}
<p>… provide details on FamilyOrderId here …</p>
<p>… provide details on OrderId here …</p>
{%endblock%}
|