Add User definition

This commit is contained in:
Samuel Lorch 2023-11-04 15:00:49 +01:00
parent d264624e35
commit 963edbbbc1

View file

@ -399,19 +399,11 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
name: 'System', name: 'System',
'users': { 'users': {
name: 'User', name: 'User',
validationSchema: toFormValidator( fields: {
zod.object({ name: { is: 'TextBox', label: 'Name'},
}), password: { is: 'TextBox', label: 'Password'},
), comment: { is: 'MultilineTextBox', label: 'Comment'},
sections: [
{
fields: [
{ key: 'name', label: 'Name', as: 'TextBox' },
{ key: 'password', label: 'Password', as: 'TextBox', props: { type: 'password' } },
{ key: 'comment', label: 'Comment', as: 'MultilineTextBox' },
],
}, },
],
}, },
}, },
}; };