新建issue里程碑不能选中的问题

This commit is contained in:
huang 2016-10-28 15:55:55 +08:00
parent 3699ddd398
commit bab1cbea5d
1 changed files with 10 additions and 23 deletions

View File

@ -41,12 +41,7 @@
<%# if @issue.safe_attribute?('status_id') && @allowed_statuses.present? %> <%# if @issue.safe_attribute?('status_id') && @allowed_statuses.present? %>
<%= f.select :status_id, (@allowed_statuses.collect { |p| [p.name, p.id] }), <%= f.select :status_id, (@allowed_statuses.collect { |p| [p.name, p.id] }),
{:no_label => true}, {:no_label => true},
# ajax 刷新
#:onchange => "updateIssueFrom('#{escape_javascript project_issue_form_path(@project, :id => @issue, :format => 'js')}')",
:class => "w150" %> :class => "w150" %>
<%# else %>
<%#= h(@issue.status.name) %>
<%# end %>
</li> </li>
<li> <li>
<label class="label"><span class="c_red f12">*</span><%= l(:field_priority) %></label> <label class="label"><span class="c_red f12">*</span><%= l(:field_priority) %></label>
@ -66,7 +61,7 @@
<% else %> <% else %>
<a href="javascript:void(0);" onclick="issueDetailShow();" class="sy_btn_grey mr5 fr" > 取消 </a> <a href="javascript:void(0);" onclick="issueDetailShow();" class="sy_btn_grey mr5 fr" > 取消 </a>
<% end %> <% end %>
<a href="javascript:void(0);" class="sy_btn_blue mr5 fr"> 保存并继续</a> <!--<a href="javascript:void(0);" class="sy_btn_blue mr5 fr"> 保存并继续</a>-->
<a href="javascript:void(0);" onclick="issue_desc_editor.sync();$('#issue-form').submit();" class="sy_btn_blue mr5 fr" id="issue_confirm"> 保存</a> <a href="javascript:void(0);" onclick="issue_desc_editor.sync();$('#issue-form').submit();" class="sy_btn_blue mr5 fr" id="issue_confirm"> 保存</a>
</li> </li>
</ul> </ul>
@ -89,17 +84,9 @@
<%= @issue.assigned_to.nil? ? "未指派" : "已指派" %> <%= @issue.assigned_to.nil? ? "未指派" : "已指派" %>
</li> </li>
<li class=" clear" id="versions_choise_id"> <li class=" clear" id="versions_choise_id">
<%#= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), <%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version),
{:include_blank => true, :required => @issue.required_attribute?('fixed_version_id'), :no_label => true}, {:include_blank => true, :required => @issue.required_attribute?('fixed_version_id'), :no_label => true},
{:onchange => "change_milestone_tip();",:class => "w150"} %> {:onchange => "change_milestone_tip();",:class => "w150"} %>
<%= render :partial => 'issues/versions_choise' %>
<%#= link_to(image_tag('add.png', :style => 'vertical-align: middle;'),
new_project_version_path(@issue.project),
:remote => true,
:method => 'get',
:title => l(:label_version_new),
:tabindex => 200) if User.current.allowed_to?(:manage_versions, @issue.project) %>
<!--<a href="javascript:viod(0)" class="pic_add mt5 ml5"></a>-->
</li> </li>
<li class=" clear" id="milestone_option_tips"> <li class=" clear" id="milestone_option_tips">
<%= @issue.fixed_version.nil? ? "无里程碑" : "已指派里程碑" %> <%= @issue.fixed_version.nil? ? "无里程碑" : "已指派里程碑" %>