From e4392cd00aee900419f6aec1f7c467f0d8adbc3f Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 19 Nov 2022 17:44:09 -0600 Subject: [PATCH] Allow disabling, or per-day scheduling, of problem reports --- .../templates/deform/problem_report_days.pt | 17 ++ tailbone/templates/reports/problems/view.mako | 4 + tailbone/views/reports.py | 174 +++++++++++++++--- 3 files changed, 167 insertions(+), 28 deletions(-) create mode 100644 tailbone/templates/deform/problem_report_days.pt diff --git a/tailbone/templates/deform/problem_report_days.pt b/tailbone/templates/deform/problem_report_days.pt new file mode 100644 index 00000000..ff3dd70c --- /dev/null +++ b/tailbone/templates/deform/problem_report_days.pt @@ -0,0 +1,17 @@ +
+
+ + + ${day_labels[0]['abbr']} + ${day_labels[1]['abbr']} + ${day_labels[2]['abbr']} + ${day_labels[3]['abbr']} + ${day_labels[4]['abbr']} + ${day_labels[5]['abbr']} + ${day_labels[6]['abbr']} + +
+
diff --git a/tailbone/templates/reports/problems/view.mako b/tailbone/templates/reports/problems/view.mako index cbd2a942..026c73dc 100644 --- a/tailbone/templates/reports/problems/view.mako +++ b/tailbone/templates/reports/problems/view.mako @@ -66,6 +66,10 @@ ${parent.modify_this_page_vars()}