help wip
This commit is contained in:
1 parent
faded38980
commit
48b372c164
24 files changed
+357
-244
No files matched your search
@@ -20,12 +20,13 @@ class CreateProjektInhaltsverzeichnis
|
||||
$text = Textblock::where('id', $value->textblock_id)->first();
|
||||
$inhalt = new ProjektInhaltsverzeichnis;
|
||||
$inhalt->projekte_id = $record->id;
|
||||
$inhalt->inhaltsverzeichnis_id = $value->id;
|
||||
$inhalt->sort = $key;
|
||||
$inhalt->ordnungszahl = $value->ordnungszahl;
|
||||
$inhalt->name = $value->name;
|
||||
$inhalt->name2 = $value->name2;
|
||||
$inhalt->ueberschrift_verbergen = $value->ueberschrift_verbergen;
|
||||
$inhalt->inhaltselement_id = $value->inhaltselement_id;
|
||||
$inhalt->textblock_id = $value->textblock_id;
|
||||
$inhalt->part = $value->part;
|
||||
$inhalt->seite = $value->seite;
|
||||
$inhalt->neue_seite = $value->neue_seite;
|
||||
|
||||
@@ -7,12 +7,14 @@ use Filament\Actions\Action;
|
||||
|
||||
class ShowHelp
|
||||
{
|
||||
public static $helping;
|
||||
|
||||
public static function show($kennung)
|
||||
{
|
||||
$helping = Help::where('kennung', $kennung)->first();
|
||||
|
||||
if (! $helping) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return Action::make('help')
|
||||
->icon('phosphor-question')
|
||||
->tooltip(view('pages.help')->with('helping', $helping))
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Actions\Helper;
|
||||
|
||||
use Filament\Actions\Action;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class ShowHelpInhalt
|
||||
{
|
||||
public static function show()
|
||||
{
|
||||
return Action::make('help')
|
||||
->icon('phosphor-question')
|
||||
->hidden(fn ($record): bool => (! $record->inhaltsverzeichnis->hilfe_titel && ! $record->inhaltsverzeichnis->hilfe_description || ! $record->inhaltsverzeichnis->hilfe_image) ? true : false)
|
||||
->tooltip(fn ($record): View => view('pages.helpinhalt')->with('record', $record))
|
||||
->iconButton();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user