diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php index 1a94771..8d39dc5 100644 --- a/lib/HTMLUtils.php +++ b/lib/HTMLUtils.php @@ -85,23 +85,32 @@ CARD; if(!isset($inputEntry['exampleValue'])) $inputEntry['exampleValue'] = ''; + if(!isset($inputEntry['defaultValue'])) + $inputEntry['defaultValue'] = ''; + $idArg = 'arg-' . urlencode($bridgeName) . '-' . urlencode($parameterName) . '-' . urlencode($inputEntry['identifier']); $card .= '' . PHP_EOL; if(!isset($inputEntry['type']) || $inputEntry['type'] == 'text') { - $card .= '
' . PHP_EOL; + $card .= '
' . PHP_EOL; } else if($inputEntry['type'] == 'number') { - $card .= '
' . PHP_EOL; + $card .= '
' . PHP_EOL; } else if($inputEntry['type'] == 'list') { $card .= '
'; } else if($inputEntry['type'] == 'checkbox') { - $card .= '
' . PHP_EOL; + if($inputEntry['defaultValue'] === 'checked') + $card .= '
' . PHP_EOL; + else + $card .= '
' . PHP_EOL; } }