wip
This commit is contained in:
1 parent
17ed7b7f8f
commit
c9cac0903a
24 files changed
+122
-4431
No files matched your search
@@ -163,22 +163,28 @@ class EditProjekte extends EditRecord
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->evaluation_gutachten) ? true : false)
|
||||
->label('Standard Texte')
|
||||
->icon('icon-pdf')
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'type' => 'standard', 'mode' => 'new']))
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'part' => 'standard']))
|
||||
->openUrlInNewTab(),
|
||||
/**
|
||||
* NUTZWERTE
|
||||
*/
|
||||
Action::make('make-nutzwerte')
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || $record->pdf_nutzwerte_status || ! $record->evaluation_gutachten) ? true : false)
|
||||
->label('Nutzwerte Berechnen')
|
||||
->icon('phosphor-calculator')
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'type' => 'nutzwerte', 'mode' => 'new']))
|
||||
->openUrlInNewTab(),
|
||||
Action::make('make-nutzwerte')
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->pdf_nutzwerte_status || ! $record->evaluation_gutachten) ? true : false)
|
||||
->label('Nutzwerte')
|
||||
Action::make('make-nutzwerte-file')
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->evaluation_gutachten) ? true : false)
|
||||
->label('Nutzwertberechnung')
|
||||
->icon('icon-pdf')
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'type' => 'nutzwerte', 'mode' => 'file']))
|
||||
->action(function ($record) {
|
||||
if (! $record->nutzwerte_startseite) {
|
||||
Notification::make()
|
||||
->title('Nutzwerte Download')
|
||||
->info()
|
||||
->icon('heroicon-o-exclamation-triangle')
|
||||
->duration(10000)
|
||||
->body('Um die aktuelle Seitenzahl zu generieren bitte zuerst "Standart Texte" laden.')
|
||||
->send();
|
||||
} else {
|
||||
return redirect()->route('pdf', ['record' => $record, 'part' => 'nutzwerte']);
|
||||
}
|
||||
})
|
||||
->openUrlInNewTab(),
|
||||
/**
|
||||
* PARAGRAPH 6
|
||||
@@ -187,7 +193,7 @@ class EditProjekte extends EditRecord
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->evaluation_gutachten) ? true : false)
|
||||
->label('Auszug gem. §6 ')
|
||||
->icon('icon-pdf')
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'type' => 'paragraph', 'mode' => 'new']))
|
||||
->url(fn ($record) => route('pdf', ['record' => $record, 'part' => 'paragraph']))
|
||||
->openUrlInNewTab(),
|
||||
])->label('Pdf')
|
||||
->icon('phosphor-download')
|
||||
@@ -201,13 +207,13 @@ class EditProjekte extends EditRecord
|
||||
Action::make('excel-nutzwerte')
|
||||
->label('Nutzfläche & Nutzwerte')
|
||||
->icon('icon-excel')
|
||||
->url(fn ($record) => route('excel', ['record' => $record, 'type' => 'excel-nutzwerte']))
|
||||
->url(fn ($record) => route('excel', ['record' => $record, 'part' => 'excel-nutzwerte']))
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->evaluation_gutachten) ? true : false)
|
||||
->openUrlInNewTab(),
|
||||
Action::make('excel-aufstellung')
|
||||
->label('Nutzflächen Aufstellung')
|
||||
->icon('icon-excel')
|
||||
->url(fn ($record) => route('excel', ['record' => $record, 'type' => 'excel-aufstellung']))
|
||||
->url(fn ($record) => route('excel', ['record' => $record, 'part' => 'excel-aufstellung']))
|
||||
->hidden(fn ($record): bool => (! $record->bezahlt_am || ! $record->evaluation_gutachten) ? true : false)
|
||||
->openUrlInNewTab(),
|
||||
])->label('Excel')
|
||||
|
||||
@@ -85,17 +85,11 @@ class ProjekteForm
|
||||
RichEditor::make('beschreibung')
|
||||
->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;'])
|
||||
->toolbarButtons([
|
||||
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript', 'link'],
|
||||
['alignStart', 'alignCenter', 'alignEnd', 'horizontalRule'],
|
||||
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript', 'link', 'textColor', 'clearFormatting'],
|
||||
['alignStart', 'alignCenter', 'alignEnd'],
|
||||
['bulletList', 'orderedList', 'table'],
|
||||
['undo', 'redo'],
|
||||
])->floatingToolbars([
|
||||
'paragraph' => [
|
||||
'bold', 'italic', 'underline', 'strike', 'subscript', 'superscript',
|
||||
],
|
||||
'heading' => [
|
||||
'h1', 'h2', 'h3',
|
||||
],
|
||||
'table' => [
|
||||
'tableAddColumnBefore', 'tableAddColumnAfter', 'tableDeleteColumn',
|
||||
'tableAddRowBefore', 'tableAddRowAfter', 'tableDeleteRow',
|
||||
|
||||
Reference in new issue
Block a user