Skip to content

Commit

Permalink
Merge pull request #460 from code4romania/438-replace-form-field-text…
Browse files Browse the repository at this point in the history
…area-with-rich-text-editor

Change Textarea to RichEditor in psychological and legal assistance c…
  • Loading branch information
gheorghelupu17 authored Dec 30, 2024
2 parents f6685b9 + c96dbd6 commit 376eb80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
use Filament\Forms\Components\Group;
use Filament\Forms\Components\Placeholder;
use Filament\Forms\Components\Radio;
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\Section;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
Expand Down Expand Up @@ -181,7 +182,7 @@ public static function getLegalAssistanceForm(): array
Section::make(__('intervention_plan.headings.final_observations'))
->maxWidth('3xl')
->schema([
Textarea::make('data.observations')
RichEditor::make('data.observations')
->label(__('intervention_plan.labels.final_observation'))
->maxLength(2500)
->columnSpanFull(),
Expand Down Expand Up @@ -383,7 +384,7 @@ public static function getSchemaForPsychologicalAssistance(): array
Section::make(__('intervention_plan.headings.psychological_evaluation'))
->maxWidth('3xl')
->schema([
Textarea::make('data.first_meeting_psychological_evaluation')
RichEditor::make('data.first_meeting_psychological_evaluation')
->label(__('intervention_plan.labels.first_meeting_psychological_evaluation'))
->maxLength(5000),
]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ private function getSchemaForLegalAssistance(): array
->schema([
TextEntry::make('data.observations')
->label(__('intervention_plan.labels.final_observation'))
->columnSpanFull(),
->columnSpanFull()
->html(),
]),

];
Expand Down Expand Up @@ -269,7 +270,8 @@ private function getSchemaForPsychologicalAssistance(): array
Section::make(__('intervention_plan.headings.psychological_evaluation'))
->schema([
TextEntry::make('data.first_meeting_psychological_evaluation')
->label(__('intervention_plan.labels.first_meeting_psychological_evaluation')),
->label(__('intervention_plan.labels.first_meeting_psychological_evaluation'))
->html(),
]),
];
}
Expand Down

0 comments on commit 376eb80

Please sign in to comment.