about summary refs log tree commit diff
path: root/uploader/templates/samples/sui-list-samples.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-12-29 11:42:58 -0600
committerFrederick Muriuki Muriithi2025-12-29 11:45:52 -0600
commitb40f14bb409d54fda957e2d8269f1bc86bd34e58 (patch)
tree89eebf97435dda555b9e58653f233afa54e14b4b /uploader/templates/samples/sui-list-samples.html
parent9a00a08487d0d2b2f8b4363bb76fdad3336b747e (diff)
downloadgn-uploader-b40f14bb409d54fda957e2d8269f1bc86bd34e58.tar.gz
Samples: Move feature to new UI templates.
Diffstat (limited to 'uploader/templates/samples/sui-list-samples.html')
-rw-r--r--uploader/templates/samples/sui-list-samples.html98
1 files changed, 0 insertions, 98 deletions
diff --git a/uploader/templates/samples/sui-list-samples.html b/uploader/templates/samples/sui-list-samples.html
deleted file mode 100644
index e9ed71a..0000000
--- a/uploader/templates/samples/sui-list-samples.html
+++ /dev/null
@@ -1,98 +0,0 @@
-{%extends "samples/sui-base.html"%}
-{%from "flash_messages.html" import flash_all_messages%}
-{%from "populations/macro-select-population.html" import select_population_form%}
-
-{%block title%}Samples — List Samples{%endblock%}
-
-{%block contents%}
-{{super()}}
-
-<div class="row">
-  <h3 class="subheading">manage samples</h3>
-  {{flash_all_messages()}}
-</div>
-
-<div class="row">
-  <div class="col">
-    <a href="{{url_for('species.populations.samples.upload_samples',
-             species_id=species.SpeciesId,
-             population_id=population.Id)}}"
-       title="Add samples for population '{{population.FullName}}' from species
-              '{{species.FullName}}'."
-       class="btn btn-primary">add new samples</a>
-  </div>
-</div>
-
-{%if samples | length > 0%}
-<div class="row">
-  <p>
-    Population "{{population.FullName}} ({{population.Name}})" already has
-    <strong>{{total_samples}}</strong> samples/individuals entered. You can
-    explore the list of samples in the table below.
-  </p>
-</div>
-
-<div class="row">
-  <div class="col-md-2">
-    {%if offset > 0:%}
-    <a href="{{url_for('species.populations.samples.list_samples',
-             species_id=species.SpeciesId,
-             population_id=population.Id,
-             from=offset-count,
-             count=count)}}">
-      <span class="glyphicon glyphicon-backward"></span>
-      Previous
-    </a>
-    {%endif%}
-  </div>
-
-  <div class="col-md-8" style="text-align: center;">
-    Samples {{offset}} &mdash; {{offset+(count if offset + count < total_samples else total_samples - offset)}} / {{total_samples}}
-                                                                   </div>
-
-  <div class="col-md-2">
-    {%if offset + count < total_samples:%}
-    <a href="{{url_for('species.populations.samples.list_samples',
-             species_id=species.SpeciesId,
-             population_id=population.Id,
-             from=offset+count,
-             count=count)}}">
-      Next
-      <span class="glyphicon glyphicon-forward"></span>
-    </a>
-    {%endif%}
-  </div>
-</div>
-<div class="row">
-  <table class="table">
-    <thead>
-      <tr>
-        <th></th>
-        <th>Name</th>
-        <th>Auxilliary Name</th>
-        <th>Symbol</th>
-        <th>Alias</th>
-      </tr>
-    </thead>
-
-    <tbody>
-      {%for sample in samples%}
-      <tr>
-        <td>{{sample.sequence_number}}</td>
-        <td>{{sample.Name}}</td>
-        <td>{{sample.Name2}}</td>
-        <td>{{sample.Symbol or "-"}}</td>
-        <td>{{sample.Alias or "-"}}</td>
-      </tr>
-      {%endfor%}
-    </tbody>
-  </table>
-</div>
-{%else%}
-<div class="row">
-  <p>There are no samples entered for this population. Click the "Add Samples"
-    button above, to add some new samples.</p>
-</div>
-{%endif%}
-
-{%endblock%}