Project

General

Profile

Feature #10757 » RM_10657_List_of_projects_using_issue_custom_field.patch

Jérôme BATAILLE, 2012-04-24 18:05

View differences:

app/views/custom_fields/edit.rhtml (copie de travail)
5 5
<% labelled_tabular_form_for :custom_field, @custom_field, :url => { :action => "edit", :id => @custom_field } do |f| %>
6 6
<%= render :partial => 'form', :locals => { :f => f } %>
7 7
<%= submit_tag l(:button_save) %>
8
<% end %>
8
<%
9
  if @custom_field.is_a?(IssueCustomField)
10
%>
11
<br/>
12
<br/>
13
<div class="box">
14
  <fieldset><legend><%=l(:label_project_plural)%></legend>
15
<%
16
    custom_field_projects = @custom_field.projects
17
    if custom_field_projects.any?
18
-%>
19
    <ul>
20
<%
21
      custom_field_projects.each do |project|
22
-%>
23
      <li><%= link_to project.name, project %></li>
24
<%
25
      end
26
-%>
27
    </ul>
28
<%
29
    else
30
-%>
31
<b><%= t('label_x_projects.zero') %></b>
32
<%
33
    end
34
-%>
35
  </fieldset>
36
</div>
37
<%
38
  end
39
end
40
-%>
    (1-1/1)