mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-12-11 18:12:50 +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:
|
default:
|
||||||
switch($value['type']) {
|
switch($value['type']) {
|
||||||
default:
|
default:
|
||||||
|
if(!empty($value['addon']))
|
||||||
|
echo "<span class=\"input-append\">";
|
||||||
echo '<input'.
|
echo '<input'.
|
||||||
(!empty($value['type']) ? ' type="'.$value['type'].'"' : '').
|
(!empty($value['type']) ? ' type="'.$value['type'].'"' : '').
|
||||||
(!empty($value['id']) ? ' id="'.$value['id'].'"' : '').
|
(!empty($value['id']) ? ' id="'.$value['id'].'"' : '').
|
||||||
|
|
@ -1148,6 +1150,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
foreach($value['attributes'] as $a)
|
foreach($value['attributes'] as $a)
|
||||||
echo ' '.$a[0].'="'.$a[1].'"';
|
echo ' '.$a[0].'="'.$a[1].'"';
|
||||||
echo "/>";
|
echo "/>";
|
||||||
|
if(!empty($value['addon'])) {
|
||||||
|
echo '<span class="add-on">'.$value['addon'].'</span>';
|
||||||
|
echo "</span>\n";
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user