mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
add new parameter 'addon' used by input fields
This commit is contained in:
parent
7a21fa77b5
commit
2ad448581a
|
@ -1130,6 +1130,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
echo "</div>";
|
||||
break;
|
||||
default:
|
||||
if(!empty($value['addon']))
|
||||
echo '<div class="input-group date">';
|
||||
echo '<input'.
|
||||
(!empty($value['type']) ? ' type="'.$value['type'].'"' : '').
|
||||
(!empty($value['id']) ? ' id="'.$value['id'].'"' : '').
|
||||
|
@ -1145,6 +1147,12 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
foreach($value['attributes'] as $a)
|
||||
echo ' '.$a[0].'="'.$a[1].'"';
|
||||
echo "/>";
|
||||
if(!empty($value['addon'])) {
|
||||
echo '<div class="input-group-append">';
|
||||
echo '<span class="input-group-text">'.$value['addon'].'</span>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user