From eda24c4ea03fe9168ba420f12316e83393cfceef Mon Sep 17 00:00:00 2001 From: alexPopaCode4 <156655986+alexPopaCode4@users.noreply.github.com> Date: Mon, 9 Sep 2024 15:55:56 +0300 Subject: [PATCH] Limit for short description (#178) --- app/Filament/Resources/OrganisationResource.php | 3 +-- lang/ro/organisation.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Filament/Resources/OrganisationResource.php b/app/Filament/Resources/OrganisationResource.php index 594f002..c8ad72d 100644 --- a/app/Filament/Resources/OrganisationResource.php +++ b/app/Filament/Resources/OrganisationResource.php @@ -31,7 +31,6 @@ use Filament\Resources\Resource; use Filament\Resources\Table; use Filament\Tables; -use Filament\Tables\Columns\IconColumn; use Filament\Tables\Columns\SpatieMediaLibraryImageColumn; use Filament\Tables\Columns\TextColumn; use Filament\Tables\Filters\Layout; @@ -124,7 +123,7 @@ public static function form(Form $form): Form Textarea::make('description') ->label(__('organisation.field.short_description')) - ->maxLength(1000) + ->maxLength(1500) ->rows(2) ->helperText(__('organisation.help.description')) ->required() diff --git a/lang/ro/organisation.php b/lang/ro/organisation.php index 7973438..c4bb908 100644 --- a/lang/ro/organisation.php +++ b/lang/ro/organisation.php @@ -108,7 +108,7 @@ 'help' => [ 'short_description' => 'Descrie organizația ta în 200 - 250 caractere. Descrierea va fi vizibilă în alte aplicații, după caz.', - 'description' => 'Adaugă o descriere a organizației tale (maximum 1000 caractere).', + 'description' => 'Adaugă o descriere a organizației tale (maximum 1500 caractere).', 'logo' => 'Încarcă logo-ul organizației tale, la o calitate cât mai bună.', ],