<%= f.label :date, column.title, :class => "control-label" %>
<% v = !date_field.new_record? ? format_date(date_field.date, column.date_format, true) : "" %> <%= f.text_field :date, :value => v, :placeholder => column.date_format.upcase, :data => {:format => (column.date_format == "yyyy" ? "yyyy/MM" : column.date_format)} %>
<% if !date_field.new_record? %> <%= f.hidden_field :id %> <% else %> <%= f.hidden_field :table_column_id, :value => column.id %> <% end %>