mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-07-15 08:58:10 +00:00
add new parameter 'addon' in formField() used by input fields
This commit is contained in:
parent
fb29402194
commit
7a21fa77b5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user