From 8db5dde69d707026c73a059acde8aea65b56fbeb Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 19 Jan 2016 21:57:24 +0100 Subject: [PATCH] Add new parameter 'title' to guide the user The 'title' attribute will render as tooltip in the browser which is useful to provide guidance to the operator. --- lib/HTMLUtils.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php index 3838c35..dce8b8f 100644 --- a/lib/HTMLUtils.php +++ b/lib/HTMLUtils.php @@ -80,6 +80,11 @@ CARD; $additionalInfoString .= " pattern=\"".$inputEntry['pattern']."\""; } + if(isset($inputEntry['title'])) { + + $additionalInfoString .= " title=\"" .$inputEntry['title']."\""; + + } if(!isset($inputEntry['exampleValue'])) $inputEntry['exampleValue'] = ""; $idArg = 'arg-' . urlencode($bridgeName) . '-' . urlencode($parameterName) . '-' . urlencode($inputEntry['identifier']);