mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 05:01:43 +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:
|
default:
|
||||||
switch($value['type']) {
|
switch($value['type']) {
|
||||||
case 'checkbox':
|
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 '<div class="form-check">';
|
||||||
echo '<input'.
|
echo '<input'.
|
||||||
(!empty($value['type']) ? ' type="'.$value['type'].'"' : '').
|
(!empty($value['type']) ? ' type="'.$value['type'].'"' : '').
|
||||||
|
|
Loading…
Reference in New Issue
Block a user