stable

Clone or download

Read-only

feat: expose pdftemplate variables

User should know which variables are available. Under cover page, header, footer, and styling editors, there is now a descriptive text. For cover page, header, and footer, available variables are displayed in a popover. In order to keep this contribution atomic, the introduction of another variables (like project name) has been refrained. There is still usage of plural to present variables though. Part of story #38630: Export to file Change-Id: Iaceb2a121875f846279fb26106814a8922075443

Modified Files

Name
M plugins/pdftemplate/include/PdfTemplate/Admin/DisplayPdfTemplateCreationOrUpdateFormPresenter.php +7 −0 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/create-or-update-template.mustache +15 −15 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/template-form-elements.mustache +55 −0 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Admin/variables-popover.mustache +57 −0 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Variable/Variable.php +52 −0 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Variable/VariablePresenter.php +38 −0 Go to diff View file
M plugins/pdftemplate/scripts/admin/package.json +1 −0 Go to diff View file
M plugins/pdftemplate/scripts/admin/pnpm-lock.yaml +3 −0 Go to diff View file
M plugins/pdftemplate/scripts/admin/src/_images.scss +2 −2 Go to diff View file
M plugins/pdftemplate/scripts/admin/src/admin.scss +20 −0 Go to diff View file
M plugins/pdftemplate/scripts/admin/src/index.ts +4 −2 Go to diff View file
D plugins/pdftemplate/scripts/admin/src/initiate-copy-image-url.ts +0 −48 Go to diff View file
A plugins/pdftemplate/scripts/admin/src/initiate-copy-to-clipboard.ts +46 −0 Go to diff View file
A plugins/pdftemplate/scripts/admin/src/initiate-popovers.ts +40 −0 Go to diff View file
M plugins/pdftemplate/site-content/fr_FR/LC_MESSAGES/tuleap-pdftemplate.po +55 −1 Go to diff View file