summaryrefslogtreecommitdiffstats
path: root/app/views/projects/new.html.erb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-07 15:00:27 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-07 15:00:27 +0000
commit2295b61cb6fde4187875478170da2ae70f114497 (patch)
tree0723ec5425093f75e615ec89bf560bddc6106826 /app/views/projects/new.html.erb
parent06878e50041117baa1b4bde40671ab422dd9bc0a (diff)
downloadredmine-2295b61cb6fde4187875478170da2ae70f114497.tar.gz
redmine-2295b61cb6fde4187875478170da2ae70f114497.zip
Refactor: rename method ProjectsController#add to ProjectsController#new
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4069 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/new.html.erb')
-rw-r--r--app/views/projects/new.html.erb17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/views/projects/new.html.erb b/app/views/projects/new.html.erb
new file mode 100644
index 000000000..c8a9c7600
--- /dev/null
+++ b/app/views/projects/new.html.erb
@@ -0,0 +1,17 @@
+<h2><%=l(:label_project_new)%></h2>
+
+<% labelled_tabular_form_for :project, @project, :url => { :action => "create" } do |f| %>
+<%= render :partial => 'form', :locals => { :f => f } %>
+
+<fieldset class="box"><legend><%= l(:label_module_plural) %></legend>
+<% Redmine::AccessControl.available_project_modules.each do |m| %>
+ <label class="floating">
+ <%= check_box_tag 'enabled_modules[]', m, @project.module_enabled?(m) %>
+ <%= l_or_humanize(m, :prefix => "project_module_") %>
+ </label>
+<% end %>
+</fieldset>
+
+<%= submit_tag l(:button_save) %>
+<%= javascript_tag "Form.Element.focus('project_name');" %>
+<% end %>