From 3bec3b312a1e235247f1431d4351db5efe7a785d Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 23 Sep 2024 14:10:17 -0500 Subject: UI: Indicate currently active menu. --- uploader/samples/views.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'uploader/samples') diff --git a/uploader/samples/views.py b/uploader/samples/views.py index fd3c601..9ba1df8 100644 --- a/uploader/samples/views.py +++ b/uploader/samples/views.py @@ -8,17 +8,16 @@ from typing import Iterator import MySQLdb as mdb from redis import Redis from MySQLdb.cursors import DictCursor -from flask import ( - flash, - request, - url_for, - redirect, - Blueprint, - render_template, - current_app as app) +from flask import (flash, + request, + url_for, + redirect, + Blueprint, + current_app as app) from uploader import jobs from uploader.files import save_file +from uploader.ui import make_template_renderer from uploader.authorisation import require_login from uploader.input_validation import is_integer_input from uploader.datautils import order_by_family, enumerate_sequence @@ -37,6 +36,7 @@ from uploader.population.models import(save_population, from .models import samples_by_species_and_population samplesbp = Blueprint("samples", __name__) +render_template = make_template_renderer("samples") @samplesbp.route("/samples", methods=["GET"]) @require_login -- cgit v1.2.3