From 2847c193832faf0e85a117ca3ac35e4afbcf8d12 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 13 Sep 2024 10:34:24 -0500 Subject: Samples: provide more informative page content. --- uploader/templates/samples/list-samples.html | 89 ++++++++++++++++------------ 1 file changed, 52 insertions(+), 37 deletions(-) (limited to 'uploader/templates/samples/list-samples.html') diff --git a/uploader/templates/samples/list-samples.html b/uploader/templates/samples/list-samples.html index 8f1bf16..f82d72e 100644 --- a/uploader/templates/samples/list-samples.html +++ b/uploader/templates/samples/list-samples.html @@ -24,42 +24,52 @@

- Samples for population "{{population.FullName}}" from the + You selected the population "{{population.FullName}}" from the "{{species.FullName}}" species.

+
+ +{%if samples | length > 0%} +
+

+ This population already has {{total_samples}} + samples/individuals entered. You can explore the list of samples in this + population in the table below. +

+
+ +
+
+ {%if offset > 0:%} + + + Previous + + {%endif%} +
- {%if samples | length > 0%} -
-
- {%if offset > 0:%} - - - Previous - - {%endif%} -
- -
- Samples {{offset}} — {{offset+(count if offset + count < total_samples else total_samples - offset)}} / {{total_samples}} -
- -
- {%if offset + count < total_samples:%} - - Next - - - {%endif%} -
+
+ Samples {{offset}} — {{offset+(count if offset + count < total_samples else total_samples - offset)}} / {{total_samples}} +
+ +
+ {%if offset + count < total_samples:%} + + Next + + + {%endif%}
+
+
@@ -90,10 +100,14 @@ delete all samples

- {%else%} -

- - There are no samples for this population at this time. + + +{%else%} + +

+

+ 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.

@@ -106,8 +120,9 @@ add samples

- {%endif%}
+{%endif%} + {%endblock%} {%block sidebarcontents%} -- cgit v1.2.3