|
|
|
@ -34,31 +34,31 @@
|
|
|
|
|
<%#= form_tag({:controller => 'issues', :action => 'index', :project_id => @project}, :method => :get,:id=>"issue_query_form", :class => 'query_form') do %>
|
|
|
|
|
<%= hidden_field_tag 'set_filter', '1' %>
|
|
|
|
|
<div class="problem_search" >
|
|
|
|
|
<input class="problem_search_input fl" id="v_subject" type="text" name="v[subject]" value="" onkeypress="EnterPress(event)" onkeydown="EnterPress()">
|
|
|
|
|
<input class="problem_search_input fl" id="v_subject" type="text" name="v[subject]" value="<%= @subject ? @subject : ""%>" onkeypress="EnterPress(event)" onkeydown="EnterPress()">
|
|
|
|
|
<a href="javascript:void(0)" class="problem_search_btn fl" onclick="remote_function();" >搜索</a>
|
|
|
|
|
</div><!--problem_search end-->
|
|
|
|
|
|
|
|
|
|
<div id="filter_form" class="fr" >
|
|
|
|
|
<%= select( :issue,:user_id, @project.members.order("lower(users.login)").map{|c| [c.name, c.user_id]}.unshift(["指派给",0]),
|
|
|
|
|
{ :include_blank => false,:selected=>0
|
|
|
|
|
{ :include_blank => false,:selected=>@assign_to_id ? @assign_to_id : 0
|
|
|
|
|
},
|
|
|
|
|
{:onchange=>"remote_function();",:id=>"assigned_to_id",:name=>"v[assigned_to_id]",:class=>"w90"}
|
|
|
|
|
)
|
|
|
|
|
%>
|
|
|
|
|
<%= select( :issue,:prior, [["低",1],["正常",2],["高",3],["紧急",4],["立刻",5]].unshift(["优先级",0]),
|
|
|
|
|
{ :include_blank => false,:selected=>0
|
|
|
|
|
{ :include_blank => false,:selected=>@priority_id ? @priority_id : 0
|
|
|
|
|
},
|
|
|
|
|
{:onchange=>"remote_function();",:id=>"priority_id",:name=>"v[priority_id]",:class=>"w90"}
|
|
|
|
|
)
|
|
|
|
|
%>
|
|
|
|
|
<%= select( :issue,:status, [["新增",1],["正在解决",2],["已解决",3],["反馈",4],["关闭",5],["拒绝",6]].unshift(["状态",0]),
|
|
|
|
|
{ :include_blank => false,:selected=>0
|
|
|
|
|
{ :include_blank => false,:selected=>@status_id ? @status_id : 0
|
|
|
|
|
},
|
|
|
|
|
{:onchange=>"remote_function();",:id=>"status_id",:name=>"v[status_id]",:class=>"w90"}
|
|
|
|
|
)
|
|
|
|
|
%>
|
|
|
|
|
<%= select( :issue,:user_id, @project.members.order("lower(users.login)").map{|c| [c.name, c.user_id]}.unshift(["作者",0]),
|
|
|
|
|
{ :include_blank => false,:selected=>0
|
|
|
|
|
{ :include_blank => false,:selected=>@author_id ? @author_id : 0
|
|
|
|
|
},
|
|
|
|
|
{:onchange=>"remote_function();",:id=>"author_id",:name=>"v[author_id]",:class=>"w90"}
|
|
|
|
|
)
|
|
|
|
|