%#-- 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.
++#%>
<% edit_allowed = current_user.allowed_to?(:edit_work_packages, project) %>
<%= labelled_tabular_form_for work_package,
:url => work_package_path(work_package),
# TODO: remove once Issue == PlanningElement
:as => 'work_package',
:html => {
:id => 'work_package-form',
:multipart => true
} do |f| %>
<%= error_messages_for 'work_package' %>
<% if edit_allowed || !allowed_statuses.empty? %>
<% end %>
<% if authorize_for('timelog', 'edit') %>
<% end %>
<%= send_notification_option %>