[#6441] Block editing Locked or Closed Deliverables.

This commit is contained in:
Eric Davis
2011-08-08 15:52:13 -07:00
parent 51f62ca5a3
commit ac24ae08e6
4 changed files with 202 additions and 2 deletions
+6
View File
@@ -2,6 +2,12 @@
<%= javascript_tag("var i18nEndDateEmpty = '#{l(:text_end_date_empty)}'") %>
<%= javascript_tag("var i18nChangedPeriodMessage = '#{l(:text_changed_period_message)}'") %>
<% if resource.locked? || resource.closed? %>
<div class="error_msg">
<p><%= resource.locked? ? l(:text_deliverable_locked_warning) : l(:text_deliverable_closed_warning) %></p>
</div>
<% end %>
<div class="box tabular">
<% form.inputs :name => l(:text_deliverable_details_legend), :id => 'deliverable-details' do %>
<%# Used by jquery to check if this is a new or existing record %>