[#6441] Block deleting deliverables on closed or locked contracts

This commit is contained in:
Eric Davis committed 2011-08-10 16:07:07 -07:00
1 parent bf1339fc61
commit 5e50eb7558
3 files changed
+34 -1

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
<div class="info">
<div class="title">
<%= link_to(l(:button_edit), edit_contract_deliverable_path(@project, contract, deliverable), :class => 'icon icon-edit') %>
<%= link_to(l(:button_delete), contract_deliverable_path(@project, contract, deliverable), :method => :delete, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') %>
<%= link_to(l(:button_delete), contract_deliverable_path(@project, contract, deliverable), :method => :delete, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') if contract.open? %>
</div>
<%= textilizable(deliverable, :notes) %>