From e9c8107cc5ffa110df98ae5f15e7233b498f5cd2 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 6 Dec 2014 12:16:09 +1100 Subject: [PATCH] Checkbox list should support preview mode --- .../form/partials/_field_checkboxlist.htm | 118 +++++++++++------- 1 file changed, 75 insertions(+), 43 deletions(-) diff --git a/modules/backend/widgets/form/partials/_field_checkboxlist.htm b/modules/backend/widgets/form/partials/_field_checkboxlist.htm index 4c9c4fd83..6ebe62e1f 100644 --- a/modules/backend/widgets/form/partials/_field_checkboxlist.htm +++ b/modules/backend/widgets/form/partials/_field_checkboxlist.htm @@ -5,54 +5,86 @@ - 10): ?> - - - : - , - - + previewMode): ?> + - -
-
- + $option): ?> + getId().'_'.$index; + if (!in_array($value, $checkedValues)) continue; + if (is_string($option)) $option = [$option]; + ?> +
+ - previewMode ? 'disabled="disabled"' : '' ?>> - - $option): ?> - getId().'_'.$index; - if (is_string($option)) $option = [$option]; - ?> -
- previewMode ? 'readonly="readonly"' : '' ?> - > - - - -

- -
- - - 10): ?> + + +

+
-
+ + + + + + 10): ?> + + + : + , + + + + +
+
+ + + + + $option): ?> + getId().'_'.$index; + if (is_string($option)) $option = [$option]; + ?> +
+ > + + + +

+ +
+ + + 10): ?> +
+
+ + +