{%extends "samples/base.html"%}
{%from "flash_messages.html" import flash_all_messages%}
{%from "populations/macro-select-population.html" import select_population_form%}
{%from "species/macro-display-species-card.html" import display_species_card%}

{%block title%}Samples — Select Population{%endblock%}

{%block pagetitle%}Samples — Select Population{%endblock%}


{%block contents%}
{{flash_all_messages()}}

<div class="row">
  <p>You have selected "{{species.FullName}}" as the species that your data relates to.</p>
  <p>Next, we need information regarding the population your data relates to. Do please select the population from the existing ones below</p>
</div>

<div class="row">
  {{select_population_form(
  url_for("species.populations.samples.select_population", species_id=species.SpeciesId),
  populations)}}
</div>

<div class="row">
  <p>
    If you cannot find the population your data relates to in the drop-down
    above, you might want to
    <a href="{{url_for('species.populations.create_population',
             species_id=species.SpeciesId)}}"
       title="Create a new population for species '{{species.FullName}},">
      add a new population to GeneNetwork</a>
    instead.
</div>
{%endblock%}

{%block sidebarcontents%}
{{display_species_card(species)}}
{%endblock%}