diff --git a/app/views/protocols/print.html.erb b/app/views/protocols/print.html.erb index be80123a5..5845bb01c 100644 --- a/app/views/protocols/print.html.erb +++ b/app/views/protocols/print.html.erb @@ -27,52 +27,54 @@ <% end %> <%= step.position + 1 %>. <%= step.name %> -
- <% if step.description.blank? %> - <%= t('protocols.steps.no_description') %> - <% else %> -
- <%= custom_auto_link(step.tinymce_render(:description), + + <% step.step_orderable_elements.order(position: :asc).each do |step_element| %> + <% case step_element.orderable_type %> + <% when 'StepText' %> + <% step_text = step_element.orderable %> + - - <% step.checklists.each do |checklist| %> - - <% end %> - - <% step.tables.each do |table| %> - + <% when 'StepTable' %> + <% table = step_element.orderable.table %> + + <% when 'Checklist' %> + <% checklist = step_element.orderable %> + + <% end %> <% end %> + <% step.assets.where(view_mode: "inline").each do |asset| %>