aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/species/macro-select-species.html
blob: 3714ae492be3068c18f8707f85bcbe61666c00ab (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{%from "macro-step-indicator.html" import step_indicator%}

{%macro select_species_form(form_action, species)%}
<form method="GET" action="{{form_action}}" class="form-horizontal">

  <h2>{{step_indicator("1")}} What species do you want to work with?</h2>

  {%if species | length != 0%}

  <p class="form-text">Search for, and select the species from the table below
    and click "Continue"</p>

  <div class="radio">
    <label for="rdo-cant-find-species"
           style="font-weight: 1;">
      <input id="rdo-cant-find-species" type="radio" name="species_id"
             value="CREATE-SPECIES" />
      I could not find the species I want (create it).
    </label>
  </div>

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

  <div style="margin-top:3em;">
    <table id="tbl-select-species" class="table compact stripe"
           data-species-list='{{species | tojson}}'>
      <div class="">
        <thead>
          <tr>
            <th></th>
            <th>Species Name</th>
          </tr>
        </thead>

        <tbody></tbody>
    </table>
    </div>

    {%else%}

    <label class="control-label" for="rdo-cant-find-species">
      <input id="rdo-cant-find-species" type="radio" name="species_id"
             value="CREATE-SPECIES" />
      There are no species to select from. Create the first one.</label>

    <div class="col-sm-offset-10 col-sm-2">
      <input type="submit"
             class="btn btn-primary col-sm-offset-1"
             value="continue" />
    </div>

    {%endif%}

</form>
{%endmacro%}