wip calculatore
This commit is contained in:
1 parent
29de0c2c6c
commit
272e5b7d3a
6 files changed
+56
-53
No files matched your search
@@ -66,11 +66,8 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
||||
|
||||
public function getHeadingTable(): HtmlString
|
||||
{
|
||||
return new HtmlString('<div class="text-xl w-full">'.$this->ss_team_name.'</div>
|
||||
return new HtmlString('<div class="text-xl w-full">' . $this->ss_team_name . '</div>
|
||||
<div class="text-[11px] p-0 flex flex-row gap-3 font-bold font-mono" style="position: relative; left: -2px; bottom: -13px;">
|
||||
<div>Foot</div>
|
||||
<div>Evt</div>
|
||||
<div>Øm</div>
|
||||
<div>Gls</div>
|
||||
<div>Crn</div>
|
||||
<div>Fls</div>
|
||||
@@ -78,6 +75,9 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
||||
<div>Snt</div>
|
||||
<div>Tsh</div>
|
||||
<div>Crd</div>
|
||||
<div>Foot</div>
|
||||
<div>Evt</div>
|
||||
<div>Øm</div>
|
||||
</div>');
|
||||
}
|
||||
|
||||
@@ -90,15 +90,15 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
||||
->close(),
|
||||
Action::make('reset')
|
||||
->icon('phosphor-arrows-clockwise')
|
||||
->action(fn () => $this->clearAll()),
|
||||
->action(fn() => $this->clearAll()),
|
||||
Action::make('calculate')
|
||||
->icon('phosphor-calculator')
|
||||
->disabled($this->calculationDisabled)
|
||||
->action(fn () => $this->calculateAspg()),
|
||||
->action(fn() => $this->calculateAspg()),
|
||||
Action::make('download')
|
||||
->icon('phosphor-download')
|
||||
->disabled($this->downloadDisabled)
|
||||
->action(fn () => $this->downloadResult()),
|
||||
->action(fn() => $this->downloadResult()),
|
||||
])
|
||||
/**
|
||||
* WICHTIG: Da Filament v5 zwingend eine Query braucht, nutzen wir ein
|
||||
@@ -112,7 +112,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
||||
->columns([
|
||||
ViewColumn::make('drag_card')
|
||||
->columnSpanFull()
|
||||
->label(fn () => $this->getHeadingTable())
|
||||
->label(fn() => $this->getHeadingTable())
|
||||
->view('filament.tables.columns.drag-card'),
|
||||
])
|
||||
->filters([
|
||||
@@ -214,7 +214,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
||||
unset($row['pcolor']);
|
||||
unset($row['ecolor']);
|
||||
unset($row['info']);
|
||||
$copystring .= implode("\t", $row)."\n";
|
||||
$copystring .= implode("\t", $row) . "\n";
|
||||
}
|
||||
$this->js("navigator.clipboard.writeText(`$copystring`)");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user