<%= f.text_field :key, :autocomplete => "off", :'data-type' => 'key' %>
<%= f.check_box :default_ordered_field, class: 'default_ordered_field' %>
<%= f.select :order_direction,['desc','asc'].map{|v| [t("universal_table.#{v}"),v]} %>
<% select_values = UTable::FIELD_TYPES.collect{|ft| [ft.capitalize,ft]} %>
<%= f.select :type, select_values, {}, {class: "type-selector"} %>
">
<% select_values = UTable::DATE_FORMATS.collect{|ft| [ft.upcase,ft]} %>
<% if defined?(i) %>
<% if column.order.nil? %>
<%= f.hidden_field :order, :value => i, :class => "order-hidden-field" %>
<% else %>
<%= f.hidden_field :order, :class => "order-hidden-field" %>
<% end %>
<% else %>
<%= f.hidden_field :order, :value=> "XXX", :class => "order-hidden-field" %>
<% end %>