Skip to content

Commit

Permalink
Merge branch 'bugfix' into RC
Browse files Browse the repository at this point in the history
  • Loading branch information
effgarces committed Feb 19, 2021
2 parents 937eed3 + 70847bd commit 3e0f02a
Show file tree
Hide file tree
Showing 6 changed files with 548 additions and 300 deletions.
286 changes: 0 additions & 286 deletions Web/scripts/jsPDF/jspdf.min.js

This file was deleted.

13 changes: 3 additions & 10 deletions Web/scripts/jsPDF/jspdf.plugin.autotable.min.js

Large diffs are not rendered by default.

538 changes: 538 additions & 0 deletions Web/scripts/jsPDF/jspdf.umd.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Web/scripts/jsPDF/jspdf.umd.min.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions tpl/Reservation/pdf.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
window.jsPDF = window.jspdf.jsPDF;

var pdfDocument = new jsPDF();

var logo = new Image();
Expand Down Expand Up @@ -87,7 +89,7 @@ pdfDocument.autoTable({
{ colSpan: 3, content: '{foreach from=$RepeatWeekdays item=day name=weekdaysLoop}{if $smarty.foreach.weekdaysLoop.last}{translate key=$DayNames[$day]}{else}{translate key=$DayNames[$day]},{/if} {/foreach}'},
],
{/if}
[{ content: '{translate key=RepeatUntilPrompt}', styles: { fontStyle: 'bold'}},
[{ content: '{translate key=RepeatUntilPrompt|escape:'javascript'}', styles: { fontStyle: 'bold'}},
{ colSpan: 3, content: '{formatdate date=$RepeatTerminationDate}'},
],
{/if}
Expand Down Expand Up @@ -262,7 +264,7 @@ pdfDocument.autoTable({
styles: { lineWidth: 0.02},
theme: 'plain',
body: [
[{ content: '{translate key=Attachments} ({$Attachments|count})', styles: { fontStyle: 'bold'}},
[{ content: '{translate key=Attachments|escape:'javascript'} ({$Attachments|count})', styles: { fontStyle: 'bold'}},
],
{foreach from=$Attachments item=attachment}
[{ content: '{$attachment->FileName()|escape:'javascript'}'},
Expand All @@ -278,7 +280,7 @@ pdfDocument.autoTable({
columnStyles: { 1: { cellWidth: 10}},
theme: 'plain',
body: [
[{ content: '{translate key=IAccept} {translate key=TheTermsOfService}', styles: { fontStyle: 'bold'}},
[{ content: '{translate key=IAccept|escape:'javascript'} {translate key=TheTermsOfService}', styles: { fontStyle: 'bold'}},
{ content: 'X', styles: { fontStyle: 'bold', halign: 'center'}},
],
]
Expand Down
2 changes: 1 addition & 1 deletion tpl/Reservation/pdf_libraries.tpl
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{jsfile src="jsPDF/jspdf.min.js"}
{jsfile src="jsPDF/jspdf.umd.min.js"}
{jsfile src="jsPDF/jspdf.plugin.autotable.min.js"}

0 comments on commit 3e0f02a

Please sign in to comment.