add new parameter 'addon' in formField() used by input fields

This commit is contained in:
Uwe Steinmann 2022-02-11 07:07:19 +01:00
parent fb29402194
commit 7a21fa77b5

View File

@ -1133,6 +1133,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
default:
switch($value['type']) {
default:
if(!empty($value['addon']))
echo "<span class=\"input-append\">";
echo '<input'.
(!empty($value['type']) ? ' type="'.$value['type'].'"' : '').
(!empty($value['id']) ? ' id="'.$value['id'].'"' : '').
@ -1148,6 +1150,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
foreach($value['attributes'] as $a)
echo ' '.$a[0].'="'.$a[1].'"';
echo "/>";
if(!empty($value['addon'])) {
echo '<span class="add-on">'.$value['addon'].'</span>';
echo "</span>\n";
}
break;
}
break;