From 5b5b8976cd9262e353daed63b521d209e68974da Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 26 Nov 2024 14:18:16 +0800 Subject: [PATCH] * [task$132545 doing 0.5h 2h] modify radioItems of thinkscore. --- lib/zin/wg/thinkscore/v1.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/zin/wg/thinkscore/v1.php b/lib/zin/wg/thinkscore/v1.php index fc73de74c8..eed2ca0231 100644 --- a/lib/zin/wg/thinkscore/v1.php +++ b/lib/zin/wg/thinkscore/v1.php @@ -42,6 +42,20 @@ class thinkScore extends thinkQuestion for($i=1; $i<=$scoreCount; $i++){$items[] = array('text' => $i, 'value' => $i, 'disabledPrefix' => true);} + foreach ($fields as $field) { + $radioItems[] = array( + div(setClass('my-1 text-md leading-5 break-words'), $field), + thinkBaseCheckbox + ( + set::type('radio'), + set::items($items), + set::name('result[]'), + set::value($result[0] ?? ''), + set::inline(true), + set::disabled(false) + ) + ); + } $detailWg[] = div(setClass('score-content', $scoreSetting == '0' ? 'score-5' : 'score-10'), $radioItems); return $detailWg; }