aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-07-14 10:52:56 -0500
committerFrederick Muriuki Muriithi2025-07-14 10:52:56 -0500
commit3a483935341757cab2f942dd3156333b1675f801 (patch)
tree7c30eb4aa0ec383f0899549be330af1fa2bc1d5b
parent3f658b0af6d3cf84a686c8d7eb948929520e6323 (diff)
downloadgn-uploader-3a483935341757cab2f942dd3156333b1675f801.tar.gz
Allow adding new samples even where there are existing ones.
-rw-r--r--uploader/templates/samples/list-samples.html32
1 files changed, 15 insertions, 17 deletions
diff --git a/uploader/templates/samples/list-samples.html b/uploader/templates/samples/list-samples.html
index 185e784..f974a8e 100644
--- a/uploader/templates/samples/list-samples.html
+++ b/uploader/templates/samples/list-samples.html
@@ -29,6 +29,19 @@
</p>
</div>
+<div class="row">
+ <p>
+ <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 samples
+ </a>
+ </p>
+</div>
+
{%if samples | length > 0%}
<div class="row">
<p>
@@ -103,25 +116,10 @@
</a>
</p>
</div>
-
{%else%}
-
<div class="row">
- <p>
- There are no samples entered for this population. Do please go ahead and add
- the samples for this population by clicking on the button below.
- </p>
-
- <p>
- <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 samples
- </a>
- </p>
+ <p>There are no samples entered for this population. Click the "Add Samples"
+ button above, to add some new samples.</p>
</div>
{%endif%}