feat(orion): extend report layout settings to version 1.1
This commit is contained in:
parent
12e1761a5b
commit
613ffdc8b7
591 changed files with 3601 additions and 999 deletions
Binary file not shown.
|
|
@ -84,15 +84,32 @@ class CoverComponent(ReportComponent):
|
|||
f'<p class="cover-subtitle">{text(context.customer.name)}</p>'
|
||||
f"{rows}"
|
||||
'<div class="cover-closing">'
|
||||
'<div class="cover-result-text">'
|
||||
"<h2>Ergebnis der Validierung</h2>"
|
||||
f"<p>{text(validation_result_cover_sentence(validation.result))}</p>"
|
||||
"</div>"
|
||||
'<div class="signature-block"><div class="signature-line"></div><div class="signature-label">Unterschrift technische Validierung</div></div>'
|
||||
f"{self._cover_result_text(context)}"
|
||||
f"{self._signature_blocks(context)}"
|
||||
"</div>"
|
||||
"</section>"
|
||||
)
|
||||
|
||||
def _cover_result_text(self, context: ReportContext) -> str:
|
||||
if not context.report_settings.show_cover_result_text:
|
||||
return ""
|
||||
return (
|
||||
'<div class="cover-result-text">'
|
||||
"<h2>Ergebnis der Validierung</h2>"
|
||||
f"<p>{text(validation_result_cover_sentence(context.validation.result))}</p>"
|
||||
"</div>"
|
||||
)
|
||||
|
||||
def _signature_blocks(self, context: ReportContext) -> str:
|
||||
blocks = [
|
||||
'<div class="signature-block"><div class="signature-line"></div><div class="signature-label">Unterschrift technische Validierung</div></div>'
|
||||
]
|
||||
if context.report_settings.signature_mode == "TECHNICAL_AND_CLIENT":
|
||||
blocks.append(
|
||||
'<div class="signature-block"><div class="signature-line"></div><div class="signature-label">Unterschrift Auftraggeber</div></div>'
|
||||
)
|
||||
return '<div class="signature-grid">' + "".join(blocks) + "</div>"
|
||||
|
||||
|
||||
class TocComponent(ReportComponent):
|
||||
anchor = "toc"
|
||||
|
|
@ -502,7 +519,7 @@ class AttachmentComponent(NumberedComponent):
|
|||
figures.append(
|
||||
'<figure class="report-figure">'
|
||||
f'<img class="report-image" src="{text(src)}" alt="{text(caption)}">'
|
||||
f"<figcaption>Abbildung {index}: {text(caption)}</figcaption>"
|
||||
f'<figcaption class="image-caption">Abbildung {index}: {text(caption)}</figcaption>'
|
||||
"</figure>"
|
||||
)
|
||||
body = table(["Reihenfolge", "Kategorie", "Datei", "Beschreibung"], rows)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue