From 480ee0b657b762f1dd0b1164f98ab13bc9a11f56 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 23 Sep 2024 16:29:25 -0500 Subject: Initialise "Platforms" section. --- uploader/templates/platforms/base.html | 13 +++ uploader/templates/platforms/create-platform.html | 103 ++++++++++++++++++++++ uploader/templates/platforms/index.html | 21 +++++ uploader/templates/platforms/list-platforms.html | 93 +++++++++++++++++++ 4 files changed, 230 insertions(+) create mode 100644 uploader/templates/platforms/base.html create mode 100644 uploader/templates/platforms/create-platform.html create mode 100644 uploader/templates/platforms/index.html create mode 100644 uploader/templates/platforms/list-platforms.html (limited to 'uploader/templates') diff --git a/uploader/templates/platforms/base.html b/uploader/templates/platforms/base.html new file mode 100644 index 0000000..dac965f --- /dev/null +++ b/uploader/templates/platforms/base.html @@ -0,0 +1,13 @@ +{%extends "species/base.html"%} + +{%block lvl3_breadcrumbs%} + +{%block lvl4_breadcrumbs%}{%endblock%} +{%endblock%} diff --git a/uploader/templates/platforms/create-platform.html b/uploader/templates/platforms/create-platform.html new file mode 100644 index 0000000..b5961ce --- /dev/null +++ b/uploader/templates/platforms/create-platform.html @@ -0,0 +1,103 @@ +{%extends "platforms/base.html"%} +{%from "flash_messages.html" import flash_all_messages%} +{%from "species/macro-display-species-card.html" import display_species_card%} + +{%block title%}Platforms — Create Platforms{%endblock%} + +{%block pagetitle%}Platforms — Create Platforms{%endblock%} + +{%block lvl3_breadcrumbs%} + +{%endblock%} + +{%block contents%} +{{flash_all_messages()}} + +
+

Create New Platform

+ +

You can create a new genetic sequencing platform below.

+
+ +
+
+ +
+ + + +

This is the platform's + + accession value on NCBI. If you do not know the value, click the + link and search on NCBI for species '{{species.FullName}}'.

+
+ +
+ + + +

This is name of the genetic sequencing platform.

+
+ +
+ + + +

Use the following conventions for this field: +

    +
  1. Start with a 4-letter vendor code, e.g. "Affy" for "Affymetrix", "Illu" for "Illumina", etc.
  2. +
  3. Append an underscore to the 4-letter vendor code
  4. +
  5. Use the name of the array given by the vendor, e.g. U74AV2, MOE430A, etc.
  6. +
+

+
+
+ +
+ + + +

The full platform title. Sometimes, this is the same as the Platform + Name above.

+
+ +
+ +
+
+
+{%endblock%} + +{%block sidebarcontents%} +{{display_species_card(species)}} +{%endblock%} diff --git a/uploader/templates/platforms/index.html b/uploader/templates/platforms/index.html new file mode 100644 index 0000000..35b6464 --- /dev/null +++ b/uploader/templates/platforms/index.html @@ -0,0 +1,21 @@ +{%extends "platforms/base.html"%} +{%from "flash_messages.html" import flash_all_messages%} +{%from "species/macro-select-species.html" import select_species_form%} + +{%block title%}Platforms{%endblock%} + +{%block pagetitle%}Platforms{%endblock%} + + +{%block contents%} +{{flash_all_messages()}} + +
+

In this section, you will be able to view and manage the sequencing + platforms that are currently supported by GeneNetwork.

+
+ +
+ {{select_species_form(url_for("species.platforms.index"), species)}} +
+{%endblock%} diff --git a/uploader/templates/platforms/list-platforms.html b/uploader/templates/platforms/list-platforms.html new file mode 100644 index 0000000..718dd1d --- /dev/null +++ b/uploader/templates/platforms/list-platforms.html @@ -0,0 +1,93 @@ +{%extends "platforms/base.html"%} +{%from "flash_messages.html" import flash_all_messages%} +{%from "species/macro-display-species-card.html" import display_species_card%} + +{%block title%}Platforms — List Platforms{%endblock%} + +{%block pagetitle%}Platforms — List Platforms{%endblock%} + + +{%block contents%} +{{flash_all_messages()}} + +
+

View the list of the genetic sequencing platforms that are currently + supported by GeneNetwork.

+

If you cannot find the platform you wish to use, you can add it by clicking + the "New Platform" button below.

+

Create Platform

+
+ +
+

Supported Platforms

+ {%if platforms is defined and platforms | length > 0%} +

There are {{total_platforms}} platforms supported by GeneNetwork

+ +
+
+ {%if start_from > 0%} + + + Previous + + {%endif%} +
+
+ Displaying platforms {{start_from+1}} to {{start_from+count if start_from+count < total_platforms else total_platforms}} of + {{total_platforms}} +
+
+ {%if start_from + count < total_platforms%} + + Next + + + {%endif%} +
+
+ + + + + + + + + + + + + {%for platform in platforms%} + + + + + + + {%endfor%} + +
#Platform NameGEO PlatformTitle
{{platform.sequence_number}}{{platform.GeneChipName}}{{platform.GeoPlatform}}{{platform.Title}}
+ {%else%} +

+ + There are no platforms supported at this time!

+ {%endif%} +
+{%endblock%} + +{%block sidebarcontents%} +{{display_species_card(species)}} +{%endblock%} -- cgit v1.2.3