2015-04-11 17:28:18 +08:00
|
|
|
<h3 class="c_blue mb10">请选择此项目可以使用的模块:</h3>
|
|
|
|
<%= 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>
|
2015-04-16 09:49:03 +08:00
|
|
|
<%= check_box_tag('enabled_module_names[]', m, @project.module_enabled?(m)).html_safe -%>
|
|
|
|
<%= l_or_humanize(m, :prefix => "project_module_").html_safe %>
|
2015-04-11 17:28:18 +08:00
|
|
|
</label>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div><!--box end-->
|
|
|
|
<p class="mb10 c_grey">
|
2015-04-16 09:49:03 +08:00
|
|
|
<%= check_all_links('modules-form').html_safe %>
|
2015-04-11 17:28:18 +08:00
|
|
|
</p>
|
|
|
|
<p>
|
2015-04-16 09:49:03 +08:00
|
|
|
<a href="javascript:void(0)" class="blue_btn" onclick="$('#modules-form').submit();">
|
2015-04-14 23:58:27 +08:00
|
|
|
<%= l(:button_save) %>
|
|
|
|
</a>
|
2015-04-11 17:28:18 +08:00
|
|
|
</p>
|
|
|
|
<% end %>
|