aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/populations
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-03 15:31:12 -0500
committerFrederick Muriuki Muriithi2024-09-03 16:51:27 -0500
commit2046919e5db5d1e7136f48641fe0adb701c145e4 (patch)
tree28f85290df7950497734254de0e18ccf702e153e /uploader/templates/populations
parent61688c00e8734adee4d825571a9c43d926dca001 (diff)
downloadgn-uploader-2046919e5db5d1e7136f48641fe0adb701c145e4.tar.gz
Put populations under species: improve hierarchy.
Populations cannot exist without the species they are related to. This commit updates the URI hierarchy to reflect that expectation.
Diffstat (limited to 'uploader/templates/populations')
-rw-r--r--uploader/templates/populations/base.html6
-rw-r--r--uploader/templates/populations/index.html2
-rw-r--r--uploader/templates/populations/list-populations.html4
3 files changed, 6 insertions, 6 deletions
diff --git a/uploader/templates/populations/base.html b/uploader/templates/populations/base.html
index 1033927..d763fc1 100644
--- a/uploader/templates/populations/base.html
+++ b/uploader/templates/populations/base.html
@@ -1,12 +1,12 @@
-{%extends "base.html"%}
+{%extends "species/base.html"%}
-{%block breadcrumbs%}
+{%block lvl2_breadcrumbs%}
<li {%if activelink=="populations"%}
class="breadcrumb-item active"
{%else%}
class="breadcrumb-item"
{%endif%}>
- <a href="{{url_for('populations.index')}}">Populations</a>
+ <a href="{{url_for('species.populations.index')}}">Populations</a>
</li>
{%block lvl3_breadcrumbs%}{%endblock%}
{%endblock%}
diff --git a/uploader/templates/populations/index.html b/uploader/templates/populations/index.html
index 14cf547..061ca1d 100644
--- a/uploader/templates/populations/index.html
+++ b/uploader/templates/populations/index.html
@@ -11,6 +11,6 @@
<div class="row">
To continue, you need to select the species:
- {{select_species_form(url_for("populations.index"), species)}}
+ {{select_species_form(url_for("species.populations.index"), species)}}
</div>
{%endblock%}
diff --git a/uploader/templates/populations/list-populations.html b/uploader/templates/populations/list-populations.html
index bf6cf98..c14a28c 100644
--- a/uploader/templates/populations/list-populations.html
+++ b/uploader/templates/populations/list-populations.html
@@ -12,7 +12,7 @@
{%else%}
class="breadcrumb-item"
{%endif%}>
- <a href="{{url_for('populations.list_species_populations',
+ <a href="{{url_for('species.populations.list_species_populations',
species_id=species.SpeciesId)}}">List</a>
</li>
{%endblock%}
@@ -35,7 +35,7 @@
exist, click on the "Create Population" button below to create a new one.
</p>
<p>
- <a href="{{url_for('populations.create_population',
+ <a href="{{url_for('species.populations.create_population',
species_id=species.SpeciesId)}}"
title="Create a new population for species '{{species.FullName}}'."
class="btn btn-danger">