adds help texts

This commit is contained in:
2026-02-16 16:00:16 +01:00
parent 514f1cb483
commit 78c51d55b5
9 changed files with 95 additions and 46 deletions

View File

@@ -51,44 +51,53 @@ public function fields(NovaRequest $request): array
BelongsTo::make('Role', 'role', RoleResource::class)
->sortable()
->filterable(),
->filterable()
->help('The user\'s role, which controls what they can access in the admin panel.'),
Text::make('Name')
->sortable()
->rules('required', 'max:255'),
->rules('required', 'max:255')
->help('The user\'s full name, imported from Azure AD when they first log in.'),
Text::make('Email')
->sortable()
->rules('required', 'email', 'max:254')
->creationRules('unique:users,email')
->updateRules('unique:users,email,{{resourceId}}'),
->updateRules('unique:users,email,{{resourceId}}')
->help('The user\'s email address, used to identify them when logging in via Azure AD.'),
Text::make('Azure ID', 'azure_id')
->onlyOnDetail()
->copyable(),
->copyable()
->help('A unique identifier from Azure AD. Set automatically when the user logs in.'),
Text::make('Photo', 'photo')
->onlyOnDetail()
->copyable(),
->copyable()
->help('A link to the user\'s profile photo from Azure AD.'),
Text::make('Job Title', 'job_title')
->sortable()
->filterable()
->copyable(),
->copyable()
->help('The user\'s job title, imported from Azure AD.'),
Text::make('Department')
->sortable()
->filterable()
->copyable(),
->copyable()
->help('The department the user belongs to, imported from Azure AD.'),
Text::make('Phone')
->sortable()
->copyable(),
->copyable()
->help('The user\'s phone number, imported from Azure AD.'),
Password::make('Password')
->onlyOnForms()
->creationRules($this->passwordRules())
->updateRules($this->optionalPasswordRules()),
->updateRules($this->optionalPasswordRules())
->help('Only needed for admin panel access. Regular users log in via Azure AD and do not need a password.'),
];
}