设置 删除 编辑按钮做成项目一样的
This commit is contained in:
parent
c2e783d78b
commit
df0051cdd4
|
@ -36,7 +36,7 @@
|
|||
</li>
|
||||
<!-- -->
|
||||
<% if ( (User.current.id == member.organization.creator_id || member.roles[0].name == "orgManager" ) && member.user_id != member.organization.creator_id )%>
|
||||
<a href="javascript:void(0);" style="color: #0781B4;margin-left: 30px;float: left" onclick="$(this).parent().parent().height(70);$('#org-member-<%= member.id%>-roles-form').show();">编辑</a>
|
||||
<a href="javascript:void(0);" style="color: #0781B4;margin-left: 30px;float: left" onclick="$(this).parent().height(70);$('#org-member-<%= member.id%>-roles-form').show();">编辑</a>
|
||||
<%= link_to '删除', org_member_path(member.id),:method=>'delete',:style=>'color: #0781B4;margin-left: 30px;float: left',:confirm=>'您确定要删除么?', :remote => true %><% end %>
|
||||
<div class="cl"></div>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue