From 5e7d12089b528d5e0929826798c9877f47fe7da9 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 27 Dec 2005 19:11:01 +0000 Subject: [PATCH] show template name as "parent" of report in "My Completed Reports" git-svn-id: svn://svn.open-ils.org/ILS/trunk@2538 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/reporter/templates/dashboard.ttk | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/reporter/templates/dashboard.ttk b/Open-ILS/src/reporter/templates/dashboard.ttk index ab7592f568..9c0a02b86d 100644 --- a/Open-ILS/src/reporter/templates/dashboard.ttk +++ b/Open-ILS/src/reporter/templates/dashboard.ttk @@ -15,7 +15,7 @@ outputs = DBI.tie('reporter.output', 'id') SWITCH pagetype; CASE 'myreports'; - INCLUDE header.ttk title="Reporter Dashboard -- Completed Reports"; + INCLUDE header.ttk title="Reporter Dashboard -- Scheduled Reports"; INCLUDE navbar.ttk + my_scheduled_reports; CASE 'mycompletereports'; INCLUDE header.ttk title="Reporter Dashboard -- Completed Reports"; @@ -112,7 +112,12 @@ BLOCK show_complete_reports; END; report = reports.$rid; + + tid = report.stage2; + template = templates.$tid; + p = utils.JSON2perl( report.params ); + t = utils.JSON2perl( template.params ); state = 'Waiting in line...'; @@ -127,6 +132,9 @@ BLOCK show_complete_reports; runtime = output.run_time; END; + name_link = link(content=p.reportname,href="stage3?id=$rid#$output.id"); + name_link = t.templatename _ ' :: ' _ name_link; + WRAPPER html/row; INCLUDE html/cell width='5%' @@ -135,7 +143,7 @@ BLOCK show_complete_reports; col=bg style='padding:5px; border:solid gray 1px;'; INCLUDE html/cell - content=link(content=p.reportname,href="stage3?id=$rid#$output.id") + content=name_link col=bg style='border:solid gray 1px;'; INCLUDE html/cell -- 2.43.2