%# # @file # The inner HTML for switching your metacode set #%> <% metacodes = current_user.settings.metacodes %> <% selectedSet = metacodes[0].include?("metacodeset") ? metacodes[0].sub("metacodeset-","") : "custom" %> <% allMetacodeSets = MetacodeSet.order("name").all %> <% if selectedSet == "custom" index = allMetacodeSets.length else set = MetacodeSet.find(selectedSet.to_i) index = allMetacodeSets.index(set) end %>
Use metacode sets to enter different modes of mapping.
' + m.name.downcase + '
<%= m.desc %>
Choose Your Metacodes
<% @list = '' %> <% Metacode.order("name").all.each_with_index do |m, index| %> <% if selectedSet == "custom" %> <% mClass = metacodes.index(m.id.to_s) == nil ? "toggledOff" : "" %> <% else %> <% mClass = "toggledOff" %> <% end %> <% @list += '' + m.name.downcase + '