%= 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 => 6 %>
<%= javascript_tag "setPredecessorFieldsVisibility();" %> <%= submit_tag l(:button_add) %>