From e49b4367f1dab1c3acb3cd5d71ba09359c5ab4ee Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 29 Aug 2024 15:21:27 -0500 Subject: Initialise package for dealing with Species. --- uploader/templates/base.html | 10 ++- uploader/templates/species/base.html | 11 +++ uploader/templates/species/create-species.html | 116 +++++++++++++++++++++++++ uploader/templates/species/list-species.html | 68 +++++++++++++++ 4 files changed, 204 insertions(+), 1 deletion(-) create mode 100644 uploader/templates/species/base.html create mode 100644 uploader/templates/species/create-species.html create mode 100644 uploader/templates/species/list-species.html (limited to 'uploader/templates') diff --git a/uploader/templates/base.html b/uploader/templates/base.html index 58227f4..7431767 100644 --- a/uploader/templates/base.html +++ b/uploader/templates/base.html @@ -44,6 +44,7 @@ @@ -54,7 +55,14 @@

GN Uploader: {%block pagetitle%}{%endblock%}

diff --git a/uploader/templates/species/base.html b/uploader/templates/species/base.html new file mode 100644 index 0000000..b77cc8b --- /dev/null +++ b/uploader/templates/species/base.html @@ -0,0 +1,11 @@ +{%extends "base.html"%} + +{%block breadcrumbs%} + +{%endblock%} diff --git a/uploader/templates/species/create-species.html b/uploader/templates/species/create-species.html new file mode 100644 index 0000000..b96e2d3 --- /dev/null +++ b/uploader/templates/species/create-species.html @@ -0,0 +1,116 @@ +{%extends "species/base.html"%} +{%from "flash_messages.html" import flash_all_messages%} + +{%block title%}Create Species{%endblock%} + +{%block pagetitle%}Create Species{%endblock%} + +{%block breadcrumbs%} + +{%endblock%} + +{%block contents%} +
+
+ Create Species + + {{flash_all_messages()}} + +
+ +
+ + + + +
+ Provide the taxonomy ID for + your species that can be used to link to external sites like NCBI. Enter + the taxonomy ID and click "Search" to auto-fill the form with data. +
+ While it is recommended to provide a value for this field, doing so is + optional. +
+
+ +
+ + + Provide the common, possibly + non-scientific name for the species here, e.g. Human, Mouse, etc. +
+ +
+ + + Provide the scientific name for the + species you are creating, e.g. Homo sapiens, Mus musculus, etc. +
+ +
+ +
+ +
+
+{%endblock%} + +{%block javascript%} + +{%endblock%} diff --git a/uploader/templates/species/list-species.html b/uploader/templates/species/list-species.html new file mode 100644 index 0000000..42094c1 --- /dev/null +++ b/uploader/templates/species/list-species.html @@ -0,0 +1,68 @@ +{%extends "species/base.html"%} +{%from "flash_messages.html" import flash_all_messages%} + +{%block title%}List Species{%endblock%} + +{%block pagetitle%}List Species{%endblock%} + +{%block contents%} +
+

+ All data in GeneNetwork revolves around species. This is the core of the + system.

+

Here you can see a list of all the species available in GeneNetwork. + Click on the link besides each species to view greater detail on the species, + and access further operations that are possible for said species.

+
+ +
+

If you cannot find the species you are looking for below, click the button + below to create it

+

Create Species

+
+ +
+ + + + + + + + + + + + {%for species in allspecies%} + + + + + + + {%else%} + + + + {%endfor%} + +
Available Species
Common NameScientific NameTaxonIdUse
{{species["SpeciesName"]}}{{species["FullName"]}} + {{species["TaxonomyId"]}} + + + {{species["SpeciesName"]}} ({{species["FullName"]}}) + +
+

+ + There were no species found! +

+
+
+{%endblock%} -- cgit v1.2.3