diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-09 10:58:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-09 10:58:51 +0000 |
commit | 34d14be556e38774b399517e48c561f2c8b72776 (patch) | |
tree | e81a8d6169d7d493a362ca6bfeee809e962ceb2a /app/views/trackers | |
parent | 8f9f56502d16b822e36089842094a581c090a45f (diff) | |
download | redmine-34d14be556e38774b399517e48c561f2c8b72776.tar.gz redmine-34d14be556e38774b399517e48c561f2c8b72776.zip |
Adds custom field selection on tracker form.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3145 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/trackers')
-rw-r--r-- | app/views/trackers/_form.rhtml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/trackers/_form.rhtml b/app/views/trackers/_form.rhtml index d8d35ba36..a14122c6b 100644 --- a/app/views/trackers/_form.rhtml +++ b/app/views/trackers/_form.rhtml @@ -6,6 +6,20 @@ <p><%= f.text_field :name, :required => true %></p> <p><%= f.check_box :is_in_chlog %></p> <p><%= f.check_box :is_in_roadmap %></p> + +<% if IssueCustomField.all.any? %> +<p> + <label><%= l(:label_custom_field_plural) %></label> + <% IssueCustomField.all.each do |field| %> + <label class="block"> + <%= check_box_tag 'tracker[custom_field_ids][]',field.id, @tracker.custom_fields.include?(field) %> + <%=h field.name %> + </label> + <% end %> +</p> +<%= hidden_field_tag 'tracker[custom_field_ids][]', '' %> +<% end %> + <% if @tracker.new_record? && @trackers.any? %> <p><label><%= l(:label_copy_workflow_from) %></label> <%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@trackers, :id, :name)) %></p> |