Trying to fix this messy table preview

This commit is contained in:
Zanz2 2017-10-30 01:57:42 +01:00
parent de9a3a1d0d
commit 6fc1afe4c1
3 changed files with 4 additions and 0 deletions

View file

@ -90,6 +90,7 @@
formulas: true, formulas: true,
readOnly: true readOnly: true
}); });
</script> </script>
<% table_count += 1 %> <% table_count += 1 %>
<% end %> <% end %>

View file

@ -1,5 +1,6 @@
<% whitelist_simple=['1','6','17'] %> <% whitelist_simple=['1','6','17'] %>
<% whitelist_complex=['8','9','15','18','19','20']%> <% whitelist_complex=['8','9','15','18','19','20']%>
<% step_table_elements_array = [] %>
<% json_object['steps'].each_with_index do |step,counter_orig| %> <% json_object['steps'].each_with_index do |step,counter_orig| %>
<% counter = counter_orig + 2 %> <% counter = counter_orig + 2 %>
<div style="display: block;"> <div style="display: block;">
@ -113,6 +114,7 @@
<% tables.each do |index, table| %> <% tables.each do |index, table| %>
<% table_hash = JSON.parse((Base64.decode64(table['contents']))) %> <% table_hash = JSON.parse((Base64.decode64(table['contents']))) %>
<% pio_table_id = "pio_table_step_"+counter.to_s+"_info_"+table_count.to_s %> <% pio_table_id = "pio_table_step_"+counter.to_s+"_info_"+table_count.to_s %>
<% step_table_elements_array.push([pio_table_id,table_hash]) %>
<div class="col-xs-12"> <div class="col-xs-12">
<div data-role="hot-table" class="hot-table"> <div data-role="hot-table" class="hot-table">
<div id="<%=pio_table_id%>" ></div> <div id="<%=pio_table_id%>" ></div>

View file

@ -14,4 +14,5 @@ alert('<%= I18n.t('my_modules.protocols.load_from_file_size_error',
); );
<% end %> <% end %>
$('#modal-import-json-protocol-preview').modal('show'); $('#modal-import-json-protocol-preview').modal('show');
<% end %> <% end %>