about summary refs log tree commit diff
path: root/uploader/templates/samples/sui-upload-samples.html
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/templates/samples/sui-upload-samples.html')
-rw-r--r--uploader/templates/samples/sui-upload-samples.html153
1 files changed, 0 insertions, 153 deletions
diff --git a/uploader/templates/samples/sui-upload-samples.html b/uploader/templates/samples/sui-upload-samples.html
deleted file mode 100644
index 83c2061..0000000
--- a/uploader/templates/samples/sui-upload-samples.html
+++ /dev/null
@@ -1,153 +0,0 @@
-{%extends "samples/sui-base.html"%}
-{%from "flash_messages.html" import flash_all_messages%}
-
-{%block title%}Samples — Upload Samples{%endblock%}
-
-{%block breadcrumbs%}
-{{super()}}
-<li class="breadcrumb-item">
-  <a href="{{url_for('species.populations.samples.upload_samples',
-           species_id=species['SpeciesId'],
-           population_id=population.Id)}}">
-    Upload
-  </a>
-</li>
-{%endblock%}
-
-{%block contents%}
-{{flash_all_messages()}}
-
-<div class="row">
-  <form id="form-samples"
-        method="POST"
-        action="{{url_for('species.populations.samples.upload_samples',
-                species_id=species.SpeciesId,
-                population_id=population.InbredSetId)}}"
-        enctype="multipart/form-data">
-    <legend class="heading">upload samples</legend>
-
-    <input type="hidden" name="species_id" value="{{species.SpeciesId}}" />
-    <input type="hidden" name="population_id" value="{{population.Id}}" />
-
-    <div class="form-group">
-      <label for="file-samples" class="form-label">select file</label>
-      <input type="file" name="samples_file" id="file-samples"
-	     accept="text/csv, text/tab-separated-values, text/plain"
-	     class="form-control" />
-      <small class="form-text text-muted">
-        See the <a href="#docs-samples-upload">documentation below</a> for
-        details on expected file format.</small>
-    </div>
-
-    <div class="form-group">
-      <label for="select-separator" class="form-label">field separator</label>
-      <select id="select-separator"
-	      name="separator"
-	      required="required"
-	      class="form-control">
-        <option value="">Select separator for your file: (default is comma)</option>
-        <option value="&#x0009;">TAB</option>
-        <option value="&#x0020;">Space</option>
-        <option value=",">Comma</option>
-        <option value=";">Semicolon</option>
-        <option value="other">Other</option>
-      </select>
-      <input id="txt-separator"
-	     type="text"
-	     name="other_separator"
-	     class="form-control" />
-      <small class="form-text text-muted">
-        If you select '<strong>Other</strong>' for the field separator value,
-        enter the character that separates the fields in your CSV file in the form
-        field below.
-      </small>
-    </div>
-
-    <div class="form-group form-check">
-      <input id="chk-heading"
-	     type="checkbox"
-	     name="first_line_heading"
-	     class="form-check-input" />
-      <label for="chk-heading" class="form-check-label">
-        first line is a heading?</label>
-      <small class="form-text text-muted">
-        Select this if the first line in your file contains headings for the
-        columns.
-      </small>
-    </div>
-
-    <div class="form-group">
-      <label for="txt-delimiter" class="form-label">field delimiter</label>
-      <input id="txt-delimiter"
-	     type="text"
-	     name="field_delimiter"
-	     maxlength="1"
-	     class="form-control" />
-      <small class="form-text text-muted">
-        If there is a character delimiting the string texts within particular
-        fields in your CSV, provide the character here. This can be left blank if
-        no such delimiters exist in your file.
-      </small>
-    </div>
-
-    <button type="submit"
-	    class="btn btn-primary">upload samples file</button>
-  </form>
-</div>
-
-<div class="row">
-  <h3>Preview File Content</h3>
-
-  <table id="tbl:samples-preview" class="table">
-    <caption class="heading">preview content</caption>
-
-    <thead>
-      <tr>
-        <th>Name</th>
-        <th>Name2</th>
-        <th>Symbol</th>
-        <th>Alias</th>
-      </tr>
-    </thead>
-
-    <tbody>
-      <tr id="default-row">
-        <td colspan="4">
-	  Please make some selections in the form above to preview the data.</td>
-      </tr>
-    </tbody>
-  </table>
-</div>
-
-
-
-<div class="row" id="docs-samples-upload">
-  <h3 class="subheading">File Format</h3>
-  <p>
-    Upload a <strong>character-separated value (CSV)</strong> file that contains
-    details about your samples. The CSV file should have the following fields:
-    <dl>
-      <dt>Name</dt>
-      <dd>The primary name/identifier for the sample/individual.</dd>
-
-      <dt>Name2</dt>
-      <dd>A secondary name for the sample. This can simply be the same as
-        <strong>Name</strong> above. This field <strong>MUST</strong> contain a
-        value.</dd>
-
-      <dt>Symbol</dt>
-      <dd>A symbol for the sample. This can be a strain name, e.g. 'BXD60' for
-        species that have strains. This field can be left empty for species like
-        Humans that do not have strains..</dd>
-
-      <dt>Alias</dt>
-      <dd>An alias for the sample. Can be an empty field, or take on the same
-        value as that of the Symbol.</dd>
-    </dl>
-  </p>
-</div>
-{%endblock%}
-
-{%block javascript%}
-<script src="/static/js/upload_samples.js" type="text/javascript"></script>
-{%endblock%}