|
|
|
<%- user = prize_user.user -%>
|
|
|
|
<td><%= prize_user.competition_prize.name %></td>
|
|
|
|
<td><%= prize_user.rank %></td>
|
|
|
|
<td class="text-left"><%= prize_user.competition_team.name %></td>
|
|
|
|
<td><%= user.real_name %></td>
|
|
|
|
<td><%= user.identity %></td>
|
|
|
|
<td><%= user.is_teacher? ? user.user_extension.technical_title : user.user_extension.student_id %></td>
|
|
|
|
<td><%= user.school_name %></td>
|
|
|
|
<td><%= display_auth_state(user.authentication?, user.process_real_name_apply.present?) %></td>
|
|
|
|
<td><%= display_auth_state(user.professional_certification?, user.process_professional_apply.present?) %></td>
|
|
|
|
<td><%= display_auth_state user.phone_binded? %></td>
|
|
|
|
<td><%= display_auth_state prize_user.leader?, error: '' %></td>
|
|
|
|
<td><%= display_text prize_user.approved_at&.strftime('%Y-%m-%d %H:%M') %></td>
|
|
|
|
<td><%= display_text prize_user.approver&.real_name %></td>
|
|
|
|
|
|
|
|
<td class="action-container">
|
|
|
|
<% if prize_user.leader? && prize_user.competition_prize.category == 'bonus' %>
|
|
|
|
<% bank_content = [prize_user.extra&.[]('bank'), prize_user.extra&.[]('second_bank'), prize_user.extra&.[]('card_no')].compact.join('<br>').presence || '无' %>
|
|
|
|
<%= javascript_void_link('查看银行账户', data: { toggle: 'tooltip', title: bank_content.html_safe, html: true, placement: 'left' }) %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if prize_user.pending? %>
|
|
|
|
<%= link_to('审批通过', approve_admins_competition_competition_prize_user_path(prize_user.competition, prize_user),
|
|
|
|
data: { confirm: '确认审批通过吗?' },
|
|
|
|
remote: true, method: :post, class: 'approve-action') %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to('撤销审批', unapprove_admins_competition_competition_prize_user_path(prize_user.competition, prize_user),
|
|
|
|
data: { confirm: '确认撤销审批吗?' },
|
|
|
|
remote: true, method: :post, class: 'approve-action') %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|