stable

Clone or download

Read-only

feat: delete PDF template

Users can now delete a given template. Confirmation modal is displayed like for other delete actions. Part of story #38630: Export to file Change-Id: I33da3bc7e7ea47214e0e439106dd04604236e3b9

Modified Files

Name
A plugins/pdftemplate/include/PdfTemplate/Admin/DeletePdfTemplateController.php +91 −0 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/IndexPdfTemplateController.php +7 −7 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Admin/IndexPdfTemplatePresenter.php +58 −0 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Admin/PdfTemplatePresenter.php +47 −0 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/create.mustache +2 −2 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/index.mustache +54 −3 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/DeleteTemplate.php +28 −0 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/PdfTemplateDao.php +12 −1 Go to diff View file
M plugins/pdftemplate/include/pdftemplatePlugin.php +31 −1 Go to diff View file
M plugins/pdftemplate/scripts/admin/package.json +2 −1 Go to diff View file
M plugins/pdftemplate/scripts/admin/pnpm-lock.yaml +4 −1 Go to diff View file
M plugins/pdftemplate/scripts/admin/src/admin.scss +4 −4 Go to diff View file
M plugins/pdftemplate/scripts/admin/src/index.ts +2 −0 Go to diff View file
A plugins/pdftemplate/scripts/admin/src/initiate-modals.ts +24 −0 Go to diff View file
M plugins/pdftemplate/site-content/fr_FR/LC_MESSAGES/tuleap-pdftemplate.po +24 −0 Go to diff View file
M plugins/pdftemplate/tests/integration/PdfTemplate/PdfTemplateDaoTest.php +19 −0 Go to diff View file
A plugins/pdftemplate/tests/unit/PdfTemplate/Admin/DeletePdfTemplateControllerTest.php +139 −0 Go to diff View file
M plugins/pdftemplate/tests/unit/PdfTemplate/Admin/IndexPdfTemplateControllerTest.php +5 −0 Go to diff View file
A plugins/pdftemplate/tests/unit/PdfTemplate/Stubs/DeleteTemplateStub.php +50 −0 Go to diff View file
M src/common/Export/Pdf/Template/Identifier/PdfTemplateIdentifier.php +3 −0 Go to diff View file