|
|
|
@ -30,17 +30,20 @@
|
|
|
|
|
stopPropagation(e);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
function remote_function(id) {
|
|
|
|
|
$(id).submit();
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div class="proInfoBox2 mb10 mt10">
|
|
|
|
|
<ul class="fl">
|
|
|
|
|
<%= form_tag({:controller => 'issues', :action => 'update', :project_id => activity.project},:remote=>'true', :method => :post, :id=>"issue_query_form_#{activity.id}", :class => 'query_form') do %>
|
|
|
|
|
<li>
|
|
|
|
|
<p class="label03"> 状态 : </p>
|
|
|
|
|
<p class="proInfoP"><span><%= activity.status.name %></span> <a href="javascript:void(0)" class="pic_edit2 ml5"></a></p>
|
|
|
|
|
<%= select( :issue,:status, [["新增",1],["正在解决",2],["已解决",3],["反馈",4],["关闭",5],["拒绝",6]].unshift(["状态",0]),
|
|
|
|
|
{ :include_blank => false,:selected=>@status_id ? @status_id : 0
|
|
|
|
|
},
|
|
|
|
|
{:onchange=>"remote_function();",:id=>"status_id",:name=>"status_id",:class=>"w70 undis issueEdit"}
|
|
|
|
|
{:include_blank => false, :selected => @status_id ? @status_id : 0 },
|
|
|
|
|
{:onchange=>"remote_function('#issue_query_form_#{activity.id}');",:id=>"status_id",:name=>"status_id",:class=>"w70 undis issueEdit"}
|
|
|
|
|
)
|
|
|
|
|
%>
|
|
|
|
|
</li>
|
|
|
|
@ -53,7 +56,7 @@
|
|
|
|
|
<%= select( :issue, :user_id, principals_options_for_isuue_list(activity.project),
|
|
|
|
|
{ :include_blank => false,:selected=>@assign_to_id ? @assign_to_id : 0
|
|
|
|
|
},
|
|
|
|
|
{:onchange=>"remote_function();",:id=>"assigned_to_id",:name=>"assigned_to_id",:class=>"w70 undis issueEdit"}
|
|
|
|
|
{:onchange=>"remote_function();",:id=>"assigned_to_id", :name => "assigned_to_id",:class=>"w70 undis issueEdit"}
|
|
|
|
|
)
|
|
|
|
|
%>
|
|
|
|
|
</li>
|
|
|
|
@ -75,7 +78,7 @@
|
|
|
|
|
<p class="label03"> 完成度 : </p>
|
|
|
|
|
<span class="proInfoP" style="width:70px;"><span><%= activity.done_ratio %>%</span> <a href="javascript:void(0)" class="pic_edit2 ml5"></a> </span>
|
|
|
|
|
<%= select( :issue,:done_ratio, ((0..10).to_a.collect { |r| ["#{r*10} %", r*10] }),
|
|
|
|
|
{ :include_blank => false,:selected=>@priority_id ? @priority_id : 0
|
|
|
|
|
{ :include_blank => false, :selected => @priority_id ? @priority_id : 0
|
|
|
|
|
},
|
|
|
|
|
{:onchange=>"remote_function();",:id=>"priority_id",:name=>"priority_id",:class=>"w70 undis issueEdit"}
|
|
|
|
|
)
|
|
|
|
@ -85,6 +88,7 @@
|
|
|
|
|
:onchange => "PrecentChange(this.value)",
|
|
|
|
|
:class => "w150" %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</ul>
|
|
|
|
|
<ul class="fl ">
|
|
|
|
|