Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.inc |
— | — | @@ -224,9 +224,10 @@ |
225 | 225 | static function checkboxesHTML($cur_value, $input_name, $is_mandatory, $is_disabled, $other_args) { |
226 | 226 | global $sfgTabIndex, $sfgFieldNum; |
227 | 227 | |
228 | | - $className = ($is_mandatory) ? "mandatoryField" : "createboxInput"; |
| 228 | + $checkbox_class = ($is_mandatory) ? "mandatoryField" : "createboxInput"; |
| 229 | + $span_class = "checkboxSpan"; |
229 | 230 | if (array_key_exists('class', $other_args)) |
230 | | - $className .= " " . $other_args['class']; |
| 231 | + $span_class .= " " . $other_args['class']; |
231 | 232 | $input_id = "input_$sfgFieldNum"; |
232 | 233 | $info_id = "info_$sfgFieldNum"; |
233 | 234 | $hidden_input_name = $input_name . "[is_list]"; |
— | — | @@ -250,9 +251,7 @@ |
251 | 252 | $cur_input_name = $input_name . "[" . $key . "]"; |
252 | 253 | $checked_text = (in_array($possible_value, $cur_values)) ? 'checked="checked"' : ""; |
253 | 254 | $text .=<<<END |
254 | | - <span class="checkboxSpan"> |
255 | | - <input type="checkbox" id="$input_id" tabindex="$sfgTabIndex" name="$cur_input_name" value="$possible_value" class="$className" $checked_text $disabled_text/> $possible_value |
256 | | - </span> |
| 255 | + <span class="$span_class"><input type="checkbox" id="$input_id" tabindex="$sfgTabIndex" name="$cur_input_name" value="$possible_value" class="$checkbox_class" $checked_text $disabled_text/> $possible_value</span> |
257 | 256 | |
258 | 257 | END; |
259 | 258 | $sfgTabIndex++; |
— | — | @@ -676,6 +675,7 @@ |
677 | 676 | $text .= ' checked="checked"'; |
678 | 677 | $check_set = true; |
679 | 678 | } |
| 679 | + $disabled_text = ($is_disabled) ? "disabled" : ""; |
680 | 680 | $text .= " $disabled_text/> <em>" . wfMsg('sf_editdata_none') . "</em>\n"; |
681 | 681 | } |
682 | 682 | |