This commit is contained in:
salam committed 2025-11-04 06:02:13 +01:00
1 parent 2aff6e391c
commit 3411578bc4
12 files changed
+117 -158

No files matched your search

+14 -14
View File
@@ -101,15 +101,15 @@ class Pdf
}
$html = '';
// $html = Ueberschrift::load($inhalt);
$html = Ueberschrift::load($inhalt);
switch ($inhalt->inhaltselement_id) {
case '9':
$html .= Deckblatt::load($inhalt, $textblock);
break;
// case '1':
// $html .= Inhalt::load($projekte_id);
// break;
case '1':
$html .= Inhalt::load($projekte_id);
break;
// case '3':
// $html .= Paragraph6::load($projekte_id);
// break;
@@ -122,19 +122,19 @@ class Pdf
// case '7':
// $html .= Zusammenstellung::load($projekte_id);
// break;
// case '8':
// $str = RichContentRenderer::make(self::$auftraggeber->referenz_formatting)->toHtml();
// $html .= Format::fix_str($str);
// break;
case '8':
// AUFTRAGGEBER
$str = RichContentRenderer::make(self::$auftraggeber->referenz_formatting)->toHtml();
$html .= Format::fix_str($str);
break;
// case '11':
// $html .= DigitaleSignatur::load($projekte_id);
// break;
// default:
// $html = Ueberschrift::load($inhalt);
// if ($inhalt->textblock) {
// $html .= $textblock;
// }
// break;
default:
if ($inhalt->textblock) {
$html .= $textblock;
}
break;
}
if ($inhalt->seitenzahl_anzeige == 1) {
+1 -1
View File
@@ -15,7 +15,7 @@ class Inhalt
foreach ($inhalte as $inhalt) {
if ($inhalt->name != 'INHALTSVERZEICHNIS' && $inhalt->ueberschrift_anzeigen) {
$html .= '<tr>';
$html .= Html::td(Format::index($inhalt->ordnungszahl));
$html .= Html::td(Format::index($inhalt->ordnungszahl), 'center');
$html .= Html::td($inhalt->name);
$html .= Html::td(Format::seite($inhalt->seite));
$html .= '</tr>';
+1 -1
View File
@@ -8,7 +8,7 @@ class Ueberschrift
{
public static function load($inhalt)
{
if ($inhalt->ueberschrift_anzeigen) {
if ($inhalt->ueberschrift_anzeigen && $inhalt->inhaltselement_id != 9) {
if ($inhalt->ordnungszahl * 1 > 0) {
return '<div class="header">'.Format::index($inhalt->ordnungszahl).' '.$inhalt->name.'</div>';
} else {
@@ -50,45 +50,13 @@ class AuftraggeberForm
->icon('lucide-contact')
->schema([
Checkbox::make('text_anzeigen')
->label('Diesen Text im Kopf des Gutachtens verwenden'),
->label('Diesen Text am Deckblatt des Gutachtens verwenden'),
RichEditor::make('referenz_formatting')
->json()
->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;'])
->toolbarButtons([
['bold', 'italic', 'underline', 'horizontalRule', 'clearFormatting'],
['h1', 'h2', 'h3', 'alignStart', 'alignCenter', 'alignEnd', 'textColor'],
])->floatingToolbars([
'paragraph' => [
'bold', 'italic', 'underline', 'strike', 'subscript', 'superscript',
],
'heading' => [
'h1', 'h2', 'h3',
],
['bold', 'italic', 'underline'],
])
->textColors([
'#fb2c36' => 'Rot',
'#ff6900' => 'Orange',
'#fe9a00' => 'Bernstein',
'#f0b100' => 'Gelb',
'#7ccf00' => 'Limette',
'#00c950' => 'Grün',
'#00bc7d' => 'Smaragd',
'#00bba7' => 'Blaugrün',
'#00b8db' => 'Cyan',
'#00a6f4' => 'Himmelblau',
'#2b7fff' => 'Blau',
'#615fff' => 'Indigo',
'#8e51ff' => 'Violett',
'#ad46ff' => 'Lila',
'#e12afb' => 'Fuchisa',
'#f6339a' => 'Rosa',
'#ff2056' => 'Rose',
'#a6a09b' => 'Steingrau Hell',
'#44403b' => 'Steingrau Dunkel',
'#cad5e2' => 'Schiefer Hell',
'#314158' => 'Schiefer Dunkel',
])
->label('Adresse')
->label('Firmenname mit Adresse')
->required(),
]),
Tab::make('Logo')
@@ -79,21 +79,14 @@ class GutachterForm
->icon('lucide-contact')
->schema([
Checkbox::make('text_anzeigen')
->label('Diesen Text im Kopf des Gutachtens verwenden')
->label('Diesen Text am Deckblatt des Gutachtens verwenden')
->columnSpanFull(),
RichEditor::make('referenz_formatting')
->json()
->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;'])
->toolbarButtons([
['bold', 'italic', 'underline', 'horizontalRule', 'clearFormatting'],
['h1', 'h2', 'h3', 'alignStart', 'alignCenter', 'alignEnd', 'textColor'],
])->floatingToolbars([
'paragraph' => [
'bold', 'italic', 'underline', 'strike', 'subscript', 'superscript',
],
'heading' => [
'h1', 'h2', 'h3',
],
['bold', 'italic', 'underline', 'clearFormatting'],
['h3', 'alignStart', 'alignCenter', 'alignEnd', 'textColor'],
])
->textColors([
'#fb2c36' => 'Rot',