adapts custom form call to changed signature

pull/6827/head
Jens Ulferts 12 years ago
parent bc357e453f
commit 9524098b8c
  1. 4
      app/views/costlog/edit.html.erb

@ -8,7 +8,7 @@
:post :
:put %>
<% labelled_tabular_form_for :cost_entry, @cost_entry, :url => url, :html => { :method => method } do |f| %>
<%= labelled_tabular_form_for @cost_entry, :url => url, :html => { :method => method } do |f| %>
<%= error_messages_for 'cost_entry' %>
<%= back_url_hidden_field_tag %>
@ -27,7 +27,7 @@
<%= observe_field( "cost_entry_cost_type_id", :url => {:controller => :cost_objects, :action => :update_material_budget_item, :project_id => @cost_entry.project}, :with => "'cost_type_id=' + encodeURIComponent(value) + '&units=' + encodeURIComponent(document.getElementById('cost_entry_units').value) + '&fixed_date=' + encodeURIComponent(document.getElementById('cost_entry_spent_on').value) + '&element_id=cost_entry'") %>
<%= observe_field( "cost_entry_units", :frequency => 1, :url => {:controller => :cost_objects, :action => :update_material_budget_item, :project_id => @cost_entry.project}, :with => "'cost_type_id=' + encodeURIComponent(document.getElementById('cost_entry_cost_type_id').value) + '&units=' + encodeURIComponent(value) + '&fixed_date=' + encodeURIComponent(document.getElementById('cost_entry_spent_on').value) + '&element_id=cost_entry'") %>
<%= observe_field( "cost_entry_spent_on", :frequency => 1, :url => {:controller => :cost_objects, :action => :update_material_budget_item, :project_id => @cost_entry.project}, :with => "'cost_type_id=' + encodeURIComponent(document.getElementById('cost_entry_cost_type_id').value) + '&units=' + encodeURIComponent(document.getElementById('cost_entry_units').value) + '&fixed_date=' + encodeURIComponent(value) + '&element_id=cost_entry'") %>
</p>
</p>
<p>
<label for="cost_entry_costs_edit"><%= l(:field_costs) %></label>
<% if User.current.allowed_to? :view_cost_rates, @cost_entry.project %>

Loading…
Cancel
Save