{% from os.path import basename %}
{% if is_editable %}

Add prep template to this raw data

To add a prep template you need to:
  1. Select your prep template file
    (only files with the "txt" and "tsv" file extensions will be displayed here): ,
  2. select the prep template data type
  3. (optional but required for EBI submission) select an investigation type:

Add prep template

{% end %}

Prep templates uploaded

{% for prep in available_prep_templates %} {% module PrepTemplatePanel(prep, study_id, is_editable, ena_terms, study_status, user_defined_terms) %} {% end %}

Linked files to this raw data

{% if show_unlink_btn %} Unlink all files
{% end %} {{link_msg}}
{% for fpid, f, t in raw_data_files %} {{basename(f)}}: {{t[4:]}}
{% end %}
{% if is_editable and not show_unlink_btn %}

Link uploaded files with raw data

{% for f in files %} {% end %}
File     File type
{{f}}  

Link raw files to: {{raw_data_filetype}} (ID: {{raw_data_id}}) {% end %}