@@ -121,7 +124,6 @@ CGI.parse(URI.parse(request.referrer).query).fetch("type") %>
<% title=nil %>
<% step["components"].each do |key1,value1| #finding section (title of step) %>
-
<% if value1.class==Hash %>
<% key1=value1 %>
<% end %>
@@ -145,34 +147,33 @@ CGI.parse(URI.parse(request.referrer).query).fetch("type") %>
- <% step["components"].each do |key,value| %>
- <%#here i made an if to distinguish the first step from the
+ <% step["components"].each do |key,value| %>
+ <%#here i made an if to distinguish the first step from the
others, because the first step #sometimes has index values as keys instead of
hashes, you might see this elsewhere %>
- <% if value.class==Hash %>
+ <% if value.class==Hash %>
<% key=value %>
- <% end %>
-
- <% if whitelist_simple.include?(key["component_type_id"]) && key["data"]!="" && key["data"] %>
-
- <% case key["component_type_id"]%>
- <% when "1" %>
-
-
- Description:
-
- <%=key["data"]%>
- <% when "17" %>
-
- Expected result:
-
- <%=key["data"]%>
-
<% end %>
- <% elsif key && whitelist_complex.include?(key["component_type_id"]) %>
- <% case key["component_type_id"]%>
- <% when "8"%>
+ <% if whitelist_simple.include?(key["component_type_id"]) && key["data"]!="" &&
+ key["data"] %>
+
+ <% case key["component_type_id"]%><% when "1" %>
+
+
+ Description:
+
+ <%=key["data"]%>
+ <% when "17" %>
+
+ Expected result:
+
+ <%=key["data"]%>
+
+ <% end %>
+ <% elsif key && whitelist_complex.include?(key["component_type_id"]) %>
+
+ <% case key["component_type_id"]%><% when "8"%>
<%= key["name"]+": " %>
<%= (key["source_data"]["name"]) %>
@@ -327,7 +328,8 @@ CGI.parse(URI.parse(request.referrer).query).fetch("type") %>
-<%# the below script resets all the fields after you decide not to import the file (cancel (modal hide)) %>
+ <%# the below script resets all the fields after you decide not to import the
+ file (cancel (modal hide)) %>