完成配置---模块
This commit is contained in:
parent
fb935f124c
commit
01f56a761f
|
@ -1,20 +1,14 @@
|
||||||
<%= form_for @project,
|
<%= form_for @project,:url => { :action => 'modules', :id => @project },:html => {:id => 'modules-form',:method => :post} do |f| %>
|
||||||
:url => { :action => 'modules', :id => @project },
|
<fieldset class="box">
|
||||||
:html => {:id => 'modules-form',
|
<legend><%= l(:text_select_project_modules) %></legend>
|
||||||
:method => :post} do |f| %>
|
|
||||||
|
|
||||||
<fieldset class="box">
|
<% Redmine::AccessControl.available_project_modules.each do |m| %>
|
||||||
<legend><%= l(:text_select_project_modules) %></legend>
|
|
||||||
|
|
||||||
<% Redmine::AccessControl.available_project_modules.each do |m| %>
|
<p><label><%= check_box_tag 'enabled_module_names[]', m, @project.module_enabled?(m) -%>
|
||||||
|
<%= l_or_humanize(m, :prefix => "project_module_") %></label></p>
|
||||||
<p><label><%= check_box_tag 'enabled_module_names[]', m, @project.module_enabled?(m) -%>
|
|
||||||
<%= l_or_humanize(m, :prefix => "project_module_") %></label></p>
|
|
||||||
|
|
||||||
<% end %>
|
|
||||||
</fieldset>
|
|
||||||
<p><%= check_all_links 'modules-form' %></p>
|
|
||||||
|
|
||||||
<p><%= submit_tag l(:button_save) %></p>
|
|
||||||
|
|
||||||
|
<% end %>
|
||||||
|
</fieldset>
|
||||||
|
<p><%= check_all_links 'modules-form' %></p>
|
||||||
|
<p><%= submit_tag l(:button_save) %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -1,19 +1,24 @@
|
||||||
<div class="box pl15">
|
<h3 class="c_blue mb10">请选择此项目可以使用的模块:</h3>
|
||||||
<h3 class="c_blue mb10">请选择此项目可以使用的模块:</h3>
|
<%= form_for @project,:url => { :action => 'modules', :id => @project },:html => {:id => 'modules-form',:method => :post} do |f| %>
|
||||||
<ul>
|
<div class="box pl15">
|
||||||
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 问题跟踪</label></li>
|
<ul>
|
||||||
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 时间跟踪</label></li>
|
<% Redmine::AccessControl.available_project_modules.each do |m| %>
|
||||||
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 新闻</label></li>
|
<li>
|
||||||
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 文档</label></li>
|
<label>
|
||||||
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 资源库</label></li>
|
<%= check_box_tag 'enabled_module_names[]', m, @project.module_enabled?(m) -%>
|
||||||
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> Wiki</label></li>
|
<%= l_or_humanize(m, :prefix => "project_module_") %>
|
||||||
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 版本库</label></li>
|
</label>
|
||||||
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 讨论区</label></li>
|
</li>
|
||||||
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 日历</label></li>
|
<% end %>
|
||||||
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 甘特图</label></li>
|
</ul>
|
||||||
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> DTS测试工具</label></li>
|
</div><!--box end-->
|
||||||
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 代码审查</label></li>
|
<p class="mb10 c_grey">
|
||||||
</ul>
|
<a href="javascript:void(0)" class="c_purple" onclick="checkAll('modules-form', true);return false;">全选</a>
|
||||||
</div><!--box end-->
|
|
|
||||||
<p class="mb10 c_grey"><a href="javascript:void(0)" class=" c_purple">全选</a> | <a href="javascript:void(0)" class=" c_purple" >清除</a></p>
|
<a href="javascript:void(0)" class=" c_purple" onclick="checkAll('modules-form', false); return false;" >清除</a>
|
||||||
<p><a href="javascript:void(0)" class="blue_btn" >保存</a></p>
|
</p>
|
||||||
|
<p>
|
||||||
|
<a href="javascript:void(0)" class="blue_btn" >保存</a>
|
||||||
|
</p>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
|
@ -174,7 +174,7 @@ function project_setting(n)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$("#pro_st_tb_"+i).removeClass().addClass("pro_st_dis");
|
$("#pro_st_tb_"+i).removeClass().addClass("pro_st_normaltab");
|
||||||
$("#pro_st_tbc_0"+i).removeClass().addClass("pro_st_undis");
|
$("#pro_st_tbc_0"+i).removeClass().addClass("pro_st_undis");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -363,9 +363,9 @@ blockquote {
|
||||||
.pro_st_tb_{ border-bottom:3px solid #e4e4e4; text-align:center; margin-bottom:10px; }
|
.pro_st_tb_{ border-bottom:3px solid #e4e4e4; text-align:center; margin-bottom:10px; }
|
||||||
.pro_st_tb_ ul{height:24px;}
|
.pro_st_tb_ ul{height:24px;}
|
||||||
.pro_st_tb_ li{float:left;height: 24px;width: auto; padding:0 10px;cursor:pointer; }
|
.pro_st_tb_ li{float:left;height: 24px;width: auto; padding:0 10px;cursor:pointer; }
|
||||||
.pro_st_normaltab { color:#15bccf ; border-bottom:3px solid #e4e4e4; }
|
.pro_st_normaltab{ color:#15bccf ; border-bottom:3px solid #e4e4e4; }
|
||||||
.pro_st_hovertab { color:#656767; font-weight:bold; border-bottom:3px solid #15bccf; }
|
.pro_st_hovertab{ color:#656767; font-weight:bold; border-bottom:3px solid #15bccf; }
|
||||||
.pro_st_normaltab a { color:#64bdd9 ; }
|
.pro_st_normaltab a{ color:#64bdd9 ; }
|
||||||
.pro_st_hovertab a{color:#fff; background-color:#64bdd9; text-decoration:none;}
|
.pro_st_hovertab a{color:#fff; background-color:#64bdd9; text-decoration:none;}
|
||||||
.pro_st_dis{display:block; }
|
.pro_st_dis{display:block; }
|
||||||
.pro_st_undis{display:none;}
|
.pro_st_undis{display:none;}
|
||||||
|
|
Loading…
Reference in New Issue