2006-07-29 23:54:22 +04:00
|
|
|
<h2><%=l(:label_project_new)%></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2010-09-06 19:09:52 +04:00
|
|
|
<% labelled_tabular_form_for :project, @project, :url => { :action => "create" } do |f| %>
|
2006-09-02 17:33:23 +04:00
|
|
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
2007-09-14 15:34:08 +04:00
|
|
|
|
2007-11-20 23:29:03 +03:00
|
|
|
<fieldset class="box"><legend><%= l(:label_module_plural) %></legend>
|
2007-09-14 15:34:08 +04:00
|
|
|
<% Redmine::AccessControl.available_project_modules.each do |m| %>
|
2007-11-20 23:29:03 +03:00
|
|
|
<label class="floating">
|
2011-01-06 23:36:31 +03:00
|
|
|
<%= check_box_tag 'project[enabled_module_names][]', m, @project.module_enabled?(m) %>
|
2009-02-21 14:04:50 +03:00
|
|
|
<%= l_or_humanize(m, :prefix => "project_module_") %>
|
2007-11-20 23:29:03 +03:00
|
|
|
</label>
|
|
|
|
<% end %>
|
2011-01-06 23:36:31 +03:00
|
|
|
<%= hidden_field_tag 'project[enabled_module_names][]', '' %>
|
2010-12-03 19:15:16 +03:00
|
|
|
|
2007-11-20 23:29:03 +03:00
|
|
|
</fieldset>
|
2007-09-14 15:34:08 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<%= submit_tag l(:button_save) %>
|
2009-01-22 19:34:54 +03:00
|
|
|
<%= javascript_tag "Form.Element.focus('project_name');" %>
|
2007-09-14 15:34:08 +04:00
|
|
|
<% end %>
|