[#6441] Block editing locked and closed contracts

This commit is contained in:
Eric Davis
2011-08-10 11:31:54 -07:00
parent f8fe23a68d
commit be37e00f10
5 changed files with 174 additions and 2 deletions
+6
View File
@@ -1,3 +1,9 @@
<% if resource.locked? || resource.closed? %>
<div class="error_msg">
<p><%= resource.locked? ? l(:text_contract_locked_warning) : l(:text_contract_closed_warning) %></p>
</div>
<% end %>
<div class="box tabular">
<% form.inputs :name => l(:text_general_legend) do %>
<%= form.input :name, :required => true %>