summaryrefslogtreecommitdiffstats
path: root/app/views/trackers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-05 12:20:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-05 12:20:07 +0000
commit4cecc1beeda2337f50090d9fc0fe1d54fb8d54e2 (patch)
treeae525d4ae044a57c48e01462eb76e34e485ed6e3 /app/views/trackers
parent51a1bf90dda6bc22b29b3801fbb7139b891376e5 (diff)
downloadredmine-4cecc1beeda2337f50090d9fc0fe1d54fb8d54e2.tar.gz
redmine-4cecc1beeda2337f50090d9fc0fe1d54fb8d54e2.zip
Ability to disable standard fields on a per tracker basis (#1091).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9912 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/trackers')
-rw-r--r--app/views/trackers/_form.html.erb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/trackers/_form.html.erb b/app/views/trackers/_form.html.erb
index bfbed3b6b..e8819f41d 100644
--- a/app/views/trackers/_form.html.erb
+++ b/app/views/trackers/_form.html.erb
@@ -6,6 +6,17 @@
<p><%= f.text_field :name, :required => true %></p>
<p><%= f.check_box :is_in_roadmap %></p>
+<p>
+ <label><%= l(:field_core_fields) %></label>
+ <% Tracker::CORE_FIELDS.each do |field| %>
+ <label class="block">
+ <%= check_box_tag 'tracker[core_fields][]', field, @tracker.core_fields.include?(field) %>
+ <%= l("field_#{field}".sub(/_id$/, '')) %>
+ </label>
+ <% end %>
+</p>
+<%= hidden_field_tag 'tracker[core_fields][]', '' %>
+
<% if IssueCustomField.all.any? %>
<p>
<label><%= l(:label_custom_field_plural) %></label>