%= form_for(target) do |f| %>
<% if target.errors.any? %>
<%= pluralize(target.errors.count, "error") %> prohibited this target from being saved:
<% target.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= f.label "Name" %>
<%= f.text_field :name %>
<%= f.label "Beschrieb" %>
<%= f.text_field :description %>
<%= f.label "Punkte" %>
<%= f.number_field :points %>
<%= f.label "Minen" %>
<%= f.number_field :mines %>
<%= f.label "Count" %>
<%= f.number_field :count %>
<%= f.label :last_action %>
<%= f.datetime_select :last_action %>
<%= f.label :sort_order %>
<%= f.number_field :sort_order %>
<%= f.submit "Posten erstellen" %>
<% end %>