mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +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
437f9e894f
commit
3eb830855a
|
@ -1201,6 +1201,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
default:
|
||||
switch($value['type']) {
|
||||
case 'checkbox':
|
||||
if(isset($value['default']) && !empty($value['name']))
|
||||
echo '<input type="hidden" name="'.$value['name'].'" value="'.$value['default'].'" />';
|
||||
echo '<div class="form-check">';
|
||||
echo '<input'.
|
||||
(!empty($value['type']) ? ' type="'.$value['type'].'"' : '').
|
||||
|
|
Loading…
Reference in New Issue
Block a user