%= form_for(@metacode) do |f| %>
<% if @metacode.errors.any? %>
<%= pluralize(@metacode.errors.count, "error") %> prohibited this metacode from being saved:
<% @metacode.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :icon %>
<%= f.text_field :icon %>
<%= f.label :color, "Color (hex with # sign)" %>
<%= f.text_field :color %>
<%= link_to 'Cancel', metacodes_path, { :class => 'button', 'data-bypass' => 'true' } %>
<%= f.submit :class => 'add' %>
<% end %>