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

@@ -79,32 +79,38 @@ public function fields(NovaRequest $request): array
BelongsTo::make('Session', 'session', SessionResource::class)
->sortable()
->filterable()
->rules('required'),
->readonly()
->help('The questionnaire session this answer belongs to.'),
BelongsTo::make('Question', 'question', QuestionResource::class)
->sortable()
->filterable()
->rules('required'),
->readonly()
->help('The question that was answered.'),
Text::make('Value')
->sortable()
->filterable()
->copyable()
->rules('nullable', 'max:255'),
->readonly()
->help('The selected answer: "yes", "no", or "not_applicable". Empty for open text questions.'),
Textarea::make('Text Value')
->alwaysShow()
->rules('nullable'),
->readonly()
->help('Any written details or free text the user provided for this question.'),
DateTime::make('Created At')
->exceptOnForms()
->sortable()
->filterable(),
->filterable()
->help('When this answer was first saved.'),
DateTime::make('Updated At')
->exceptOnForms()
->sortable()
->filterable(),
->filterable()
->help('When this answer was last changed.'),
];
}