|
|
|
@ -81,7 +81,7 @@ module WorkPackagesHelper |
|
|
|
|
def work_package_form_top_attributes(form, work_package, locals = {}) |
|
|
|
|
[ |
|
|
|
|
work_package_form_type_attribute(form, work_package, locals), |
|
|
|
|
work_package_form_type_attribute(form, work_package, locals), |
|
|
|
|
work_package_form_planning_element_type_attribute(form, work_package, locals), |
|
|
|
|
work_package_form_subject_attribute(form, work_package, locals), |
|
|
|
|
work_package_form_parent_attribute(form, work_package, locals), |
|
|
|
|
work_package_form_description_attribute(form, work_package, locals) |
|
|
|
@ -213,7 +213,7 @@ module WorkPackagesHelper |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def work_package_form_type_attribute(form, work_package, locals = {}) |
|
|
|
|
def work_package_form_planning_element_type_attribute(form, work_package, locals = {}) |
|
|
|
|
if work_package.is_a?(PlanningElement) |
|
|
|
|
field = form.select :planning_element_type_id, |
|
|
|
|
(locals[:project].planning_element_types.collect { |m| [m.name, m.id] }), |
|
|
|
|