From 0ceb75ea0969b14163d884e4d266695d74491248 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 18 Nov 2016 13:55:48 +0100 Subject: add a simple checkbox template for use in widgets --- include/widgets.php | 4 ++-- view/tpl/field_simple_checkbox.tpl | 7 +++++++ view/tpl/wikilist.tpl | 6 +----- 3 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 view/tpl/field_simple_checkbox.tpl diff --git a/include/widgets.php b/include/widgets.php index 3dc555b46..8a3fac0e4 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -967,7 +967,7 @@ function widget_wiki_list($arr) { '$view' => t('View'), '$addnew' => t('Create new wiki'), '$create' => t('Create'), - '$wikiName' => array('wikiName', t('Wiki name'), '', ''), + '$wikiName' => array('wikiName', t('Wiki name')), '$lockstate' => $x['lockstate'], '$acl' => $x['acl'], '$allow_cid' => $x['allow_cid'], @@ -975,7 +975,7 @@ function widget_wiki_list($arr) { '$deny_cid' => $x['deny_cid'], '$deny_gid' => $x['deny_gid'], '$bang' => $x['bang'], - '$notify' => t('Send notification') + '$notify' => array('postVisible', t('Send notification')) )); } return ''; diff --git a/view/tpl/field_simple_checkbox.tpl b/view/tpl/field_simple_checkbox.tpl new file mode 100644 index 000000000..fe7431c78 --- /dev/null +++ b/view/tpl/field_simple_checkbox.tpl @@ -0,0 +1,7 @@ +
+ +
+
diff --git a/view/tpl/wikilist.tpl b/view/tpl/wikilist.tpl index d3c6b867f..4dc64e753 100644 --- a/view/tpl/wikilist.tpl +++ b/view/tpl/wikilist.tpl @@ -28,11 +28,7 @@