wip
This commit is contained in:
1 parent
003b2c7372
commit
717a993bd6
9 files changed
+37
-58
No files matched your search
@@ -14,6 +14,8 @@ class Platzhalter
|
||||
$platzhalter['###OFFIZIELLER_NAME###'] = PdfGenerator::$projekt->offizieller_name;
|
||||
$platzhalter['###ORT###'] = PdfGenerator::$projekt->ort;
|
||||
$platzhalter['###DATUM###'] = PdfGenerator::$projekt->erstellung;
|
||||
$platzhalter['###GUTACHTER###'] = PdfGenerator::$gutachter->company;
|
||||
$platzhalter['###AUFTRAGGEBER###'] = PdfGenerator::$auftraggeber->company;
|
||||
|
||||
return $platzhalter;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,9 @@ class AuftraggeberForm
|
||||
->schema([
|
||||
TextInput::make('company')
|
||||
->label('Firma')
|
||||
->belowContent([
|
||||
'Kann als Platzhalter "###AUFTRAGGEBER###" im Gutachten verwendet werden.',
|
||||
])
|
||||
->required(),
|
||||
TextInput::make('title')
|
||||
->label('Titel'),
|
||||
|
||||
@@ -30,7 +30,7 @@ class GutachterForm
|
||||
->schema([
|
||||
TextInput::make('company')
|
||||
->belowContent([
|
||||
'Kann mit "###FIRMA###" im Gutachten verwendet werden.',
|
||||
'Kann als Platzhalter "###GUTACHTER###" im Gutachten verwendet werden.',
|
||||
])
|
||||
->label('Firma')
|
||||
->required(),
|
||||
@@ -118,10 +118,8 @@ class GutachterForm
|
||||
'#e12afb' => 'Fuchisa',
|
||||
'#f6339a' => 'Rosa',
|
||||
'#ff2056' => 'Rose',
|
||||
'#a6a09b' => 'Steingrau Hell',
|
||||
'#44403b' => 'Steingrau Dunkel',
|
||||
'#cad5e2' => 'Schiefer Hell',
|
||||
'#314158' => 'Schiefer Dunkel',
|
||||
'#a6a09b' => 'Hellgrau',
|
||||
'#314158' => 'Dunkelgrau',
|
||||
])
|
||||
->label('Gutachter am Deckblatt')
|
||||
->afterLabel([ShowHelp::show('gutachter_am_deckblatt')])
|
||||
|
||||
@@ -23,11 +23,11 @@ class HelpResource extends Resource
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = 'phosphor-question';
|
||||
|
||||
protected static ?string $navigationLabel = 'Allgemein';
|
||||
protected static ?string $navigationLabel = 'Hilfe';
|
||||
|
||||
protected static ?string $modelLabel = 'Allgemein';
|
||||
protected static ?string $modelLabel = 'Hilfe';
|
||||
|
||||
protected static ?string $pluralModelLabel = 'Allgemein';
|
||||
protected static ?string $pluralModelLabel = 'Hilfen';
|
||||
|
||||
protected static ?int $navigationSort = 5;
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use BezhanSalleh\FilamentShield\Commands;
|
||||
use BezhanSalleh\FilamentShield\Facades\FilamentShield;
|
||||
use Carbon\Carbon;
|
||||
use Filament\Support\Colors\Color;
|
||||
use Filament\Support\Facades\FilamentColor;
|
||||
@@ -27,6 +29,16 @@ class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
Carbon::setLocale(app()->getLocale());
|
||||
|
||||
// individually prohibit commands
|
||||
// Commands\GenerateCommand::prohibit($this->app->isProduction());
|
||||
// Commands\InstallCommand::prohibit($this->app->isProduction());
|
||||
// Commands\PublishCommand::prohibit($this->app->isProduction());
|
||||
// Commands\SetupCommand::prohibit($this->app->isProduction());
|
||||
// Commands\SeederCommand::prohibit($this->app->isProduction());
|
||||
// Commands\SuperAdminCommand::prohibit($this->app->isProduction());
|
||||
// or prohibit the above commands all at once
|
||||
FilamentShield::prohibitDestructiveCommands($this->app->isProduction());
|
||||
|
||||
FilamentColor::register([
|
||||
'danger' => Color::Red,
|
||||
'gray' => Color::Zinc,
|
||||
|
||||
Reference in new issue
Block a user