<%= index + 1 %> |
<%= link_to member.user.show_name, user_path(member.user), :class => "pro_new_idname ml10 mr10", :title => "#{member.user.show_name}" %>
|
<%=member.user.user_extensions.school ? member.user.user_extensions.school.name : '--' %>
|
<%= zh_contest_role(h member.roles.sort.collect(&:to_s).join(', ')) %>
<%= form_for(member, {:as => :membership, :remote => true, :url => contest_member_path(member),
:method => :put,
:html => {:id => "member-#{member.id}-roles-form", :class => 'hol'}}
) do |f| %>
<% end %>
|
<% if User.current.admin_of_contest?(@contest) %>
编辑
保存
取消
<% unless member.user == @contest.user %>
删除
<%#= delete_link contest_member_path(member),
:remote => true,
:class => "sy_btn_grey mr5",
:id => "delete_member_#{member.id}",
:data => ({confirm: l(:label_delete_confirm)}) %>
<% end %>
<% end%>
|
<% end %>