add base name in pdf feedback

This commit is contained in:
aynsix
2020-01-23 12:12:59 +03:00
parent 5b38565e1a
commit e3f596963a
2 changed files with 11 additions and 5 deletions

View File

@@ -603,6 +603,12 @@ class PDFRecords extends PDF
$this->pdf->Write(5, $rec->getRecordId()); $this->pdf->Write(5, $rec->getRecordId());
$this->pdf->Write(6, "\n"); $this->pdf->Write(6, "\n");
$this->pdf->SetFont(PhraseaPDF::FONT, 'B', 12);
$this->pdf->Write(5, $this->app->trans("print_feedback:: base name: ") . " ");
$this->pdf->SetFont(PhraseaPDF::FONT, '', 12);
$this->pdf->Write(5, $rec->getDatabox()->get_label($this->app['locale']));
$this->pdf->Write(6, "\n");
$this->pdf->SetFont(PhraseaPDF::FONT, 'B', 12); $this->pdf->SetFont(PhraseaPDF::FONT, 'B', 12);
$this->pdf->Write(5, $this->app->trans("print_feedback:: originale filename: ") . " "); $this->pdf->Write(5, $this->app->trans("print_feedback:: originale filename: ") . " ");
$this->pdf->SetFont(PhraseaPDF::FONT, '', 12); $this->pdf->SetFont(PhraseaPDF::FONT, '', 12);
@@ -698,7 +704,7 @@ class PDFRecords extends PDF
return; return;
} }
private function formatDate(\DateTime $date) private function formatDate(\DateTime $date)
{ {
$locale = $this->app['locale']; $locale = $this->app['locale'];

View File

@@ -6,14 +6,14 @@
<h4>{{ 'phraseanet:: basket feedback' | trans }}</h4> <h4>{{ 'phraseanet:: basket feedback' | trans }}</h4>
<input type="hidden" name="ssel" value="{{ basketFeedbackId }}" /> <input type="hidden" name="ssel" value="{{ basketFeedbackId }}" />
<div style="margin: 10px 0 20px 0; padding: 0 10px;"> <div style="margin: 10px 0 20px 0; padding: 0 10px;">
<label for="RADI_PRE_BF" class="radio">
<input type="radio" name="lay" value="feedback" id="RADI_PRE_BF" />
{{ 'print:: basket feedback' | trans }}
</label>
<label for="RADI_PRE_FBO" class="radio"> <label for="RADI_PRE_FBO" class="radio">
<input type="radio" name="lay" checked value="feedbackOnly" id="RADI_PRE_FBO" /> <input type="radio" name="lay" checked value="feedbackOnly" id="RADI_PRE_FBO" />
{{ 'print:: basket feedback only' | trans }} {{ 'print:: basket feedback only' | trans }}
</label> </label>
<label for="RADI_PRE_BF" class="radio">
<input type="radio" name="lay" value="feedback" id="RADI_PRE_BF" />
{{ 'print:: basket feedback' | trans }}
</label>
</div> </div>
{% endif %} {% endif %}