%= f.hidden_field :kind %> <%# if @cost_object.new_record? %> <% if false %>
<%= f.select :kind, [[l(:label_variable_cost_object), VariableCostObject.name], [l(:label_fixed_cost_object), FixedCostObject.name]], {:required => true, :prompt => true }, :autocomplete => 'off' %>
<%= observe_field :cost_object_kind, :url => { :action => :new }, :update => :content, :with => "Form.serialize('cost_object_form')", :before => "confirmChangeType('#{l(:text_cost_object_change_type_confirmation)}', $('cost_object_kind'), '#{@cost_object.kind.to_s}')" %><%= f.text_field :subject, :size => 80, :required => true %>
<%= f.text_area :description, :cols => 60, :rows => (@cost_object.description.blank? ? 10 : [[10, @cost_object.description.length / 50].max, 100].min), :accesskey => accesskey(:edit), :class => 'wiki-edit' %>
<% if @cost_object.kind == "VariableCostObject" -%> <%- end %><%= f.check_box(:project_manager_signoff) %>
<%= f.check_box(:client_signoff) %>
<%= f.text_field :fixed_date, :size => 10 %><%= calendar_for('cost_object_fixed_date') %>
<%= render :partial => 'attachments/form' %>
<% end %> <%= wikitoolbar_for 'cost_object_description' %> <% content_for :header_tags do %> <%= javascript_include_tag 'cost_objects', :plugin => 'redmine_costs' %> <%= javascript_include_tag 'subform', :plugin => 'redmine_costs' %> <%= javascript_include_tag 'editinplace', :plugin => 'redmine_costs' %> <%= javascript_tag "initialize_editinplace('src=\"#{image_path('cancel.png')}\" alt=\"#{l(:button_cancel_edit_budget)}\" title=\"#{l(:button_cancel_edit_budget)}\"' )" %> <% end %>