You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_form.html.erb 797B

1234567891011121314
  1. <%= error_messages_for 'relation' %>
  2. <p><%= f.select :relation_type, collection_for_relation_type_select, {}, :onchange => "setPredecessorFieldsVisibility();" %>
  3. <%= l(:label_issue) %> #<%= f.text_field :issue_to_id, :size => 10 %>
  4. <span id="predecessor_fields" style="display:none;">
  5. <%= l(:field_delay) %>: <%= f.text_field :delay, :size => 3 %> <%= l(:label_day_plural) %>
  6. </span>
  7. <%= submit_tag l(:button_add) %>
  8. <%= link_to_function l(:button_cancel), '$("#new-relation-form").hide();'%>
  9. </p>
  10. <%= javascript_tag "observeAutocompleteField('relation_issue_to_id', '#{escape_javascript auto_complete_issues_path(:project_id => @project, :scope => (Setting.cross_project_issue_relations? ? 'all' : nil), :issue_id => @issue.id)}')" %>
  11. <%= javascript_tag "setPredecessorFieldsVisibility();" %>