stable
Clone or download
Note: I couldn't find a way to hide the header and the footer on the first page. These elements having a fixed position in order to be repeated on each page, it is impossible to select only the ones on a given page. Hiding them by making the first page content overlap them does not work either because those elements being fixed, they are never affected by z-indexes, and therefore, they are displayed on top of everything. How to test: - Click on the button to create a new template --> There is a default header --> There is a default footer - Customise the header and the footer content - Preview the result --> The custom header and footer are displayed in the preview - Save the template - Duplicate the template --> The new template inherits the custom header/footer defined previously. - save it and update it --> The header and footer have been updated Part of story #38630: Export to file Change-Id: Iff02b4004bb0fa834a4e0d2aca457fbce1b04829
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/pdftemplate/db/install.sql | +2 | −0 | Go to diff View file |
A | plugins/pdftemplate/db/mysql/202407301045_add_header_and_footer_content_columns.php | +39 | −0 | Go to diff View file |
M | plugins/pdftemplate/include/PdfTemplate/Admin/BuildUpdateTemplateRequestMiddleware.php | +2 | −0 | Go to diff View file |
M | plugins/pdftemplate/include/PdfTemplate/Admin/CreatePdfTemplateController.php | +2 | −0 | Go to diff View file |
M | plugins/pdftemplate/include/PdfTemplate/Admin/PdfTemplatePresenter.php | +8 | −0 | Go to diff View file |
M | plugins/pdftemplate/include/PdfTemplate/Admin/UpdateTemplateRequest.php | +6 | −0 | Go to diff View file |
M | plugins/pdftemplate/include/PdfTemplate/Admin/print-preview-fake-document.mustache | +299 | −248 | Go to diff View file |
M | plugins/pdftemplate/include/PdfTemplate/Admin/template-form-elements.mustache | +24 | −0 | Go to diff View file |
M | plugins/pdftemplate/include/PdfTemplate/CreateTemplate.php | +2 | −0 | Go to diff View file |
A | plugins/pdftemplate/include/PdfTemplate/Default/pdf-template-default-footer.html | +1 | −0 | Go to diff View file |
A | plugins/pdftemplate/include/PdfTemplate/Default/pdf-template-default-header.html | +1 | −0 | Go to diff View file |
M | plugins/pdftemplate/include/PdfTemplate/Default/pdf-template-default.css | +52 | −5 | Go to diff View file |
M | plugins/pdftemplate/include/PdfTemplate/PdfTemplateDao.php | +9 | −1 | Go to diff View file |
M | plugins/pdftemplate/scripts/admin/package.json | +4 | −2 | Go to diff View file |
M | plugins/pdftemplate/scripts/admin/pnpm-lock.yaml | +20 | −0 | Go to diff View file |
M | plugins/pdftemplate/scripts/admin/src/index.ts | +11 | −4 | Go to diff View file |
M | plugins/pdftemplate/scripts/admin/src/initiate-code-editors.ts | +23 | −5 | Go to diff View file |
M | plugins/pdftemplate/scripts/admin/src/initiate-print-preview.ts | +28 | −1 | Go to diff View file |
M | plugins/pdftemplate/site-content/fr_FR/LC_MESSAGES/tuleap-pdftemplate.po | +6 | −0 | Go to diff View file |
M | plugins/pdftemplate/tests/integration/PdfTemplate/PdfTemplateDaoTest.php | +10 | −6 | Go to diff View file |
M | plugins/pdftemplate/tests/unit/PdfTemplate/Admin/UpdateTemplateRequestTest.php | +16 | −0 | Go to diff View file |
M | plugins/pdftemplate/tests/unit/PdfTemplate/Stubs/CreateTemplateStub.php | +4 | −0 | Go to diff View file |
M | src/common/Export/Pdf/Template/PdfTemplate.php | +2 | −0 | Go to diff View file |
M | tests/lib/Builders/Export/Pdf/Template/PdfTemplateTestBuilder.php | +23 | −0 | Go to diff View file |