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:
parent
567b829a19
commit
7a353ec7ff
|
@ -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%;">')
|
||||
|
|
Loading…
Reference in New Issue