<%= f.label :period_from, column.title, :class => "control-label" %>
<%= f.text_field :period_from, :value => (period_field.period_from.strftime("%Y/%m/%d") rescue ""), :placeholder => "YYYY/MM/DD", :data => {:format => "yyyy/MM/dd"}, :class => "input-small" %>
<%= f.label :period_to, "~", :class => "control-label" %>
<%= f.text_field :period_to,:value => (period_field.period_to.strftime("%Y/%m/%d") rescue ""), :placeholder => "YYYY/MM/DD", :data => {:format => "yyyy/MM/dd"}, :class => "input-small" %>
<% if !period_field.new_record? %> <%= f.hidden_field :id %> <% else %> <%= f.hidden_field :table_column_id, :value => column.id %> <% end %>