Attempt at javascript.

This commit is contained in:
lwark
2025-06-02 10:23:28 -05:00
parent a2e1c52f22
commit 26292e275c
14 changed files with 415 additions and 138 deletions

View File

@@ -1207,7 +1207,7 @@ class ProcedureType(BaseClass):
# NOTE: An overly complicated list comprehension create a list of sample locations
# NOTE: next will return a blank cell if no value found for row/column
env = jinja_template_loading()
template = env.get_template("plate_map.html")
template = env.get_template("support/plate_map.html")
html = template.render(plate_rows=self.plate_rows, plate_columns=self.plate_columns, samples=sample_dicts, vw=vw)
return html + "<br/>"

View File

@@ -682,7 +682,7 @@ class Run(BaseClass, LogMixin):
for row in rows
for column in columns]
env = jinja_template_loading()
template = env.get_template("plate_map.html")
template = env.get_template("support/plate_map.html")
html = template.render(samples=output_samples, PLATE_ROWS=plate_rows, PLATE_COLUMNS=plate_columns)
return html + "<br/>"
@@ -1626,7 +1626,7 @@ class ClientSubmissionSampleAssociation(BaseClass):
# NOTE: Since there is no PCR, negliable result is necessary.
sample = self.to_sub_dict()
env = jinja_template_loading()
template = env.get_template("tooltip.html")
template = env.get_template("support/tooltip.html")
tooltip_text = template.render(fields=sample)
try:
control = self.sample.control
@@ -1880,7 +1880,7 @@ class RunSampleAssociation(BaseClass):
# NOTE: Since there is no PCR, negliable result is necessary.
sample = self.to_sub_dict()
env = jinja_template_loading()
template = env.get_template("tooltip.html")
template = env.get_template("support/tooltip.html")
tooltip_text = template.render(fields=sample)
try:
control = self.sample.control