80 lines
2.0 KiB
Plaintext
80 lines
2.0 KiB
Plaintext
<%= 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.text_field :requirements_due %>
|
|
</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>
|
|
<%= f.text_field :design_due %>
|
|
</div>
|
|
<% if @editing %>
|
|
<div class="field">
|
|
<%= f.label :design_completed %>
|
|
<br>
|
|
<%= f.check_box :design_completed %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="field">
|
|
<%= f.label :devops_due %>
|
|
<br>
|
|
<%= f.text_field :devops_due %>
|
|
</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>
|
|
<%= f.text_field :qalaunch_due %>
|
|
</div>
|
|
<% if @editing %>
|
|
<div class="field">
|
|
<%= f.label :qalaunch_completed %>
|
|
<br>
|
|
<%= f.check_box :qalaunch_completed %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="actions">
|
|
<%= f.submit %>
|
|
</div>
|
|
<% end %>
|