From ed59dc5180dcd84d7d3c9e5eda890ea2545242e3 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 29 Dec 2025 11:35:17 -0600 Subject: Populations: Move feature to new UI templates. --- uploader/population/views.py | 5 +- uploader/templates/populations/base.html | 28 +-- .../templates/populations/create-population.html | 18 +- .../populations/macro-display-population-card.html | 3 +- uploader/templates/populations/sui-base.html | 12 -- .../templates/populations/sui-view-population.html | 127 ------------- .../templates/populations/view-population.html | 201 ++++++++++++--------- 7 files changed, 135 insertions(+), 259 deletions(-) delete mode 100644 uploader/templates/populations/sui-base.html delete mode 100644 uploader/templates/populations/sui-view-population.html diff --git a/uploader/population/views.py b/uploader/population/views.py index caee55b..795ce81 100644 --- a/uploader/population/views.py +++ b/uploader/population/views.py @@ -11,8 +11,6 @@ from flask import (flash, Blueprint, current_app as app) -from uploader.sui import sui_template - from uploader.samples.views import samplesbp from uploader.flask_extensions import url_for from uploader.oauth2.client import oauth2_post @@ -244,5 +242,4 @@ def view_population(species_id: int, population_id: int): dataset_phenotypes(conn, population["Id"], _dataset["Id"])) } - return render_template(sui_template("populations/view-population.html"), - **_kwargs) + return render_template("populations/view-population.html", **_kwargs) diff --git a/uploader/templates/populations/base.html b/uploader/templates/populations/base.html index 9db8083..24cacc2 100644 --- a/uploader/templates/populations/base.html +++ b/uploader/templates/populations/base.html @@ -1,18 +1,20 @@ {%extends "species/base.html"%} +{%from "populations/macro-display-population-card.html" import display_sui_population_card%} -{%block lvl2_breadcrumbs%} -
Think of a "sample" as say a single case or individual - in the experiment. It could even be a single strain (where applicable). -
-This is a convenience feature for when you want to upload phenotypes to - the system, but do not have the genotypes data ready yet.
- Manage Samples -To view existing phenotype traits, or upload new ones, click the button below:
- -This allows you to upload the data that concerns your genotypes.
-Any samples/individuals/cases/strains that do not already exist in the - system will be added. This does not delete any existing data.
- upload genotypes -Upload expression data (mRNA data) for this population.
- upload genotypes -Each tab presents a feature that's available at the population level. - Select the tab that allows you to continue with your task.
-- Click any of the following links to use this population in performing the - subsequent operations. -
- - +Think of a "sample" as say a single case or individual + in the experiment. It could even be a single strain (where applicable). +
+This is a convenience feature for when you want to upload phenotypes to + the system, but do not have the genotypes data ready yet.
+ Manage Samples +To view existing phenotype traits, or upload new ones, click the button below:
+ +This allows you to upload the data that concerns your genotypes.
+Any samples/individuals/cases/strains that do not already exist in the + system will be added. This does not delete any existing data.
+ upload genotypes +Upload expression data (mRNA data) for this population.
+ upload genotypes +Each tab presents a feature that's available at the population level. + Select the tab that allows you to continue with your task.
+