%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2013 the OpenProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. See doc/COPYRIGHT.rdoc for more details. ++#%> <%= error_messages_for 'relation' %>
<%= f.select :relation_type, collection_for_relation_type_select, {}, :onchange => "setPredecessorFieldsVisibility();" %> <%= Issue.model_name.human %> #<%= f.text_field :issue_to_id, :size => 10 %>
<%= javascript_tag "observeRelatedIssueField('#{issues_auto_complete_path(:id => @issue, :project_id => @project, :escape => false) }')" %> <%= submit_tag l(:button_add) %> <%= toggle_link l(:button_cancel), 'new-relation-form'%> <%= javascript_tag "setPredecessorFieldsVisibility();" %>