-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LUT-27866 : refactor to use new version of GenericFormsProvider
- Loading branch information
Showing
5 changed files
with
132 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
src/sql/plugins/workflow/modules/formspdf/plugin/init_db_workflow-formspdf.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
DELETE FROM workflow_task_formspdf_template; | ||
INSERT INTO workflow_task_formspdf_template (name, content) VALUES ('Default Template','<!DOCTYPE html><html><head><title>Export PDF formulaire ${form_title} le ${creation_date!}</title></head><body><h1 style="font-size: 30px; text-align: center; background-color: #f0f0f0;">${form_title}</h1><!-- division pour les reponses du formulaire a copier depuis les signets disponibles --><div id="form-response-summary" style="margin-bottom: 3em;"><h2 style="font-size: 18px;"> signet rep 1 </h2><h2 style="font-size: 18px;"> signet rep 2 </h2><h2 style="font-size: 18px;"> signet rep n </h2></div><!-- division pour le texte du copyright --><div id="copyright" style="position: fixed; bottom: 0; width: 100%; text-align: center; background-color: #f0f0f0; padding: 5px;"> Copyright (c) 2002-2023, City of Paris All rights reserved</div></body></html>'); | ||
INSERT INTO workflow_task_formspdf_template (name, id_form, is_generic, is_rte, content) VALUES ('Default Template',-1,1,1,'<!DOCTYPE html>\n[#-- Example of default macro override for specific display (brackets are used for RTE edition) --]\n[#macro displayEntryTypeDate entry, list_responses ]\n [#if list_responses?has_content]\n [#assign iteration = 0]\n [#list list_responses as response]\n [#if response.responseValue??]\n [#if iteration != 0 && response.file.title?has_content]\n <span>; </span>\n [/#if]\n [#assign iteration = iteration + 1]\n <span>${response.responseValue?number?number_to_date?string(\'dd-MM-yyyy\')}</span>\n [/#if]\n [/#list]\n [/#if]\n[/#macro]\n\n\n<html>\n<head>\n <title>Export PDF ${form_title} - ${creation_date!}</title>\n <style>body { }</style>\n</head>\n<body>\n <h1 style=\"font-size: 30px; text-align: center; background-color: #f0f0f0;font-family: Arial, Helvetica, sans-serif;\">${form_title} (${creation_date!})</h1>\n \n\n <div id=\"form-response-summary\" style=\"margin-bottom: 3em;font-family: Arial, Helvetica, sans-serif;\">\n [#list question_list as question_key,question_value ]\n <h2 style=\"font-size: 18px;\">${question_value!}</h2>\n <p>[@displayEntry q=.vars[question_key]/]</p> \n [/#list]\n </div>\n\n\n <div id=\"copyright\" style=\"position: fixed; bottom: 0; width: 100%; text-align: center; background-color: #f0f0f0; padding: 5px;\"> Copyright (c) 2002-2024, City of Paris All rights reserved</div>\n</body>\n</html>'); | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters