wip methods

This commit is contained in:
salam committed 2026-07-26 12:10:28 +02:00
1 parent de41dd5187
commit 2ca6d0c48d
6 files changed
+30 -33

No files matched your search

@@ -2,7 +2,7 @@
namespace App\Filament\Clusters\Administration\Methodes\Schemas;
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
@@ -13,12 +13,7 @@ class MethodeForm
return $schema
->components([
TextInput::make('name')->required(),
RichEditor::make('description')
->label('Beschreibung')
->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;'])
->toolbarButtons([
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript'],
]),
Textarea::make('description')->label('Beschreibung')->rows(6),
])->columns(1);
}
}
@@ -6,7 +6,6 @@ use Filament\Actions\EditAction;
use Filament\Support\Enums\FontWeight;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Table;
use Illuminate\Support\HtmlString;
class MethodesTable
{
@@ -14,13 +13,15 @@ class MethodesTable
{
return $table
->paginated(false)
->defaultSort('order', direction: 'asc')
->columns([
TextColumn::make('id'),
TextColumn::make('name')
->color(fn($record) => $record->color)
->weight(FontWeight::Bold)
->wrap()
->description(function ($record) {
return new HtmlString($record->description);
return $record->description;
}),
])
->recordActions([