wip
This commit is contained in:
1 parent
9881d8c37b
commit
6bf10b25bd
21 files changed
+245
-178
No files matched your search
@@ -17,6 +17,7 @@ class InhaltsverzeichnisTable
|
||||
return $table
|
||||
->heading('Inhaltsverzeichnis')
|
||||
->description('Wird als Vorlage bei den Gutachten verwendet.')
|
||||
// ->recordClasses(fn ($record) => $record->part == 'gutachten' ? 'border-l-4' : 'border-l-4')
|
||||
->columns([
|
||||
TextColumn::make('ordnungszahl')
|
||||
->label('Index')
|
||||
|
||||
@@ -80,7 +80,7 @@ class EditProjekte extends EditRecord
|
||||
->disabled(fn ($record): bool => ! $record->pdf_gutachten_status)
|
||||
->hidden(fn ($record): bool => $record->bezahlt_am ? false : true)
|
||||
->color(fn ($record): string => match ($record->pdf_gutachten_status) {
|
||||
1 => 'info',
|
||||
1 => 'primary',
|
||||
default => 'gray',
|
||||
})
|
||||
->label('Öffnen')
|
||||
@@ -90,7 +90,7 @@ class EditProjekte extends EditRecord
|
||||
Action::make('make_gutachten')
|
||||
->hidden(fn ($record): bool => $record->bezahlt_am ? false : true)
|
||||
->color(fn ($record): string => match ($record->evaluation_gutachten) {
|
||||
1 => 'info',
|
||||
1 => 'primary',
|
||||
default => 'gray',
|
||||
})
|
||||
->disabled(fn ($record): bool => $record->evaluation_gutachten ? false : true)
|
||||
@@ -110,7 +110,7 @@ class EditProjekte extends EditRecord
|
||||
->disabled(fn ($record): bool => ! $record->pdf_nutzwerte_status)
|
||||
->hidden(fn ($record): bool => $record->bezahlt_am ? false : true)
|
||||
->color(fn ($record): string => match ($record->pdf_gutachten_status) {
|
||||
1 => 'info',
|
||||
1 => 'primary',
|
||||
default => 'gray',
|
||||
})
|
||||
->label('Öffnen')
|
||||
@@ -122,12 +122,16 @@ class EditProjekte extends EditRecord
|
||||
->disabled(fn ($record): bool => $record->evaluation_gutachten ? false : true)
|
||||
->label('Berechnen')
|
||||
->icon('phosphor-calculator')
|
||||
->color(fn ($record): string => match ($record->evaluation_gutachten) {
|
||||
1 => 'primary',
|
||||
default => 'gray',
|
||||
})
|
||||
->url(fn ($record) => route('nutzwerte.download', ['record' => $record, 'mode' => 'new']))
|
||||
->openUrlInNewTab(),
|
||||
])->label('Nutzwerte')
|
||||
->icon('heroicon-m-ellipsis-vertical')
|
||||
->button()
|
||||
->color('primary'),
|
||||
->color('warning'),
|
||||
/**
|
||||
* EXCEL
|
||||
*/
|
||||
@@ -149,7 +153,7 @@ class EditProjekte extends EditRecord
|
||||
])->label('Spreadsheet')
|
||||
->icon('heroicon-m-ellipsis-vertical')
|
||||
->button()
|
||||
->color('primary'),
|
||||
->color('info'),
|
||||
DeleteAction::make(),
|
||||
];
|
||||
}
|
||||
|
||||
+16
-2
@@ -86,10 +86,24 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
|
||||
->schema([
|
||||
TextInput::make('konto_textblock_id')->hidden(),
|
||||
RichEditor::make('textblock')
|
||||
->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;'])
|
||||
->columnSpan(5)
|
||||
->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;'])
|
||||
->toolbarButtons([
|
||||
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript'],
|
||||
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript', 'horizontalRule', 'table'],
|
||||
])->floatingToolbars([
|
||||
'paragraph' => [
|
||||
'bold', 'italic', 'underline', 'strike', 'subscript', 'superscript',
|
||||
],
|
||||
'heading' => [
|
||||
'h1', 'h2', 'h3',
|
||||
],
|
||||
'table' => [
|
||||
'tableAddColumnBefore', 'tableAddColumnAfter', 'tableDeleteColumn',
|
||||
'tableAddRowBefore', 'tableAddRowAfter', 'tableDeleteRow',
|
||||
'tableMergeCells', 'tableSplitCell',
|
||||
'tableToggleHeaderRow',
|
||||
'tableDelete',
|
||||
],
|
||||
]),
|
||||
|
||||
Fieldset::make('')
|
||||
|
||||
@@ -21,7 +21,21 @@ class TextblockForm
|
||||
RichEditor::make('textblock')
|
||||
->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;'])
|
||||
->toolbarButtons([
|
||||
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript'],
|
||||
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript', 'horizontalRule', 'table'],
|
||||
])->floatingToolbars([
|
||||
'paragraph' => [
|
||||
'bold', 'italic', 'underline', 'strike', 'subscript', 'superscript',
|
||||
],
|
||||
'heading' => [
|
||||
'h1', 'h2', 'h3',
|
||||
],
|
||||
'table' => [
|
||||
'tableAddColumnBefore', 'tableAddColumnAfter', 'tableDeleteColumn',
|
||||
'tableAddRowBefore', 'tableAddRowAfter', 'tableDeleteRow',
|
||||
'tableMergeCells', 'tableSplitCell',
|
||||
'tableToggleHeaderRow',
|
||||
'tableDelete',
|
||||
],
|
||||
]),
|
||||
])->columns(1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user