From c291caaae34fc60d23fee3698e062dffd3acbe3b Mon Sep 17 00:00:00 2001 From: Zanz2 Date: Sat, 28 Oct 2017 16:59:36 +0200 Subject: [PATCH] Debbuging preive hot tables --- .../_import_json_protocol_p_desc.html.erb | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/app/views/protocols/import_export/_import_json_protocol_p_desc.html.erb b/app/views/protocols/import_export/_import_json_protocol_p_desc.html.erb index d9fab4692..bb463dc24 100644 --- a/app/views/protocols/import_export/_import_json_protocol_p_desc.html.erb +++ b/app/views/protocols/import_export/_import_json_protocol_p_desc.html.erb @@ -64,10 +64,32 @@ <%= sanitize_input(json_object['link'].html_safe) %>
<% end %> <% tables, garbage = protocolsio_string_to_table_element(prot_info_string) %> + <% table_count = 0 %> <% tables.each do |index, table| %> <% table_hash = JSON.parse(Base64.decode64(table['contents'])) %> - <% byebug %> - + <% pio_table_id = "pio_table_prot_info_"+table_count.to_s %> + <%# byebug %> +
+
+ + <% table_count += 1 %> <% end %>