raume alle berechnungen
This commit is contained in:
1 parent
4a71dcdac8
commit
77f8b3c047
2 files changed
+57
-7
No files matched your search
+12
-2
@@ -27,13 +27,20 @@ class AllgemeinflaechensRelationManager extends RelationManager
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
|
||||
TextInput::make('geschoss')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
TextInput::make('raumart')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
]);
|
||||
TextInput::make('flaeche')
|
||||
->suffix('m²')
|
||||
->numeric()
|
||||
->label('Fläche')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
])->columns(3);
|
||||
}
|
||||
|
||||
public function table(Table $table): Table
|
||||
@@ -44,11 +51,12 @@ class AllgemeinflaechensRelationManager extends RelationManager
|
||||
TextColumn::make('geschoss')->searchable(),
|
||||
TextColumn::make('raumart')->searchable(),
|
||||
TextInputColumn::make('flaeche')
|
||||
->suffix('m²')
|
||||
->width('2rem')
|
||||
->rules(['required', 'price' => 'decimal:2'])
|
||||
->alignment('right')
|
||||
// ->formatStateUsing(fn ($state) => "{$state} m²")
|
||||
->label('Fläche')
|
||||
// ->numeric(decimalPlaces: 2)
|
||||
->searchable(),
|
||||
])
|
||||
->filters([
|
||||
@@ -59,6 +67,8 @@ class AllgemeinflaechensRelationManager extends RelationManager
|
||||
->icon('phosphor-file-plus'),
|
||||
ImportAction::make()
|
||||
->importer(AllgemeinflaechenImporter::class)
|
||||
->modalHeading('Allgemeinflächen Import')
|
||||
// ->modalSubmitActionLabel('Yes, delete it')
|
||||
->label('Hochladen')
|
||||
->icon('phosphor-upload')
|
||||
->color('info')
|
||||
|
||||
Reference in new issue
Block a user