|
|
|
@ -34,24 +34,22 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
<% end %> |
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
<% if relations.any? %> |
|
|
|
|
<table class="list work-package-data-table"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th><%= Relation.human_attribute_name(:to)%></th> |
|
|
|
|
<th><%= WorkPackage.human_attribute_name(:type)%></th> |
|
|
|
|
<th><%= WorkPackage.human_attribute_name(:start_date)%></th> |
|
|
|
|
<th><%= WorkPackage.human_attribute_name(:due_date)%></th> |
|
|
|
|
<th><spen class="hidden-for-sighted"><%= t('button_delete') %></span></th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
<%= render :partial => 'relation', :collection => relations, |
|
|
|
|
:as => :relation, |
|
|
|
|
:locals => { :work_package => work_package } -%> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<% end %> |
|
|
|
|
<table id="work-package-relations-table" class="list work-package-data-table <%= 'hidden' if relations.empty? %>"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th><%= Relation.human_attribute_name(:to)%></th> |
|
|
|
|
<th><%= WorkPackage.human_attribute_name(:type)%></th> |
|
|
|
|
<th><%= WorkPackage.human_attribute_name(:start_date)%></th> |
|
|
|
|
<th><%= WorkPackage.human_attribute_name(:due_date)%></th> |
|
|
|
|
<th><spen class="hidden-for-sighted"><%= t('button_delete') %></span></th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
<%= render :partial => 'relation', :collection => relations, |
|
|
|
|
:as => :relation, |
|
|
|
|
:locals => { :work_package => work_package } -%> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
|
|
|
|
|
<%= form_for(work_package.new_relation, |
|
|
|
|
:as => :relation, |
|
|
|
|