<% labelled_tabular_form_for :cost_object, @cost_object, :url => {:action => 'edit', :id => @cost_object}, :html => {:multipart => true, :id => 'cost_object_form', :class => nil} do |f| %> <%= error_messages_for 'cost_object' %>
<%= render :partial => 'form', :locals => {:f => f} %>
<%= l(:label_attachment_plural )%>

<%= render :partial => 'attachments/form' %>

<%= submit_tag l(:button_submit) %> <%= link_to_remote l(:label_preview), { :url => { :controller => 'cost_objects', :action => 'preview', :project_id => @project }, :method => 'post', :update => 'preview', :with => "Form.serialize('cost_object_form')", :complete => "Element.scrollTo('preview')" }, :accesskey => accesskey(:preview) %> <% end %>
<% content_for :header_tags do %> <%= stylesheet_link_tag 'scm' %> <%= stylesheet_link_tag 'costs', :plugin => 'redmine_costs' %> <%= javascript_include_tag 'cost_objects', :plugin => 'redmine_costs' %> <% end %>