lims_report_html: add title to pictures on report based on attached picture on lims.results_report.version.detail model

This commit is contained in:
Francisco Moyano 2021-05-11 20:50:20 -03:00 committed by Sebastián Marró
parent 567b829a19
commit 7a353ec7ff
1 changed files with 7 additions and 1 deletions

View File

@ -339,9 +339,15 @@ class ResultsReportVersionDetailSample(metaclass=PoolMeta):
continue
if count == 0:
content += div_row
content += div_row
content += div_col
if attachment.title:
content += '<p style="font-size: 6pt;font-family: arial,\
helvetica, sans-serif;">%s</p>' % (
attachment.title, )
content += ('<img src="' +
ResultReport.get_image(attachment.data) +
'" alt="" style="width:100%;">')