%= form_for(@project) do |f| %>
<% if @project.errors.any? %>
<%= pluralize(@project.errors.count, "error") %> prohibited this project from being saved:
<% @project.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= f.label :title %>
<%= f.text_field :title %>
<%= f.label :status %>
<%= f.select(:status, Project.status_keys.keys.map { |status| [status.to_s.titleize, status] }) %>
<%= f.label :requirements_due %>
<%= f.text_field :requirements_due %>
<% if @editing %>
<%= f.label :requirements_completed %>
<%= f.check_box :requirements_completed %>
<% end %>
<%= f.label :design_due %>
<%= f.text_field :design_due %>
<% if @editing %>
<%= f.label :design_completed %>
<%= f.check_box :design_completed %>
<% end %>
<%= f.label :devops_due %>
<%= f.text_field :devops_due %>
<% if @editing %>
<%= f.label :devops_completed %>
<%= f.check_box :devops_completed %>
<% end %>
<%= f.label :qalaunch_due %>
<%= f.text_field :qalaunch_due %>
<% if @editing %>
<%= f.label :qalaunch_completed %>
<%= f.check_box :qalaunch_completed %>
<% end %>
<%= f.submit %>
<% end %>