<%= f.text_field :key %>
<% select_values = UTable::FIELD_TYPES.collect{|ft| [ft.capitalize,ft]} %>
<%= f.select :type, select_values, {}, {class: "type-selector"} %>
<% if defined?(i) %>
<% if column.order.nil? %>
<%= f.hidden_field :order, :value => i %>
<% else %>
<%= f.hidden_field :order %>
<% end %>
<% else %>
<%= f.hidden_field :order, :value=> "XXX" %>
<% end %>