{% from qiita_pet.handlers.util import download_link_or_path %}
Abstract: {{abstract}}
Description: {{description}}
Study ID: {% raw id %}
PubMed IDs: {% raw pmids %}
Principal investigator: {% raw principal_investigator %}
Samples: {{number_samples_promised}}/{{number_samples_collected}}
Metadata: {{metadata_complete}}

{% if show_select_sample %} Select your sample template
(only files with the "txt" and "tsv" file extensions will be displayed here): {% end %}
{% if sample_templates %}
You have a valid sample template, if you reprocess with a new file you will lose all prep and sequence information.
However, modifying your sample template is fine.

Show sample template summary
{% for stid, stpath in sample_templates %}
{% raw download_link_or_path(is_local_request, stpath, stid, "Sample template") %} {% end %}
{% end %}
{% if not sample_templates %} {% end %} {% if sample_templates %} {% end %}
Process sample template     Update sample template     Add samples to study