wip controll and repair
This commit is contained in:
1 parent
4a509c6a16
commit
3dd1dad42f
19 files changed
+182
-91
No files matched your search
@@ -155,7 +155,7 @@ class EditProjekte extends EditRecord
|
||||
->color('success')
|
||||
->label('Daten reparieren')
|
||||
->modalIcon('phosphor-arrow-fat-line-right-fill')
|
||||
->modalDescription( new HtmlString('<ol class="list-decimal"><li>Bei geklonten Projekten werden Änderungen vom originalen <u>Objekt</u> und <u>Objekt im Detail</u> übernommen.</li><li>Bei geklonten Projekten werden gelöschte <u>Objekt</u> und <u>Objekt im Detail</u> ergänzt.</li><li><u>Objekt im Detail</u> ohne Verbindung zum <u>Objekt</u> werden gelöscht.</li><li>Doppelte <u>Objekt</u> oder <u>Objekt im Detail</u> werden gelöscht.</li></ol>'))
|
||||
->modalDescription( self::reparierenText())
|
||||
// ->hidden(fn ($record): bool => ! $record->cloned_from_id)
|
||||
->action(fn ($record) => Reparieren::run($record))
|
||||
->icon('phosphor-arrow-fat-line-right-fill'),
|
||||
@@ -173,4 +173,23 @@ class EditProjekte extends EditRecord
|
||||
{
|
||||
return 'Projekt Änderungen gespeichert';
|
||||
}
|
||||
|
||||
protected function reparierenText(): ?HtmlString
|
||||
{
|
||||
$txt = '<div class="font-bold">Geklonte Projekte</div>';
|
||||
$txt .= '<ol class="list-decimal">';
|
||||
$txt .= '<li>Es werden Änderungen vom originalen <u>Objekt</u> und <u>Objekt im Detail</u> übernommen.</li>';
|
||||
$txt .= '<li>Es werden gelöschte <u>Objekt</u> und <u>Objekt im Detail</u> ergänzt.</li>';
|
||||
$txt .= '<li>Elemente ohne Verbindung zum Originale werden gelöscht.</li>';
|
||||
$txt .= '</ol>';
|
||||
$txt .= '<div class="font-bold">Alle Projekte</div>';
|
||||
$txt .= '<ol class="list-decimal">';
|
||||
$txt .= '<li><u>Objekt</u> ohne verbundene <u>Objekt im Detail</u> werden gelöscht.</li>';
|
||||
$txt .= '<li><u>Objekt im Detail</u> ohne Verbindung zu einem <u>Objekt</u> werden gelöscht.</li>';
|
||||
$txt .= '<li>Manuell hinzugefügte Elemente werden nicht gelöscht.</li>';
|
||||
// $txt .= '<li>Doppelte <u>Objekt</u> oder <u>Objekt im Detail</u> werden gelöscht.</li>';
|
||||
$txt .= '</ol>';
|
||||
|
||||
return new HtmlString($txt);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user