Skip to content

Commit

Permalink
Change MarkdownEditor to RichEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
alexPopaCode4 committed May 21, 2024
1 parent 2bee5d5 commit 5fc68a5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use App\Filament\Organizations\Resources\BeneficiaryResource;
use Filament\Forms\Components\Group;
use Filament\Forms\Components\MarkdownEditor;
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Infolists\Components\Group as InfolistGroup;
Expand All @@ -30,7 +30,7 @@ public static function getSchema(): array
->label(__('beneficiary.section.initial_evaluation.labels.moment_of_evaluation'))
->placeholder(__('beneficiary.placeholder.moment_of_evaluation'))
->maxLength(100),
MarkdownEditor::make('description_of_situation')
RichEditor::make('description_of_situation')
->label(__('beneficiary.section.initial_evaluation.labels.description_of_situation'))
->placeholder(__('beneficiary.placeholder.description_of_situation'))
->maxLength(5000),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use App\Infolists\Components\EnumEntry;
use Filament\Forms\Components\Checkbox;
use Filament\Forms\Components\Group;
use Filament\Forms\Components\MarkdownEditor;
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\Section;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Form;
Expand Down Expand Up @@ -83,7 +83,7 @@ public static function getInterventionPlanSchema(): Section
{
return Section::make(__('beneficiary.section.detailed_evaluation.labels.recommendations_for_intervention_plan'))
->schema([
MarkdownEditor::make('recommendations_for_intervention_plan')
RichEditor::make('recommendations_for_intervention_plan')
->helperText(__('beneficiary.helper_text.recommendations_for_intervention_plan'))
->label(__('beneficiary.section.detailed_evaluation.labels.recommendations_for_intervention_plan'))
->placeholder(__('beneficiary.placeholder.recommendations_for_intervention_plan'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use App\Enums\Applicant;
use App\Filament\Organizations\Resources\BeneficiaryResource;
use Filament\Forms\Components\Group;
use Filament\Forms\Components\MarkdownEditor;
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\Section;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\Textarea;
Expand Down Expand Up @@ -53,7 +53,7 @@ public static function getSchema(): array
->label(__('beneficiary.section.detailed_evaluation.labels.date_interval'))
->placeholder(__('beneficiary.placeholder.date_interval'))
->maxLength(100),
MarkdownEditor::make('significant_events')
RichEditor::make('significant_events')
->label(__('beneficiary.section.detailed_evaluation.labels.significant_events'))
->placeholder(__('beneficiary.placeholder.significant_events'))
->maxLength(2000),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use App\Filament\Organizations\Resources\BeneficiaryResource;
use App\Infolists\Components\EnumEntry;
use Filament\Forms\Components\Group;
use Filament\Forms\Components\MarkdownEditor;
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\Select;
use Filament\Forms\Form;
use Filament\Infolists\Components\Group as InfolistGroup;
Expand Down Expand Up @@ -45,7 +45,7 @@ public static function getSchema(): array
->placeholder(__('beneficiary.placeholder.frequency_violence'))
->options(Frequency::options())
->required(),
MarkdownEditor::make('description')
RichEditor::make('description')
->label(__('beneficiary.section.initial_evaluation.labels.description'))
->placeholder(__('beneficiary.placeholder.description'))
->helperText(__('beneficiary.helper_text.violence_description'))
Expand Down

0 comments on commit 5fc68a5

Please sign in to comment.