项目设置,模块页面

This commit is contained in:
daiao 2016-10-13 09:28:33 +08:00
parent 065ec67417
commit a0aa34b533
1 changed files with 30 additions and 10 deletions

View File

@ -1,23 +1,43 @@
<h3 class="c_blue mb10">请选择此项目可以使用的模块:</h3> <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| %> <%= 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| %> <% Redmine::AccessControl.available_project_modules.each do |m| %>
<li> <li class="clear ">
<label> <%= check_box_tag('enabled_module_names[]', m, @project.module_enabled?(m), :class=>"fl").html_safe -%>
<%= check_box_tag('enabled_module_names[]', m, @project.module_enabled?(m)).html_safe -%> <p class="fl ml5"><%= l_or_humanize(m, :prefix => "project_module_").html_safe %></p>
<%= l_or_humanize(m, :prefix => "project_module_").html_safe %>
</label>
</li> </li>
<% end %> <% end %>
<li class="clear ">
<input class="fl" type="checkbox">
<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> </ul>
</div><!--box end--> </div><!--box end-->
<p class="mb10 c_grey"> <!--p class="mb10 c_grey">
<%= check_all_links('modules-form').html_safe %> <#%= check_all_links('modules-form').html_safe %>
</p> </p>
<p> <p>
<a href="javascript:void(0)" class="blue_btn" onclick="$('#modules-form').submit();"> <a href="javascript:void(0)" class="blue_btn" onclick="$('#modules-form').submit();">
<%= l(:button_save) %> <%#= l(:button_save) %>
</a> </a>
</p> </p>
<% end %> <%# end %>-->