OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/views/work_packages/new.html.erb

49 lines
1.7 KiB

<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<h2><%=l(:label_work_package_new)%></h2>
<%= labelled_tabular_form_for controller.new_work_package,
:url => project_work_packages_path(@project),
# TODO: remove once Issue == PlanningElement
:as => 'work_package',
:html => { :multipart => true,
:id => 'work_package-form',
:class => 'tabular new-work_package-form' } do |f| %>
<%= error_messages_for :object => controller.new_work_package %>
<%= f.hidden_field :sti_type %>
<div class="box">
<%= render :partial => 'form', :locals => { :f => f,
:work_package => controller.new_work_package,
:project => controller.project,
:priorities => controller.priorities } %>
<%= send_notification_option %>
</div>
<%= submit_tag l(:button_create) %>
<!-- not supported by controller for now -->
<%#= submit_tag l(:button_create_and_continue), :name => 'continue' %>
<%= link_to_issue_preview(controller.project) %>
<%= javascript_tag "Form.Element.focus('#{f.object_name}_subject');" %>
<% end %>
<div id="preview" class="wiki"></div>
<% content_for :header_tags do %>
<%= robot_exclusion_tag %>
<% end %>