Skip to content

Commit

Permalink
[Task] Improve webtoprint pdf (#14560)
Browse files Browse the repository at this point in the history
* Improve webtoprint pdf

* Use different method
  • Loading branch information
mattamon committed Mar 9, 2023
1 parent 631bc67 commit 82cca7f
Showing 1 changed file with 7 additions and 7 deletions.
Expand Up @@ -264,15 +264,15 @@ pimcore.document.printpages.pdfpreview = Class.create({
var data = record.data;
var type = data.type;

if (type == "bool") {
if (value) {
return '<div style="text-align: left"><div role="button" class="x-grid-checkcolumn x-grid-checkcolumn-checked" style=""></div></div>';
} else {
return '<div style="text-align: left"><div role="button" class="x-grid-checkcolumn" style=""></div></div>';
}
if (type === "text") {
return Ext.util.Format.htmlEncode(value);
}

if (type === "bool") {
return '<div style="text-align: left"><div role="button" class="x-grid-checkcolumn' + (value ? ' x-grid-checkcolumn-checked' : '') + '" style=""></div></div>';
}

if (type == "select") {
if (type === "select") {
return t("web2print_" + value, value);
}

Expand Down

0 comments on commit 82cca7f

Please sign in to comment.