From 4c0186d281ff77b28fa1abe1f84da0e8cb72dea1 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 7 Oct 2024 13:32:01 -0500 Subject: Create new phenotype dataset (PublishFreeze). Provide the UI and code to create a new phenotype dataset. --- uploader/templates/phenotypes/create-dataset.html | 106 ++++++++++++++++++++++ uploader/templates/phenotypes/list-datasets.html | 6 +- 2 files changed, 110 insertions(+), 2 deletions(-) create mode 100644 uploader/templates/phenotypes/create-dataset.html (limited to 'uploader/templates/phenotypes') diff --git a/uploader/templates/phenotypes/create-dataset.html b/uploader/templates/phenotypes/create-dataset.html new file mode 100644 index 0000000..93de92f --- /dev/null +++ b/uploader/templates/phenotypes/create-dataset.html @@ -0,0 +1,106 @@ +{%extends "phenotypes/base.html"%} +{%from "flash_messages.html" import flash_all_messages%} +{%from "macro-table-pagination.html" import table_pagination%} +{%from "populations/macro-display-population-card.html" import display_population_card%} + +{%block title%}Phenotypes{%endblock%} + +{%block pagetitle%}Phenotypes{%endblock%} + +{%block lvl4_breadcrumbs%} + +{%endblock%} + +{%block contents%} +{{flash_all_messages()}} + +
+

Create a new phenotype dataset.

+
+ +
+
+ +
+ + {%if errors["dataset-name"] is defined%} + +

{{errors["dataset-name"]}}

+ {%endif%} + + +

A short representative name for the dataset.

+

Recommended: Use the population code and append "Publish" at the end. +
This field will only accept names composed of + letters ('A-Za-z'), numbers (0-9), hyphens and underscores.

+
+
+ +
+ + {%if errors["dataset-fullname"] is defined%} + +

{{errors["dataset-fullname"]}}

+ {%endif%} + + +

A longer, descriptive name for the dataset — useful for humans. +

+
+ +
+ + + +

An optional, short name for the dataset.
+ If this is not provided, it will default to the value provided for the + Name field above.

+
+ +
+ +
+ +
+
+{%endblock%} + +{%block sidebarcontents%} +{{display_population_card(species, population)}} +{%endblock%} diff --git a/uploader/templates/phenotypes/list-datasets.html b/uploader/templates/phenotypes/list-datasets.html index 360fd2c..2eaf43a 100644 --- a/uploader/templates/phenotypes/list-datasets.html +++ b/uploader/templates/phenotypes/list-datasets.html @@ -51,8 +51,10 @@

There is no dataset for this population!

-

create dataset

{%endif%} -- cgit v1.2.3