Feature #10757 » RM_10657_List_of_projects_using_issue_custom_field.patch
| app/views/custom_fields/edit.rhtml (copie de travail) | ||
|---|---|---|
|
<% labelled_tabular_form_for :custom_field, @custom_field, :url => { :action => "edit", :id => @custom_field } do |f| %>
|
||
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
||
|
<%= submit_tag l(:button_save) %>
|
||
|
<% end %>
|
||
|
<%
|
||
|
if @custom_field.is_a?(IssueCustomField)
|
||
|
%>
|
||
|
<br/>
|
||
|
<br/>
|
||
|
<div class="box">
|
||
|
<fieldset><legend><%=l(:label_project_plural)%></legend>
|
||
|
<%
|
||
|
custom_field_projects = @custom_field.projects
|
||
|
if custom_field_projects.any?
|
||
|
-%>
|
||
|
<ul>
|
||
|
<%
|
||
|
custom_field_projects.each do |project|
|
||
|
-%>
|
||
|
<li><%= link_to project.name, project %></li>
|
||
|
<%
|
||
|
end
|
||
|
-%>
|
||
|
</ul>
|
||
|
<%
|
||
|
else
|
||
|
-%>
|
||
|
<b><%= t('label_x_projects.zero') %></b>
|
||
|
<%
|
||
|
end
|
||
|
-%>
|
||
|
</fieldset>
|
||
|
</div>
|
||
|
<%
|
||
|
end
|
||
|
end
|
||
|
-%>
|
||