Add print twig template options

Created on 27 June 2024, 4 months ago
Updated 28 June 2024, 4 months ago

Problem/Motivation

Based on the twig template, make and print PDF invoices. Sometimes I don't need to print the price, and sometimes I need to print the price.
I hope that Webform can choose the printing template that I have made before submitting.
Two twigs are made for the same form invoice,
entity-print--webform-submission--invoice-with-price.html.twig
entity-print--webform-submission--invoice-no-price.html.twig

Reproduce steps

Install entity print, enable webform entity print. Custom webform[invoice print] viewing in path:
/print/pdf/webform_submission/72?view_mode=html
twig template in
theme/bootstrap5/entity-print--webform-submission--invoice-with-price.html.twig
theme/bootstrap5/entity-print--webform-submission--invoice-no-price.html.twig

Proposed solution

Before submitting the webform[invoice print], you can select a specified twig template under the path to print the pdf.

Remaining tasks

None

User interface changes

Add template selection function

API changes

None

Data model changes

None

If you have other better ways to do this, looking forward to your professional suggestions.

✨ Feature request
Status

Closed: won't fix

Version

6.2

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @ty10086
  • Status changed to Closed: won't fix 4 months ago
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    Any additional features should be handled via custom code or a dedicated contributed module.

Production build 0.71.5 2024