Merge remote-tracking branch 'origin/szzh' into szzh
This commit is contained in:
commit
24a3327304
|
@ -46,7 +46,7 @@
|
||||||
) do |f| %>
|
) do |f| %>
|
||||||
<% roles.each do |role| %>
|
<% roles.each do |role| %>
|
||||||
<ul style="text-align: left;" >
|
<ul style="text-align: left;" >
|
||||||
<%= check_box_tag 'membership[role_ids][]', role.id, member.roles.include?(role),
|
<%= radio_button_tag 'membership[role_ids][]', role.id, member.roles.include?(role),
|
||||||
:disabled => member.member_roles.detect { |mr| mr.role_id == role.id && !mr.inherited_from.nil? } %>
|
:disabled => member.member_roles.detect { |mr| mr.role_id == role.id && !mr.inherited_from.nil? } %>
|
||||||
<!--编辑时候显示成员,中英文切换后面需从数据库的角度优化-->
|
<!--编辑时候显示成员,中英文切换后面需从数据库的角度优化-->
|
||||||
<% if User.current.language == "zh" %>
|
<% if User.current.language == "zh" %>
|
||||||
|
@ -64,11 +64,11 @@
|
||||||
<!--<br/>-->
|
<!--<br/>-->
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= hidden_field_tag 'membership[role_ids][]', '' %>
|
<%= hidden_field_tag 'membership[role_ids][]', '' %>
|
||||||
<div>
|
<div class="pt5">
|
||||||
<a href="javascript:void(0)" class="member_btn" onclick="$('#member-<%= member.id%>-roles-form').submit();" style="margin-right: 10px;">
|
<a href="javascript:void(0)" class="project_member_btn" onclick="$('#member-<%= member.id%>-roles-form').submit();" style="margin-right: 10px;">
|
||||||
<%= l(:button_change)%>
|
<%= l(:button_change)%>
|
||||||
</a>
|
</a>
|
||||||
<a href="javascript:void(0)" class="member_btn" onclick="$('#member-<%= member.id%>-roles-form').hide();$(this).parent().parent().parent().parent().height(30)">
|
<a href="javascript:void(0)" class="project_member_btn" onclick="$('#member-<%= member.id%>-roles-form').hide();$(this).parent().parent().parent().parent().height(30)">
|
||||||
<%= l(:button_cancel)%>
|
<%= l(:button_cancel)%>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -138,7 +138,7 @@
|
||||||
</li>
|
</li>
|
||||||
<% roles.each do |role| %>
|
<% roles.each do |role| %>
|
||||||
<li>
|
<li>
|
||||||
<%= check_box_tag 'membership[role_ids][]', role.id %>
|
<%= radio_button_tag 'membership[role_ids][]', role.id %>
|
||||||
<% if User.current.language == "zh" %>
|
<% if User.current.language == "zh" %>
|
||||||
<% if role.id == 3 %>
|
<% if role.id == 3 %>
|
||||||
<label >管理人员</label>
|
<label >管理人员</label>
|
||||||
|
@ -154,7 +154,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="cl mb10"></div>
|
<div class="cl mb10"></div>
|
||||||
<a href="javascript:void(0)" class="member_btn" onclick="$(this).parent().parent().submit();">
|
<a href="javascript:void(0)" class="project_member_btn_right" onclick="$(this).parent().parent().submit();">
|
||||||
新增成员
|
新增成员
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -545,6 +545,8 @@ blockquote {
|
||||||
.member_search_btn{ background:#15bccf; color:#fff; text-align: center; width:40px; height:22px;border:1px solid #15bccf; padding-top:2px; cursor:pointer;}
|
.member_search_btn{ background:#15bccf; color:#fff; text-align: center; width:40px; height:22px;border:1px solid #15bccf; padding-top:2px; cursor:pointer;}
|
||||||
.member_search_btn:hover{ background:#0da1b2; border:1px solid #0da1b2;}
|
.member_search_btn:hover{ background:#0da1b2; border:1px solid #0da1b2;}
|
||||||
a.member_btn{ padding:5px; background:#15bccf; color:#fff;}
|
a.member_btn{ padding:5px; background:#15bccf; color:#fff;}
|
||||||
|
a.project_member_btn{ padding:1px 5px; background:#15bccf; color:#fff;}
|
||||||
|
a.project_member_btn_right{ padding:2px 5px; background:#15bccf; color:#fff;}
|
||||||
a:hover.member_btn{ background:#329cbd;}
|
a:hover.member_btn{ background:#329cbd;}
|
||||||
.pro_table{ text-align:center; color:#333; margin-bottom:20px;}
|
.pro_table{ text-align:center; color:#333; margin-bottom:20px;}
|
||||||
.pro_table tr td{ height:30px;}
|
.pro_table tr td{ height:30px;}
|
||||||
|
|
|
@ -114,6 +114,7 @@ h4{ font-size:14px; color:#3b3b3b;}
|
||||||
.mb10{ margin-bottom:10px !important;}
|
.mb10{ margin-bottom:10px !important;}
|
||||||
.mb20{ margin-bottom:20px;}
|
.mb20{ margin-bottom:20px;}
|
||||||
.pl15{ padding-left:15px;}
|
.pl15{ padding-left:15px;}
|
||||||
|
.pt5{ padding-top:5px;}
|
||||||
.w20{ width:20px;}
|
.w20{ width:20px;}
|
||||||
.w40{width: 40px;}
|
.w40{width: 40px;}
|
||||||
.w45{ width: 45px;}
|
.w45{ width: 45px;}
|
||||||
|
|
Loading…
Reference in New Issue