2010-03-04 06:22:45 +00:00
|
|
|
<h1>New task</h1>
|
|
|
|
|
|
|
|
<% form_for(@task, :url => project_tasks_path(@project)) do |f| %>
|
|
|
|
<%= f.error_messages %>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label :name %><br />
|
|
|
|
<%= f.text_field :name %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<%= f.label :description %><br />
|
|
|
|
<%= f.text_area :description %>
|
|
|
|
</p>
|
|
|
|
<p>
|
2010-03-04 22:42:09 +00:00
|
|
|
<%= f.hidden_field :parent %>
|
2010-03-04 06:22:45 +00:00
|
|
|
<%= f.submit 'Create' %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= link_to 'Back', project_tasks_path(@project) %>
|