diff --git a/app/views/protocols/import_export/_import_json_protocol_preview_modal.html.erb b/app/views/protocols/import_export/_import_json_protocol_preview_modal.html.erb index 01a8c90d2..8c9b4dced 100644 --- a/app/views/protocols/import_export/_import_json_protocol_preview_modal.html.erb +++ b/app/views/protocols/import_export/_import_json_protocol_preview_modal.html.erb @@ -105,26 +105,20 @@ <% end %> - <% counter=0 %> <% whitelist_simple=["1","6","17"] %> <% whitelist_complex=["8","9","15","18","19","20"]%> - <% @json_object["steps"].each do |step| %> + <% @json_object["steps"].each_with_index do |step,counter| %>

- <%= (counter+=1) %> + <%= (counter+1) %>     - <%# this guid attributes were ommited because they didnt seem relevenat %> - <%#= Step guid (Protocols.io) :%><%#= step["guid"] %> - <%# if counter>1 #only steps after the first one have previous step guid field - valid%> - <%#=Guid of previous step (Protocols.io) :%><%#= step["previous_guid"] %> - <%# end %> + <% title=nil %> <% step["components"].each do |key1,value1| #finding section (title of step) %>