You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.4 KiB
26 lines
1.4 KiB
5 years ago
|
<%- 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.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>
|