move parent_id form attribute to its own partial

pull/495/head
jwollert 11 years ago
parent d584317ccc
commit 81adf7b9a9
  1. 7
      app/views/projects/form/_project_attributes.html.erb
  2. 6
      app/views/projects/form/attributes/_parent_id.html.erb

@ -1,11 +1,6 @@
<p><%= form.text_field :name, :required => true, :size => 60 %></p>
<% unless project.allowed_parents.compact.empty? %>
<p>
<%= label(:project, :parent_id, Project.human_attribute_name(:parent)) %>
<%= parent_project_select_tag(project) %>
</p>
<% end %>
<%= render :partial => "projects/form/attributes/parent_id", :locals => { :project => project } %>
<p><%= form.text_area :summary, :rows => 2, :class => 'wiki-edit' %></p>
<p><%= form.text_area :description, :rows => 5, :class => 'wiki-edit' %></p>

@ -0,0 +1,6 @@
<% unless project.allowed_parents.compact.empty? %>
<p>
<%= label(:project, :parent_id, Project.human_attribute_name(:parent)) %>
<%= parent_project_select_tag(project) %>
</p>
<% end %>
Loading…
Cancel
Save