From 2ee04d55f22131fb99501754e842c843f15c34b9 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Thu, 12 Mar 2015 15:46:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE=E9=82=80?= =?UTF-8?q?=E8=AF=B7=E7=94=A8=E6=88=B7=E7=9A=84=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/members_controller.rb | 1 + app/helpers/application_helper.rb | 9 ++++ app/helpers/members_helper.rb | 27 ++++++++++-- app/views/members/autocomplete.js.erb | 18 +++++--- app/views/projects/invite_members.html.erb | 51 +++++++++++++--------- public/stylesheets/application.css | 12 ++++- 6 files changed, 85 insertions(+), 33 deletions(-) diff --git a/app/controllers/members_controller.rb b/app/controllers/members_controller.rb index ce899eff5..a8760a6ef 100644 --- a/app/controllers/members_controller.rb +++ b/app/controllers/members_controller.rb @@ -310,6 +310,7 @@ class MembersController < ApplicationController end def autocomplete + @flag = params[:flag] || false respond_to do |format| format.js end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a36f4b183..9629ed437 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -490,6 +490,15 @@ module ApplicationHelper s.html_safe end + #项目成员列表复选框生成 + def project_member_check_box_tags_ex name, principals + s = '' + principals.each do |principal| + s << "
- <%= l(:label_role_plural) %>: - <% roles.each do |role| %> - +
- <%= submit_tag l(:label_invite_members), :id => 'member-add-submit', :style => 'display:block; width:80px; text-align:center; color:#fff; height:26px; padding-top:3px; margin-bottom:10px;' %> -
- <% end %> <% end %> -