mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +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>";
|
echo "</div>";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
if(!empty($value['addon']))
|
||||||
|
echo '<div class="input-group date">';
|
||||||
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'].'"' : '').
|
||||||
|
@ -1145,6 +1147,12 @@ 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 '<div class="input-group-append">';
|
||||||
|
echo '<span class="input-group-text">'.$value['addon'].'</span>';
|
||||||
|
echo '</div>';
|
||||||
|
echo '</div>';
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user