mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +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',
|
||||
'users': {
|
||||
name: 'User',
|
||||
validationSchema: toFormValidator(
|
||||
zod.object({
|
||||
}),
|
||||
),
|
||||
sections: [
|
||||
{
|
||||
fields: [
|
||||
{ key: 'name', label: 'Name', as: 'TextBox' },
|
||||
{ key: 'password', label: 'Password', as: 'TextBox', props: { type: 'password' } },
|
||||
{ key: 'comment', label: 'Comment', as: 'MultilineTextBox' },
|
||||
],
|
||||
},
|
||||
],
|
||||
fields: {
|
||||
name: { is: 'TextBox', label: 'Name'},
|
||||
password: { is: 'TextBox', label: 'Password'},
|
||||
comment: { is: 'MultilineTextBox', label: 'Comment'},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
Loading…
Add table
Reference in a new issue