diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb index 2e50188..5a90cc0 100644 --- a/app/views/custom_fields/_form.html.erb +++ b/app/views/custom_fields/_form.html.erb @@ -27,33 +27,12 @@ <% case @custom_field.class.name when "IssueCustomField" %>

<%= f.check_box :is_required %>

-

<%= f.check_box :is_for_all, :data => {:disables => '#custom_field_project_ids input'} %>

<% if @custom_field.format.is_filter_supported %>

<%= f.check_box :is_filter %>

<% end %> <% if @custom_field.format.searchable_supported %>

<%= f.check_box :searchable %>

<% end %> -

- - - - <% Role.givable.sorted.each do |role| %> - - <% end %> - <%= hidden_field_tag 'custom_field[role_ids][]', '' %> -

<% when "UserCustomField" %>

<%= f.check_box :is_required %>

@@ -99,6 +78,27 @@ when "IssueCustomField" %> <% if @custom_field.is_a?(IssueCustomField) %> + +
<%= l(:field_visible) %> + + + <% Role.givable.sorted.each do |role| %> + + <% end %> + <%= hidden_field_tag 'custom_field[role_ids][]', '' %> +
+
<%=l(:label_tracker_plural)%> <% Tracker.sorted.each do |tracker| %> <%= check_box_tag "custom_field[tracker_ids][]", @@ -113,13 +113,17 @@ when "IssueCustomField" %>

<%= check_all_links 'custom_field_tracker_ids' %>

-
<%= l(:label_project_plural) %> - <% project_ids = @custom_field.project_ids.to_a %> - <%= render_project_nested_lists(Project.all) do |p| - content_tag('label', check_box_tag('custom_field[project_ids][]', p.id, project_ids.include?(p.id), :id => nil) + ' ' + p) - end %> - <%= hidden_field_tag('custom_field[project_ids][]', '', :id => nil) %> -

<%= check_all_links 'custom_field_project_ids' %>

+
<%= l(:label_project_plural) %> +

<%= f.check_box :is_for_all, :data => {:disables => '#custom_field_project_ids input'} %>

+ +
+ <% project_ids = @custom_field.project_ids.to_a %> + <%= render_project_nested_lists(Project.all) do |p| + content_tag('label', check_box_tag('custom_field[project_ids][]', p.id, project_ids.include?(p.id), :id => nil) + ' ' + p) + end %> + <%= hidden_field_tag('custom_field[project_ids][]', '', :id => nil) %> +

<%= check_all_links 'custom_field_project_ids' %>

+
<% end %>