Skip to content

Commit

Permalink
refactor: update description form component, add max length
Browse files Browse the repository at this point in the history
  • Loading branch information
daurensky committed Feb 29, 2024
1 parent f53b419 commit 9ad6bbd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/UI/Filament/Resources/SocialProjectResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ public static function form(Forms\Form $form): Forms\Form
Forms\Components\TextInput::make('title.'.$locale)
->label(__('admin-kit-social-projects::social-projects.resource.title'))
->required(),
Forms\Components\TextInput::make('subtitle.'.$locale)
->label(__('admin-kit-social-projects::social-projects.resource.subtitle')),
Forms\Components\Textarea::make('subtitle.'.$locale)
->label(__('admin-kit-social-projects::social-projects.resource.subtitle'))
->rows(5)
->maxLength(254),
])),
])
->columns(1);
Expand Down

0 comments on commit 9ad6bbd

Please sign in to comment.