aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/populations/macro-select-population.html
blob: b7ff08889bdcb213fd7c29458eced07b234a4501 (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
34
35
36
37
38
{%macro select_population_form(form_action, species, populations)%}
<form method="GET" action="{{form_action}}" class="form-horizontal">

  {%if populations | length != 0%}

  <label class="control-label">What population will you be working with?</label>
  <table id="tbl-select-population" class="table compact stripe"
         data-populations-list='{{populations | tojson}}'>
    <thead>
      <tr>
        <th></th>
        <th>Population</th>
      </tr>
    </thead>

    <tbody></tbody>
  </table>

  <div>
    <label class="control-label">
      <input type="radio" name="population_id" value="CREATE-POPULATION" />
      I cannot find the population I want &mdash; create it!
    </label>
  </div>

  {%else%}
  <p class="form-text">
    There are no populations currently defined for {{species['FullName']}}
    ({{species['SpeciesName']}}).<br />
    Click "Continue" to create the first!</p>
  <input type="hidden" name="population_id" value="CREATE-POPULATION" />
  {%endif%}

  <div class="col-sm-offset-2 col-sm-10">
    <input type="submit" value="continue" class="btn btn-primary" />
  </div>
</form>
{%endmacro%}