mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
if fields of type 'checkbox' have a default value, the will have a hidden input field to set this value
This commit is contained in:
parent
40f2311b91
commit
14a3da7855
|
@ -1217,6 +1217,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
default:
|
||||
switch($value['type']) {
|
||||
default:
|
||||
if(!empty($value['type']) && $value['type'] == 'checkbox' && isset($value['default']) && !empty($value['name']))
|
||||
echo '<input type="hidden" name="'.$value['name'].'" value="'.$value['default'].'" />';
|
||||
if(!empty($value['addon']))
|
||||
echo "<span class=\"input-append\">";
|
||||
echo '<input'.
|
||||
|
|
Loading…
Reference in New Issue
Block a user