';
$attr = ['class'=>'input'];
if ($form->fields[$fieldName]['type']=='submit') $attr['class'] = 'button is-primary';
if ($form->fields[$fieldName]['type']=='textarea') $attr['class'] = 'textarea';
if ($form->fields[$fieldName]['type']=='checkbox') $attr['class'] = 'checkbox';
echo $F->field($fieldName, $attr);
if (!empty($form->errors[$fieldName])) {
echo '
' . htmlspecialchars($form->errors[$fieldName]) . '
';
}
echo '