akam_roadmap/app/views/projects/_form.html.erb

58 lines
1.5 KiB
Plaintext
Raw Normal View History

2014-11-06 21:50:01 +00:00
<%= form_for(@project) do |f| %>
<% if @project.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@project.errors.count, "error") %> prohibited this project from being saved:</h2>
<ul>
<% @project.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.label :title %><br>
<%= f.text_field :title %>
</div>
<div class="field">
<%= f.label :status %><br>
<%= f.select(:status, Project.status_keys.keys.map {|status| [status.to_s.titleize, status]}) %>
</div>
<div class="field">
<%= f.label :requirements_due %><br>
<%= f.date_select :requirements_due %>
</div>
<div class="field">
<%= f.label :requirements_completed %><br>
<%= f.check_box :requirements_completed %>
</div>
<div class="field">
<%= f.label :design_due %><br>
<%= f.date_select :design_due %>
</div>
<div class="field">
<%= f.label :design_completed %><br>
<%= f.check_box :design_completed %>
</div>
<div class="field">
<%= f.label :devops_due %><br>
<%= f.date_select :devops_due %>
</div>
<div class="field">
<%= f.label :devops_completed %><br>
<%= f.check_box :devops_completed %>
</div>
<div class="field">
<%= f.label :qalaunch_due %><br>
<%= f.date_select :qalaunch_due %>
</div>
<div class="field">
<%= f.label :qalaunch_completed %><br>
<%= f.check_box :qalaunch_completed %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>