5use Ubiquity\contents\validation\ValidatorsManager;
6use Ubiquity\orm\OrmUtils;
16 $form->setFields(OrmUtils::getFormAllFields($form->getModel()));
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) {
48 'inputType' =>
'password'
70 'inputType' =>
'number'
80 'inputType' =>
'datetime-local'
89 if ($hasRules && $noPName && $noPType) {