43 lines
1.8 KiB
Plaintext
43 lines
1.8 KiB
Plaintext
<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").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>
|
|
|
|
|
|
<!--h2 class="c_blue mb10">请选择此项目可以使用的模块:</h2>
|
|
<%#= form_for @project,:url => { :action => 'modules', :id => @project },:html => {:id => 'modules-form',:method => :post} do |f| %>
|
|
<div class="box pl15">
|
|
<ul>
|
|
<%# Redmine::AccessControl.available_project_modules.each do |m| %>
|
|
<li>
|
|
<label>
|
|
<%#= check_box_tag('enabled_module_names[]', m, @project.module_enabled?(m)).html_safe -%>
|
|
<%#= l_or_humanize(m, :prefix => "project_module_").html_safe %>
|
|
</label>
|
|
</li>
|
|
<%# end %>
|
|
</ul>
|
|
</div><!--box end-->
|
|
<!--p class="mb10 c_grey">
|
|
<#%= check_all_links('modules-form').html_safe %>
|
|
</p>
|
|
<p>
|
|
<a href="javascript:void(0)" class="blue_btn" onclick="$('#modules-form').submit();">
|
|
<%#= l(:button_save) %>
|
|
</a>
|
|
</p>
|
|
<%# end %>-->
|