@@ -1,15 +1,16 | |||||
1 | <h2><%=l(:label_project_new)%></h2> |
|
1 | <h2><%=l(:label_project_new)%></h2> | |
2 |
|
2 | |||
3 | <% labelled_tabular_form_for :project, @project, :url => { :action => "add" } do |f| %> |
|
3 | <% labelled_tabular_form_for :project, @project, :url => { :action => "add" } do |f| %> | |
4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
4 | <%= render :partial => 'form', :locals => { :f => f } %> | |
5 |
|
5 | |||
6 | <fieldset class="box"><legend><%= l(:label_module_plural) %></legend> |
|
6 | <fieldset class="box"><legend><%= l(:label_module_plural) %></legend> | |
7 | <% Redmine::AccessControl.available_project_modules.each do |m| %> |
|
7 | <% Redmine::AccessControl.available_project_modules.each do |m| %> | |
8 | <label class="floating"> |
|
8 | <label class="floating"> | |
9 |
<%= check_box_tag 'enabled_modules[]', m, @project.module_enabled?(m) %> |
|
9 | <%= check_box_tag 'enabled_modules[]', m, @project.module_enabled?(m) %> | |
|
10 | <%= (l_has_string?("project_module_#{m}".to_sym) ? l("project_module_#{m}".to_sym) : m.to_s.humanize) %> | |||
10 | </label> |
|
11 | </label> | |
11 | <% end %> |
|
12 | <% end %> | |
12 | </fieldset> |
|
13 | </fieldset> | |
13 |
|
14 | |||
14 | <%= submit_tag l(:button_save) %> |
|
15 | <%= submit_tag l(:button_save) %> | |
15 | <% end %> |
|
16 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now