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.

_relations.html.erb 791B

12345678910111213141516171819202122
  1. <div class="contextual">
  2. <% if User.current.allowed_to?(:manage_issue_relations, @project) %>
  3. <%= toggle_link l(:button_add), 'new-relation-form', {:focus => 'relation_issue_to_id'} %>
  4. <% end %>
  5. </div>
  6. <p><strong><%=l(:label_related_issues)%></strong></p>
  7. <% if @relations.present? %>
  8. <%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do %>
  9. <%= render_issue_relations(@issue, @relations) %>
  10. <% end %>
  11. <% end %>
  12. <%= form_for @relation, {
  13. :as => :relation, :remote => true,
  14. :url => issue_relations_path(@issue),
  15. :method => :post,
  16. :html => {:id => 'new-relation-form', :style => 'display: none;'}
  17. } do |f| %>
  18. <%= render :partial => 'issue_relations/form', :locals => {:f => f}%>
  19. <% end %>