新建issue里程碑不能选中的问题
This commit is contained in:
parent
3699ddd398
commit
bab1cbea5d
|
@ -40,20 +40,15 @@
|
||||||
<label class="label"><span class="c_red f12">*</span><%= l(:field_status) %>:</label>
|
<label class="label"><span class="c_red f12">*</span><%= l(:field_status) %>:</label>
|
||||||
<%# 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 刷新
|
:class => "w150" %>
|
||||||
#:onchange => "updateIssueFrom('#{escape_javascript project_issue_form_path(@project, :id => @issue, :format => 'js')}')",
|
|
||||||
: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>
|
||||||
<% if @issue.safe_attribute? 'priority_id' %>
|
<% if @issue.safe_attribute? 'priority_id' %>
|
||||||
<%= f.select :priority_id, (@priorities.collect { |p| [p.name, p.id] }),
|
<%= f.select :priority_id, (@priorities.collect { |p| [p.name, p.id] }),
|
||||||
{:required => true, :no_label => true}, :disabled => !@issue.leaf?,
|
{:required => true, :no_label => true}, :disabled => !@issue.leaf?,
|
||||||
:class => "w150" %>
|
:class => "w150" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<li class="clear">
|
<li class="clear">
|
||||||
|
@ -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>
|
||||||
|
@ -81,25 +76,17 @@
|
||||||
<li class=" clear">
|
<li class=" clear">
|
||||||
<% if @issue.safe_attribute? 'assigned_to_id' %>
|
<% if @issue.safe_attribute? 'assigned_to_id' %>
|
||||||
<%= f.select :assigned_to_id, assigned_options_for_select(@issue.assignable_users, @issue.assigned_to),
|
<%= f.select :assigned_to_id, assigned_options_for_select(@issue.assignable_users, @issue.assigned_to),
|
||||||
{:required => @issue.required_attribute?('assigned_to_id'), :no_label => true},
|
{:required => @issue.required_attribute?('assigned_to_id'), :no_label => true},
|
||||||
{:onchange => "change_assigned_tip();",:class => "w150"} %>
|
{:onchange => "change_assigned_tip();",:class => "w150"} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<li class=" clear" id="assigned_to_tips">
|
<li class=" clear" id="assigned_to_tips">
|
||||||
<%= @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? ? "无里程碑" : "已指派里程碑" %>
|
||||||
|
|
Loading…
Reference in New Issue