uc-packing-slip-page.html.twig in Ubercart 8.4
Default theme implementation to display a printable Ubercart packing slip.
See also
template_preprocess_uc_fulfillment()
1 theme call to uc-packing-slip-page.html.twig
- ShipmentController::printShipment in shipping/
uc_fulfillment/ src/ Controller/ ShipmentController.php - Shows a printer-friendly version of a shipment.
File
shipping/uc_fulfillment/templates/uc-packing-slip-page.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display a printable Ubercart packing slip.
- *
- * @see template_preprocess_uc_fulfillment()
- */
- #}
- <!DOCTYPE html>
- <html{{ html_attributes }}>
- <head>
- <title>{{ head_title }}</title>
- <style type="text/css">
- .page-break {
- page-break-before: always;
- }
- </style>
- <style type="text/css" media="print">
- .buttons {
- display: none;
- }
- </style>
- </head>
- <body{{ attributes }}>
- <div class="buttons">
- <input type="button" value="{{ 'Print packing slip'|t }}" onclick="window.print();" />
- <input type="button" value="{{ 'Back'|t }}" onclick="history.back();" />
- </div>
-
- {{ content }}
- </body>
- </html>