<div class="modal fade admin-save-competition-prize-modal" tabindex="-1" role="dialog" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title"><%= title ||= '保存奖项设置' %></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <%= simple_form_for([:admins, prize.competition, prize], data: { form_method: form_method }, html: { class: 'admin-save-competition-prize-form' }, defaults: { wrapper_html: { class: 'offset-md-1 col-md-10' } }) do |f| %>

          <%= f.input :name, label: '奖项名称：', placeholder: '请输入奖项名称' %>
          <%= f.input :num, as: :integer, label: '数量：', placeholder: '请输入数量', input_html: { min: 1 } %>

          <%= f.input :category, label: '奖励类型：' do %>
            <%= f.select :category, [%w(奖金 bonus), %w(无 unset)], {}, class: 'form-control' %>
          <% end %>

          <div class="error text-danger"></div>
        <% end %>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary submit-btn">确认</button>
      </div>
    </div>
  </div>
</div>