summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/_form.html.erb2
-rw-r--r--app/views/projects/settings/_modules.html.erb18
2 files changed, 1 insertions, 19 deletions
diff --git a/app/views/projects/_form.html.erb b/app/views/projects/_form.html.erb
index 0cbdf422e..1e8f40948 100644
--- a/app/views/projects/_form.html.erb
+++ b/app/views/projects/_form.html.erb
@@ -36,7 +36,7 @@
<%= call_hook(:view_projects_form, :project => @project, :form => f) %>
</div>
-<% if @project.new_record? && @project.safe_attribute?('enabled_module_names') %>
+<% if @project.safe_attribute?('enabled_module_names') %>
<fieldset class="box tabular"><legend><%= l(:label_module_plural) %></legend>
<% Redmine::AccessControl.available_project_modules.each do |m| %>
<label class="floating">
diff --git a/app/views/projects/settings/_modules.html.erb b/app/views/projects/settings/_modules.html.erb
deleted file mode 100644
index c52741e5a..000000000
--- a/app/views/projects/settings/_modules.html.erb
+++ /dev/null
@@ -1,18 +0,0 @@
-<%= form_for @project,
- :url => { :action => 'modules', :id => @project },
- :html => {:id => 'modules-form',
- :method => :post} do |f| %>
-
-<fieldset class="box">
-<legend><%= l(:text_select_project_modules) %></legend>
-
-<% Redmine::AccessControl.available_project_modules.each do |m| %>
-<p><label><%= check_box_tag 'enabled_module_names[]', m, @project.module_enabled?(m), :id => nil -%>
- <%= l_or_humanize(m, :prefix => "project_module_") %></label></p>
-<% end %>
-</fieldset>
-<p><%= check_all_links 'modules-form' %></p>
-
-<p><%= submit_tag l(:button_save) %></p>
-
-<% end %>