From 5435a0a45fdfa1bcceeb36f8531826ddc2bb3508 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Sat, 10 Aug 2013 17:15:22 +0200 Subject: Added possibility to add notes to studied batch items. --- tpl/study/batch.php | 5 ++++- tpl/study/batch_review.php | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'tpl') diff --git a/tpl/study/batch.php b/tpl/study/batch.php index 666fdc8..842deaa 100644 --- a/tpl/study/batch.php +++ b/tpl/study/batch.php @@ -2,7 +2,10 @@ $title = $info['uname'] . ':' . $info['lname'] . ' - ' . $info['bname']; -$javascript = "\n\nconst batch_data = " . $info['json_data'] . ";\n\nconst reviews_data = $reviews;\n\n"; +$javascript = "\nconst batchid = " . $info['batchid'] . "\n\n". + "const batch_data = " . $info['json_data'] . ";\n\n". + "const reviews_data = $reviews;\n\n". + "var notes = " . $info['notes'] . ";\n\n"; $js_include = array("js/prototype.js", "js/liststudy.js"); $onload_js = 'show_batch_table();'; diff --git a/tpl/study/batch_review.php b/tpl/study/batch_review.php index ed81b75..abe1944 100644 --- a/tpl/study/batch_review.php +++ b/tpl/study/batch_review.php @@ -2,7 +2,9 @@ $title = "Testing " . $info['uname'] . ':' . $info['lname'] . ' - ' . $info['bname']; -$javascript = "\n\nconst batchid = " . $info['batchid'] . "\nconst batch_data = " . $info['json_data'] . ";\n\n"; +$javascript = "\n\nconst batchid = " . $info['batchid'] . "\n". + "const batch_data = " . $info['json_data'] . ";\n\n". + "var notes = " . $info['notes'] . ";\n\n"; $js_include = array("js/prototype.js", "js/reviewdesu.js"); $onload_js = 'start_review();'; -- cgit v1.2.3