mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-13 11:38:21 +00:00
Add User definition
This commit is contained in:
parent
d264624e35
commit
963edbbbc1
1 changed files with 5 additions and 13 deletions
|
@ -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' },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
Loading…
Add table
Reference in a new issue