blob: ef74ac37fdf01942a2c1ef2abc58daa9ce22388c (
about) (
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
|
{%macro select_population_form(form_action, populations)%}
<form method="GET" action="{{form_action}}" class="form-horizontal">
<legend>Select Population</legend>
<div class="form-group">
<label for="select-population" class="control-label col-sm-2">
Population</label>
<div class="col-sm-10">
<select id="select-population"
name="population_id"
class="form-control"
required="required">
<option value="">Select Population</option>
{%for family in populations%}
<optgroup {%if family[0][1] is not none%}
label="{{family[0][1]}}"
{%else%}
label="Undefined"
{%endif%}>
{%for population in family[1]%}
<option value="{{population.Id}}">{{population.FullName}}</option>
{%endfor%}
</optgroup>
{%endfor%}
</select>
</div>
</div>
<div class="col-sm-offset-2 col-sm-10">
<input type="submit" value="Select" class="btn btn-primary" />
</div>
</form>
{%endmacro%}
|