This commit is contained in:
aynsix
2022-02-11 18:36:00 +03:00
parent e79efdda48
commit 640823dfbb
2 changed files with 9 additions and 9 deletions

View File

@@ -992,7 +992,7 @@ class PDFRecords extends PDF
$this->pdfTitle, $this->pdfTitle,
'', 1, 'C', false); '', 1, 'C', false);
$this->pdf->Write(20, "\n"); $this->pdf->SetY($this->pdf->GetY() + 15);
$this->pdf->SetFont(PhraseaPDF::FONT, '', 12); $this->pdf->SetFont(PhraseaPDF::FONT, '', 12);
$this->pdf->writeHTML($this->pdfDescription); $this->pdf->writeHTML($this->pdfDescription);

View File

@@ -2,6 +2,14 @@
<form target="_blank" name="formprintpage" method="POST" action="{{ path('prod_printer_print') }}"> <form target="_blank" name="formprintpage" method="POST" action="{{ path('prod_printer_print') }}">
<div id="printBox"> <div id="printBox">
<div style="padding:10px;"> <div style="padding:10px;">
<div style="margin: 20px 5px;">
<h4 style="margin-left: 0px;">{{ 'print:: pdf title' | trans }}</h4>
<input type="text" value="{{ pdfTitle }}" name="print-pdf-title" class="print-pdf-title" style="margin-left: 0px;width: 530px;padding-left: 0px;padding-right: 0px;margin-right: 0px;"/>
</div>
<div style="margin: 20px 5px;">
<h4 style="margin-left: 0px;">{{ 'print:: pdf description' | trans }}</h4>
<textarea name="print-pdf-description" class="print-pdf-description" id="print-pdf-description" cols="0" rows="5" style="margin-left: 20px;width:660px;"></textarea>
</div>
<h3 style="margin-left: 5px;">{{ 'print:: choose model' | trans }}</h3> <h3 style="margin-left: 5px;">{{ 'print:: choose model' | trans }}</h3>
{% set total_count = printer.get_count_actionable() %} {% set total_count = printer.get_count_actionable() %}
@@ -57,14 +65,6 @@
{% endif %} {% endif %}
<h3 style="margin-left: 5px;">{{ 'print:: some options' | trans }}</h3> <h3 style="margin-left: 5px;">{{ 'print:: some options' | trans }}</h3>
<div style="margin: 20px 5px;">
<h4 style="margin-left: 0px;">{{ 'print:: pdf title' | trans }}</h4>
<input type="text" value="{{ pdfTitle }}" name="print-pdf-title" class="print-pdf-title" style="margin-left: 0px;width: 530px;padding-left: 0px;padding-right: 0px;margin-right: 0px;"/>
</div>
<div style="margin: 20px 5px;">
<h4 style="margin-left: 0px;">{{ 'print:: pdf description' | trans }}</h4>
<textarea name="print-pdf-description" class="print-pdf-description" id="" cols="0" rows="5" style="margin-left: 20px;width:530px;"></textarea>
</div>
<div style="margin: 20px 5px;"> <div style="margin: 20px 5px;">
<h4 style="margin-left: 0px;">{{ 'print:: add and remember password to protect the pdf' | trans }}</h4> <h4 style="margin-left: 0px;">{{ 'print:: add and remember password to protect the pdf' | trans }}</h4>
<input type="text" value="" name="print-pdf-password" style="margin-left: 0px;width: 530px;padding-left: 0px;padding-right: 0px;margin-right: 0px;"/> <input type="text" value="" name="print-pdf-password" style="margin-left: 0px;width: 530px;padding-left: 0px;padding-right: 0px;margin-right: 0px;"/>