42 lines
2.1 KiB
Plaintext
42 lines
2.1 KiB
Plaintext
<div class="pro_new_prompt ml15 mr15 mb10"><p>问题跟踪模块与实训模块不能同时选择</p><p>一旦选定并保存后,将不能修改</p></div>
|
|
<ul class="pro_newsetting_con ml30 mb15">
|
|
<h2 class="pro_newsetting_title">请选择此项目可以使用的模块:</h2>
|
|
<%= form_for @project,:url => { :action => 'modules', :id => @project },:html => {:id => 'modules-form',:method => :post} do |f| %>
|
|
<% Redmine::AccessControl.available_project_modules.each do |m| %>
|
|
<li class="clear">
|
|
<%= check_box_tag('enabled_module_names[]', m, @project.module_enabled?(m), :class=>"fl mt8", :id => 'project_module_'+m.to_s ).html_safe -%>
|
|
<p class="fl ml5"><%= l_or_humanize(m, :prefix => "project_module_").html_safe %></p>
|
|
</li>
|
|
<% end %>
|
|
<li class="clear ">
|
|
<p class="fl ml5"><%= check_all_links('modules-form').html_safe %></p>
|
|
</li>
|
|
<% end %>
|
|
<li class="clear">
|
|
<a href="javascript:void(0);" class="sy_btn_blue mr15 fr" onclick="$('#modules-form').submit()"> <%= l(:button_save) %></a>
|
|
</li>
|
|
</ul>
|
|
|
|
<script>
|
|
$(function(){
|
|
if($("#project_module_issue_tracking").is(":checked")){
|
|
$("#project_module_training_tasks").attr('disabled', 'disabled')
|
|
}else if($("#project_module_training_tasks").is(":checked")){
|
|
$("#project_module_issue_tracking").attr('disabled', 'disabled');
|
|
}
|
|
$("#project_module_issue_tracking").on('click', function(){
|
|
if($("#project_module_issue_tracking").is(":checked")) {
|
|
$("#project_module_training_tasks").attr('disabled', 'disabled');
|
|
}else{
|
|
$("#project_module_training_tasks").removeAttr('disabled');
|
|
}
|
|
});
|
|
$("#project_module_training_tasks").on('click', function(){
|
|
if($("#project_module_training_tasks").is(":checked")){
|
|
$("#project_module_issue_tracking").attr('disabled', 'disabled');
|
|
}else {
|
|
$("#project_module_issue_tracking").removeAttr('disabled');
|
|
}
|
|
});
|
|
});
|
|
</script> |