% destination = 'new' if not defined? destination %>
<%= form_for(person, url: {action: destination}) do |f| %>
<% if person.errors.any? %>
<%= f.label :first_name %>
<%= f.text_field :first_name, class: 'form-control' %>
<%= f.label :infix %>
<%= f.text_field :infix, class: 'form-control' %>
<%= f.label :last_name %>
<%= f.text_field :last_name, class: 'form-control' %>
<%= f.label :email %>
<%= f.email_field :email, class: 'form-control' %>
<%= f.label :birth_date %>
<%= f.date_field :birth_date, type: 'date', class: 'form-control' %>
<% if not defined? no_admin %>
<%= f.check_box :is_admin %>
<%= f.label :is_admin %>
<% end %>
<%= f.submit %>
<% end %>