25 self::addDefaultUIConstraints($form, OrmUtils::getFieldTypes($form->
getModel()), ValidatorsManager::getUIConstraints($form->
getModelInstance()));
35 foreach ($fieldTypes as $property => $type) {
36 $rules = $uiConstraints[$property] ?? [];
37 if ($hasRules = \
count($rules) > 0) {
47 $form->fieldAsInput($property, [
48 'inputType' =>
'password' 53 $form->fieldAsInput($property, $rules);
63 $form->fieldAsCheckbox($property, \array_diff($rules[
'rules'] ?? [], [
69 $form->fieldAsInput($property, [
70 'inputType' =>
'number' 74 $form->fieldAsInput($property, [
79 $form->fieldAsInput($property, [
80 'inputType' =>
'datetime-local' 84 $form->fieldAsTextarea($property, $rules);
89 if ($hasRules && $noPName && $noPType) {
90 $form->fieldAsInput($property, $rules);