Hide custom fields, modules, and types in project create form.

pull/3613/head
Peter Lehwess 9 years ago
parent 5fde63dfff
commit b4ded6e03e
  1. 6
      app/views/projects/_form.html.erb

@ -45,7 +45,7 @@ See doc/COPYRIGHT.rdoc for more details.
</section> </section>
<% end %> <% end %>
<% if project.new_record? %> <% if project.persisted? %>
<section class="form--section"> <section class="form--section">
<%= render partial: "projects/form/modules", locals: { form: f } %> <%= render partial: "projects/form/modules", locals: { form: f } %>
</section> </section>
@ -53,14 +53,14 @@ See doc/COPYRIGHT.rdoc for more details.
<%= javascript_tag 'observeProjectModules();' %> <%= javascript_tag 'observeProjectModules();' %>
<% end %> <% end %>
<% if (project.new_record? || project.module_enabled?('work_package_tracking')) && renderTypes %> <% if (project.persisted? && project.module_enabled?('work_package_tracking')) && renderTypes %>
<section class="form--section"> <section class="form--section">
<%= render partial: 'projects/form/types', <%= render partial: 'projects/form/types',
locals: { f: f, project: project } %> locals: { f: f, project: project } %>
</section> </section>
<% end %> <% end %>
<% if project.new_record? %> <% if project.persisted? %>
<section class="form--section"> <section class="form--section">
<%= render partial: 'projects/form/custom_fields', <%= render partial: 'projects/form/custom_fields',
locals: { locals: {

Loading…
Cancel
Save