<!--<p id="notice"><%#= notice %></p>-->

<h1>竞赛配置(弃用)<a href="/managements/competition/customize" style="font-size: 28px;">>>前往定制竞赛管理页面</a></h1>
<p>说明：该界面适用于竞赛参数配置</p>

<table border="1">
  <thead>
    <tr>
      <th>ID</th>
      <th>唯一标识</th>
      <th>赛事标题</th>
      <th>报名截止时间</th>
      <th>提案截止时间</th>
      <th>赛区配置</th>
      <th>赛项配置</th>
      <th>是否内网环境</th>
      <th colspan="2">操作</th>
    </tr>
  </thead>

  <tbody>
    <% @competition_infos.each do |info| %>
      <tr>
        <td><%= info.id %></td>
        <td><%= info.identifier %></td>
        <td><%= info.title %></td>
        <td><%= info.enroll_date&.strftime('%Y-%m-%d %H:%M') %></td>
        <td><%= info.upload_date&.strftime('%Y-%m-%d %H:%M') %></td>
        <td><%= info.is_local? ? info.zones_local : info.zones %></td>
        <td><%= info.sub_competitions %></td>
        <td><%= info.is_local? %></td>
        <td><%= link_to 'Edit', edit_competition_info_path(info) %></td>
        <td><%= link_to 'Destroy', info, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to '新增竞赛', new_competition_info_path %>
