This commit is contained in:
kali
2024-05-21 15:53:19 +03:00
parent 8e13f4a425
commit eb361ff002
13 changed files with 80 additions and 54 deletions

View File

@ -22,4 +22,18 @@ class InputTypeModel extends Model
protected $hidden = [
];
public static function getViewNameByTypeId(int $id): ?string
{
$fields = [
1 => '_checkBox',
2 => '_text_input',
3 => '_textarea',
4 => '_radioButton',
5 => '_button',
6 => '_select'
];
return $fields[$id] ?? null;
}
}