%= error_messages_for 'relation' %>
<%= f.select :relation_type, collection_for_relation_type_select, {}, :onchange => "setPredecessorFieldsVisibility();" %> <%= l(:label_issue) %> #<%= f.text_field :issue_to_id, :size => 10 %>
<%= javascript_tag "observeRelatedIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project, :escape => false) }')" %> <%= submit_tag l(:button_add) %> <%= toggle_link l(:button_cancel), 'new-relation-form'%> <%= javascript_tag "setPredecessorFieldsVisibility();" %>