standards wip

This commit is contained in:
salam committed 2025-10-10 13:33:29 +02:00
1 parent 4f865b52a6
commit 7eaa8c0da2
32 files changed
+326 -98

No files matched your search

@@ -2,7 +2,10 @@
namespace App\Filament\Resources\Textblocks\Schemas;
use App\Models\TextblockKennung;
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
@@ -14,6 +17,11 @@ class TextblockForm
->components([
TextInput::make('name')
->required(),
Textarea::make('beschreibung')
->afterLabel('Bei gleichen Textblockarten kann hier der Unterschied kurz angerissen werden.'),
Select::make('textblock_kennung_id')
->label('Textblock Art')
->options(TextblockKennung::pluck('name', 'id')),
RichEditor::make('textblock')
->toolbarButtons([
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript'],
@@ -14,6 +14,12 @@ class TextblocksTable
{
return $table
->columns([
TextColumn::make('textblock_kennung.name')
->color('info')
->wrap()
->description(function ($record) {
return new HtmlString($record->beschreibung);
}),
TextColumn::make('name')
->weight(FontWeight::Bold)
->wrap()
@@ -29,6 +29,8 @@ class TextblockResource extends Resource
protected static ?string $pluralModelLabel = 'Textblöcke';
protected static ?int $navigationSort = 2;
public static function form(Schema $schema): Schema
{
return TextblockForm::configure($schema);