SCI-3649 adding catalog number, fixing up the design a bit

This commit is contained in:
Miha Mencin 2019-07-02 19:47:05 +02:00
parent 692a5aff15
commit ab038ffdf7
2 changed files with 8 additions and 3 deletions

View file

@ -117,6 +117,7 @@ module ProtocolImporters
name: desc_component[:source][:name],
mol_weight: desc_component[:source][:mol_weight],
details: {
catalog_number: desc_component[:source][:sku],
link: desc_component[:source][:vendor][:link],
linear_formula: desc_component[:source][:linfor]
}

View file

@ -1,6 +1,10 @@
<p>
<%= item[:details]&.any? ? "<b>#{t('protocol_importers.templates.details.title') }</b>" : '' %>
<% item[:details]&.each do |k, v| %>
<%= "#{k.camelize.to_s}: #{v.to_s}" %>
<% if item[:details]&.any? %>
<b> <%= t('protocol_importers.templates.details.title')%>: </b>
<br />
<% item[:details]&.each do |k, v| %>
<%= "#{k.humanize}: #{v.to_s}" %>
<br />
<% end %>
<% end %>
</p>