socialforge/app/views/projects/settings/_new_modules.html.erb

24 lines
895 B
Plaintext
Raw Normal View History

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>
<%= 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">
<%= check_all_links('modules-form').html_safe %>
2015-04-11 17:28:18 +08:00
</p>
<p>
<a href="javascript:void(0)" class="blue_btn" onclick="$('#modules-form').submit();">
<%= l(:button_save) %>
</a>
2015-04-11 17:28:18 +08:00
</p>
<% end %>