% # Code Review plugin for Redmine # Copyright (C) 2010-2012 Haruyuki Iida # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -%>
<%= f.check_box :tracker_in_review_dialog %>
<%=h l(:select_tracker_for_code_reviews)%>:<%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %>
<%=h l(:select_tracker_for_code_review_assignment)%>:<%= f.select :assignment_tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %>
<%= f.check_box :hide_code_review_tab %>
<%= f.radio_button(:auto_relation, CodeReviewProjectSetting::AUTORELATION_TYPE_RELATES) %> <%=h l(:label_review_issue_relates) %> <%= f.radio_button(:auto_relation, CodeReviewProjectSetting::AUTORELATION_TYPE_BLOCKS) %> <%=h l(:label_review_issue_blocks) %> <%= f.radio_button(:auto_relation, CodeReviewProjectSetting::AUTORELATION_TYPE_NONE) %> <%=h l(:label_review_issue_do_nothing) %>
<% @auto_assign = @code_review_setting.auto_assign_settings @auto_assign.subject = l(:code_review_requrest) if @auto_assign.subject.blank? -%> <%= check_box_tag "auto_assign[enabled]", true, @auto_assign.enabled?, :onchange => 'setAutoAssignSettingFormEnable();'%><%=h l(:button_activate)%>
<%= select :auto_assign, :author_id, (@project.users.collect {|user| [user.name, user.id] }), :selected => @auto_assign.author_id, :required => true %>
<% @project.users.each do |user| %> <% end %>
<%= text_field(:auto_assign, :subject, :size => 70) %>
<%= text_area :auto_assign, :description, :cols => 30, :rows => 12, :accesskey => accesskey(:edit), :class => 'wiki-edit' %>