%= error_messages_for 'operation' %>
<%= f.select :income, operation_types_for_select(@operation.is_income?), :label => l(:label_operation_type), :required => true %>
<%= f.select :category_id, operation_category_tree_options_for_select(operation_categories_for_select, :selected => @operation.category), :label => l(:label_operation_category), :required => true %>
<%= f.select :account_id, accounts_for_select(@project), :label => l(:label_account), :required => true %>
<%= label_tag :operation_contact_id, l(:label_contact)%> <%= select_contact_tag('operation[contact_id]', @operation.contact, :is_select => Contact.visible.by_project(ContactsSetting.cross_project_contacts? ? nil : @project).count < 50, :include_blank => true, :add_contact => true, :display_field => @operation.contact.blank?, :is_company => RedmineFinance.settings["finance_filter_companies"]) %>
<% if RedmineFinance.operations_approval? && User.current.allowed_to?(:approve_operations, @project) %><%= f.check_box :is_approved, :label => l(:label_finance_is_approved) %>
<% end %><%= f.datetime_field :operation_date, :size => 15, :required => true, :label => l(:label_operation_date) %> <%= calendar_for('operation_operation_date') %>
<%= f.text_field :amount, :label => l(:label_operation_amount), :size => 10, :required => true %>
<%= f.select :assigned_to_id, (@project.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true, :label => l(:field_assigned_to) %>
<%= f.text_area :description, :cols => 60, :rows => 5, :class => 'wiki-edit' %><%= wikitoolbar_for 'operation_description' %>