Mercurial > hg > soundsoftware-site
annotate app/views/projects/add.rhtml @ 21:d0cd1f6335a5 cannam
* Create branch "cannam"
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 23 Sep 2010 16:19:06 +0100 |
parents | 513646585e45 |
children |
rev | line source |
---|---|
Chris@0 | 1 <h2><%=l(:label_project_new)%></h2> |
Chris@0 | 2 |
Chris@0 | 3 <% labelled_tabular_form_for :project, @project, :url => { :action => "add" } do |f| %> |
Chris@0 | 4 <%= render :partial => 'form', :locals => { :f => f } %> |
Chris@0 | 5 |
Chris@0 | 6 <fieldset class="box"><legend><%= l(:label_module_plural) %></legend> |
Chris@0 | 7 <% Redmine::AccessControl.available_project_modules.each do |m| %> |
Chris@0 | 8 <label class="floating"> |
Chris@0 | 9 <%= check_box_tag 'enabled_modules[]', m, @project.module_enabled?(m) %> |
Chris@0 | 10 <%= l_or_humanize(m, :prefix => "project_module_") %> |
Chris@0 | 11 </label> |
Chris@0 | 12 <% end %> |
Chris@0 | 13 </fieldset> |
Chris@0 | 14 |
Chris@0 | 15 <%= submit_tag l(:button_save) %> |
Chris@0 | 16 <%= javascript_tag "Form.Element.focus('project_name');" %> |
Chris@0 | 17 <% end %> |