%= 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 "observeAutocompleteField('relation_issue_to_id', '#{escape_javascript auto_complete_issues_path(:id => @issue, :project_id => @project, :scope => 'all')}')" %> <%= javascript_tag "setPredecessorFieldsVisibility();" %> <%= submit_tag l(:button_add) %> <%= toggle_link l(:button_cancel), 'new-relation-form'%>