24 lines
895 B
Plaintext
24 lines
895 B
Plaintext
<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>
|
|
<%= 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 %>
|