output additional attributes in formField()

This commit is contained in:
Uwe Steinmann 2018-06-19 08:03:46 +02:00
parent 2fd21064c7
commit a133226bbe

View File

@ -882,7 +882,11 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
(!empty($value['placeholder']) ? ' placeholder="'.$value['placeholder'].'"' : '').
(!empty($value['autocomplete']) ? ' autocomplete="'.$value['autocomplete'].'"' : '').
(!empty($value['checked']) ? ' checked' : '').
(!empty($value['required']) ? ' required' : '').">";
(!empty($value['required']) ? ' required' : '');
if(!empty($value['attributes']) && is_array($value['attributes']))
foreach($vauel['attributes'] as $a)
echo ' '.$a[0].'="'.$a[1].'"';
echo ">";
break;
}
}