Merge pull request #6161 from aignatov-bio/ai-sci-9249-add-step-text-title-to-protocol-print

Add step text title to print protocol [SCI-9249]
This commit is contained in:
aignatov-bio 2023-09-07 14:16:09 +02:00 committed by GitHub
commit 18a5fcd58f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,6 +33,12 @@
<% when 'StepText' %> <% when 'StepText' %>
<% step_text = step_element.orderable %> <% step_text = step_element.orderable %>
<div class="print-step-text"> <div class="print-step-text">
<strong>
<%= auto_link(simple_format(step_text.name),
link: :urls,
html: { target: '_blank' }) %>
</strong>
<div class="page-break"></div>
<div class="ql-editor"> <div class="ql-editor">
<%= custom_auto_link(step_text.tinymce_render(:text).gsub(/<p>\S<\/p>/, '').strip, <%= custom_auto_link(step_text.tinymce_render(:text).gsub(/<p>\S<\/p>/, '').strip,
simple_format: false, simple_format: false,