Added hints to the edit form so a user will not edit a locked Rate. #1919

This commit is contained in:
Eric Davis
2009-01-20 11:17:37 -08:00
parent a52afb7a2b
commit 3fccd98102
2 changed files with 19 additions and 0 deletions
+4
View File
@@ -24,7 +24,11 @@
<td align="center">
<%= f.hidden_field "user_id" %>
<%= hidden_field_tag "back_url", @back_url %>
<% if @rate.unlocked? %>
<%= submit_tag((@rate.new_record? ? l(:button_add) : l(:button_update)), :class => 'button-small')-%>
<% else %>
<%= image_tag('locked.png') %>
<% end %>
</td>
</tr>
</tbody>