Replace text with signature image in wash certificates

Updated the wash certificate template to include a signature image instead of plain text in the specified table cell. Added new image assets to support this update, ensuring proper rendering and appearance. This enhances the visual presentation of the certificates.
This commit is contained in:
Jepp9350
2025-04-09 16:09:02 +02:00
parent 3ad09e9367
commit 0a804b4d46
4 changed files with 2 additions and 2 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

@@ -164,8 +164,8 @@ class wash_certificate extends html2pdf_template
return '
<table style="position: absolute; top: 878px; left: 0; width: 100%; border-collapse: collapse; margin-left: ' . $margin_left_px . 'px; ' . $margin_right_px . 'px; align-content: space-between; max-height: ' . $column_height_px . 'px; min-height: ' . $column_height_px . 'px;">
<tr>
<td style="width: ' . $column_width_px . 'px; align-content: center; text-align: center; border: 1px solid black; min-height: ' . $column_height_px . 'px; max-height: ' . $column_height_px . 'px;">
<strong>' . htmlspecialchars($column_1, ENT_QUOTES, 'UTF-8') . '</strong>
<td style="width: ' . $column_width_px . 'px; align-content: center; text-align: center; border: 1px solid transparent; min-height: ' . $column_height_px . 'px; max-height: ' . $column_height_px . 'px;">
<img src="' . self::pathSrc('signature_truckwash_transparent.png') . '" alt="Signature" style="max-height: ' . $column_height_px . 'px; max-width: ' . $column_width_px . 'px; width: auto; height: auto;" />
</td>
</tr>
</table>