From 7c34a3676d294c9a1acc69f71ab3061074509160 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 30 Apr 2024 06:59:19 +0000 Subject: Rework Help module + begin tests for Setup module --- view/tpl/help.tpl | 8 ++++---- view/tpl/widget.tpl | 10 ++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 view/tpl/widget.tpl (limited to 'view') diff --git a/view/tpl/help.tpl b/view/tpl/help.tpl index 5022e7b1b..ba61a43ce 100644 --- a/view/tpl/help.tpl +++ b/view/tpl/help.tpl @@ -13,19 +13,19 @@ -

{{$title}}: {{$heading}}

+

{{$module->get_page_title()}}

- {{$tocHeading}} + {{$module->get_toc_heading()}}

- {{$content}} + {{$module->render_content()}}
diff --git a/view/tpl/widget.tpl b/view/tpl/widget.tpl new file mode 100644 index 000000000..3fb3b1200 --- /dev/null +++ b/view/tpl/widget.tpl @@ -0,0 +1,10 @@ +{{* Generic template for widgets. + * + * To use this template, pass the `$this` object reference of the widget, + * and implement the `title()` and `contents()` functions as public methods + * on the widget class. + *}} +
+

{{$widget->title()}}

+ {{$widget->contents()}} +
-- cgit v1.2.3