%- user = prize_user.user -%>
<%= prize_user.competition_prize.name %> |
<%= prize_user.rank %> |
<%= prize_user.competition_team.name %> |
<%= user.real_name %> |
<%= user.identity %> |
<%= user.is_teacher? ? user.user_extension.technical_title : user.user_extension.student_id %> |
<%= user.school_name %> |
<%= display_auth_state(user.authentication?, user.process_real_name_apply.present?) %> |
<%= display_auth_state(user.professional_certification?, user.process_professional_apply.present?) %> |
<%= display_auth_state user.phone_binded? %> |
<%= display_auth_state prize_user.leader?, error: '' %> |
<%= display_text prize_user.approved_at&.strftime('%Y-%m-%d %H:%M') %> |
<%= display_text prize_user.approver&.real_name %> |
<% 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(' ').presence || '无' %>
<%= javascript_void_link('查看银行账户', data: { toggle: 'tooltip', title: bank_content.html_safe, html: true, placement: 'left', trigger: 'click' }) %>
<% prize_module = prize_user.competition&.competition_modules.find_by(module_type: 'certificate') %>
<% if prize_module %>
<%= link_to('编辑', EduSetting.get("host_name").to_s + "/competitions/#{prize_user.competition&.identifier}?menu=#{prize_module&.id}&user_id=#{user.id}", target: "_blank") %>
<% end %>
<% end %>
<% if prize_user.pending? %>
<%= link_to('审批通过', approve_cooperative_competition_competition_prize_user_path(prize_user.competition, prize_user),
data: { confirm: '确认审批通过吗?' },
remote: true, method: :post, class: 'approve-action') %>
<% else %>
<%= link_to('撤销审批', unapprove_cooperative_competition_competition_prize_user_path(prize_user.competition, prize_user),
data: { confirm: '确认撤销审批吗?' },
remote: true, method: :post, class: 'approve-action') %>
<% end %>
|