<%= form_for [refinery, :race_registrations_admin, @registration] do |f| -%> <%= render '/refinery/admin/error_messages', :object => @registration, :include_object_name => true %>
<%= f.label :title -%> <%= f.text_field :title, :class => 'larger widest' -%>
<%= f.label :locality -%> <%= f.text_field :locality -%>
<%= f.label :race_date -%> <%= f.date_select :race_date -%>
<%= f.label :group_id, t('refinery.plugins.groups.title') %> <%= f.collection_select(:group_id, Refinery::RaceRegistrations::Group.all.order("position DESC"), :id, :title, { :include_blank => true }, { :data => {:placeholder=> t('.choose_groups')}, :multiple=> false, :class=> "chzn-select"}) %>
<%= f.label :is_active -%> <%= f.check_box :is_active, :checked => @registration[:is_active] -%>
<%= f.label :start_date -%> <%= f.datetime_select :start_date -%>
<%= f.label :end_date -%> <%= f.datetime_select :end_date -%>
<%= render '/refinery/admin/form_actions', :f => f, :continue_editing => false, :delete_title => t('delete', :scope => 'refinery.registrations.admin.registrations.registration'), :delete_confirmation => t('message', :scope => 'refinery.admin.delete', :title => @registration.title) %> <% end -%>