OpenProject is the leading open source project management software.
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.
 
 
 
 
 
 
openproject/app/views/issues/_relations.html.erb

24 lines
846 B

<p>
<strong><%=l(:label_related_issues)%></strong>
<% if authorize_for('issue_relations', 'create') %>
(<%= toggle_link l(:label_add_related_issues), 'new-relation-form', {:focus => 'relation_issue_to_id'} %>)
<% end %>
</p>
<% if @relations.present? %>
<table style="width:100%">
<%= render :partial => 'issues/relation', :collection => @relations, :as => :relation %>
</table>
<% end %>
<%= form_for(@issue.new_relation,
:as => :relation,
:url => issue_relations_path(@issue),
:method => :post,
:remote => true,
:complete => "Form.Element.focus('relation_issue_to_id');",
:html => {:id => 'new-relation-form', :style => (@relation ? '' : 'display: none;')}) do |f| %>
<%= render :partial => 'issue_relations/form', :locals => {:f => f}%>
<% end %>