2014-11-06 21:50:01 +00:00
|
|
|
<%= form_for(@project) do |f| %>
|
2014-11-07 18:19:09 +00:00
|
|
|
<% if @project.errors.any? %>
|
|
|
|
<div id="error_explanation">
|
|
|
|
<h2><%= pluralize(@project.errors.count, "error") %> prohibited this project from being saved:</h2>
|
2014-11-06 21:50:01 +00:00
|
|
|
|
2014-11-07 18:19:09 +00:00
|
|
|
<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>
|
2014-11-07 18:24:59 +00:00
|
|
|
<%= f.text_field :requirements_due %>
|
2014-11-07 18:19:09 +00:00
|
|
|
</div>
|
|
|
|
<% if @editing %>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :requirements_completed %>
|
|
|
|
<br>
|
|
|
|
<%= f.check_box :requirements_completed %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :design_due %>
|
|
|
|
<br>
|
2014-11-07 18:24:59 +00:00
|
|
|
<%= f.text_field :design_due %>
|
2014-11-06 21:50:01 +00:00
|
|
|
</div>
|
2014-11-07 18:19:09 +00:00
|
|
|
<% if @editing %>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :design_completed %>
|
|
|
|
<br>
|
|
|
|
<%= f.check_box :design_completed %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2014-11-06 21:50:01 +00:00
|
|
|
|
2014-11-07 18:19:09 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :devops_due %>
|
|
|
|
<br>
|
2014-11-07 18:24:59 +00:00
|
|
|
<%= f.text_field :devops_due %>
|
2014-11-07 18:19:09 +00:00
|
|
|
</div>
|
|
|
|
<% if @editing %>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :devops_completed %>
|
|
|
|
<br>
|
|
|
|
<%= f.check_box :devops_completed %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :qalaunch_due %>
|
|
|
|
<br>
|
2014-11-07 18:24:59 +00:00
|
|
|
<%= f.text_field :qalaunch_due %>
|
2014-11-07 18:19:09 +00:00
|
|
|
</div>
|
|
|
|
<% if @editing %>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :qalaunch_completed %>
|
|
|
|
<br>
|
|
|
|
<%= f.check_box :qalaunch_completed %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="actions">
|
|
|
|
<%= f.submit %>
|
|
|
|
</div>
|
2014-11-06 21:50:01 +00:00
|
|
|
<% end %>
|