<%= form_for [refinery, :race_registrations_admin, @person] do |f| -%> <%= render '/refinery/admin/error_messages', :object => @person, :include_object_name => true %>
<%= f.label :name -%> <%= f.text_field :name -%>
<%= f.label :surname -%> <%= f.text_field :surname -%>
<%= f.label :registration_id %> <%= f.collection_select(:registration_id, Refinery::RaceRegistrations::Registration.all, :id, :title, { :prompt=> :true}, { :data => {:placeholder=> t('.choose_registration')}, :multiple=> false, :class=> "chzn-select"}) %>
<%= f.label :category_id %> <%= f.collection_select(:category_id, @categories, :id, :title, { :prompt => :true }, { :data => {:placeholder=> t('.choose_category')}, :multiple=> false, :class=> "chzn-select"}) %>
<%= f.label :country -%> <%= f.text_field :country -%>
<%= f.label :birth_date -%> <%= f.date_select :birth_date , :start_year => 1910, :include_blank=> true -%>
<%= f.label :email -%> <%= f.text_field :email -%>
<%= f.label :club -%> <%= f.text_field :club -%>
<%= f.label :city -%> <%= f.text_field :city -%>
<% if f.object.created_at %>
<%= f.label :created_at %> <%= f.object.created_at %>
<% end %>
<%= f.label :notice %> <%= f.text_area :notice, :rows => 5 -%>
<%= render '/refinery/admin/form_actions', :f => f, :continue_editing => false, :delete_title => t('delete', :scope => 'refinery.people.admin.people.person'), :delete_confirmation => t('message', :scope => 'refinery.admin.delete', :title => @person.name) %> <% end -%>