wip
This commit is contained in:
1 parent
16c0aa24fe
commit
4a509c6a16
16 files changed
+168
-82
No files matched your search
+7
-1
@@ -33,6 +33,7 @@ use Filament\Tables\Filters\Filter;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use ToneGabes\BetterOptions\Forms\Components\RadioCards;
|
||||
use ToneGabes\Filament\Icons\Enums\Phosphor;
|
||||
|
||||
class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
{
|
||||
@@ -360,7 +361,7 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
->columns(3)
|
||||
->iconAfter()
|
||||
->indicatorBefore()
|
||||
->hiddenIcon()
|
||||
// ->hiddenIcon()
|
||||
->hiddenLabel()
|
||||
->default('standard')
|
||||
->options([
|
||||
@@ -368,6 +369,11 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
'nutzwerte' => 'Nutzwertberechnung',
|
||||
'paragraph' => 'Auszug Gutachten',
|
||||
])
|
||||
->icons([
|
||||
'standard' => Phosphor::ListNumbers->thin(),
|
||||
'nutzwerte' => Phosphor::Table->thin(),
|
||||
'paragraph' => Phosphor::Paragraph->thin(),
|
||||
])
|
||||
->idleIndicator('phosphor-circle')
|
||||
->selectedIndicator('phosphor-circle-fill')
|
||||
->descriptions([
|
||||
|
||||
+3
@@ -11,6 +11,7 @@ use Filament\Actions\CreateAction;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Forms\Components\Hidden;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
@@ -43,6 +44,7 @@ class ProjektObjekteImDetailRelationManager extends RelationManager
|
||||
|
||||
return $schema
|
||||
->components([
|
||||
Hidden::make('added_manuel')->default(1),
|
||||
Select::make('projekt_objekte_id')
|
||||
->relationship('top_nummer', 'top_nummer', fn (Builder $query) => $query->where('projekte_id', $this->getOwnerRecord()->id))
|
||||
->required()
|
||||
@@ -78,6 +80,7 @@ class ProjektObjekteImDetailRelationManager extends RelationManager
|
||||
->recordTitleAttribute('top_nummer')
|
||||
->defaultPaginationPageOption(50)
|
||||
->columns([
|
||||
TextColumn::make('projekt_objekte_id')->label('Parent '),
|
||||
TextColumn::make('top_nummer.top_nummer')
|
||||
->sortable()
|
||||
->extraAttributes(['pointer-events' => 'none'])
|
||||
|
||||
@@ -12,6 +12,7 @@ use Filament\Actions\CreateAction;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Forms\Components\Hidden;
|
||||
use Filament\Forms\Components\Radio;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
@@ -47,6 +48,7 @@ class ProjektObjekteRelationManager extends RelationManager
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
Hidden::make('added_manuel')->default(1),
|
||||
TextInput::make('top_nummer')
|
||||
->label('Top Nummer')
|
||||
->required()
|
||||
@@ -60,12 +62,13 @@ class ProjektObjekteRelationManager extends RelationManager
|
||||
$spalten = ProjektMerkmale::where('projekte_id', $this->ownerRecord->id)->pluck('name', 'code');
|
||||
|
||||
return $table
|
||||
// ->striped()
|
||||
->striped()
|
||||
->emptyStateDescription(new HtmlString('Bitte Projekt freischalten und unter <b class="text-primary-600">Objekte im Detail</b> Daten hochladen.'))
|
||||
->recordTitleAttribute('top_nummer')
|
||||
->description(new HtmlString('<span class="flex gap-1.5">Orientierungen, Zu- und Abschläge, '.Blade::render('<x-lucide-locate-off class="w-3 h-3 mt-1" />').' Nicht in Orientierung</span>'))
|
||||
->defaultPaginationPageOption(50)
|
||||
->columns([
|
||||
TextColumn::make('id')->width('1rem'),
|
||||
TextColumn::make('top_nummer')
|
||||
->alignCenter()
|
||||
->sortable()
|
||||
|
||||
Reference in new issue
Block a user