<% step.step_orderable_elements.sort_by(&:position).each do |element| %>
<% if element.orderable_type == 'StepText' %>
<%= render partial: "shareable_links/my_modules/step_elements/text", locals: { element: element.orderable } %>
<% elsif element.orderable_type == 'Checklist' %>
<%= render partial: "shareable_links/my_modules/step_elements/checklist", locals: { element: element.orderable } %>
<% elsif element.orderable_type == 'StepTable'%>
<%= render partial: "shareable_links/my_modules/step_elements/table", locals: { element: element.orderable.table } %>
<% end %>
<% end %>
<% if step.step_assets.present? %>
<%= render partial: "shareable_links/my_modules/attachments", locals: { attachments: step.assets, step: step } %>
<% end %>