<div class="breadcrumb-container">
  <nav aria-label="breadcrumb">
    <ol class="breadcrumb">
      <li class="breadcrumb-item active" aria-current="page"><a href="<%=@communicate.location=='pc'? "/admins/platform_communicates?location=pc" : "/admins/platform_communicates/applet?location=applet" %>">返回</a>>活动报名</li>
    </ol>
  </nav>
</div>

<div class="box search-form-container platform-communicate-list-form">
  <%= form_tag(admins_platform_communicate_path(@communicate), method: :get, class: 'form-inline search-form flex-1', remote: true) do %>
    <div class="form-group mr-2">
      <label for="identity">用户类型：</label>
      <% user_type_options = [['全部', ''], ['事业单位', 0], ['企业单位', 1], ['科研人员', 2], ['高校教师', 3], ['高校学生', 4], ['程序员', 5], ['其他', 6]] %>
      <%= select_tag(:user_type, options_for_select(user_type_options), class: 'form-control') %>
    </div>
    <div class="form-group mr-2">
      <label for="identity">专业领域：</label>
      <% user_type_options = [['全部', '']] + Site.get_dict_data("professional_field").pluck(:name,:value)%>
      <%= select_tag(:professional_field, options_for_select(user_type_options), class: 'form-control') %>
    </div>
    <%= text_field_tag(:search, params[:search], class: 'form-control col-12 col-md-2 mr-3', placeholder: '用户姓名/Email/手机号/单位') %>
    <%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %>
    <input type="reset" class="btn btn-secondary clear-btn" value="清空"/>
  <% end %>
</div>

<div class="box admin-list-container users-list-container">
  <%= render partial: 'admins/platform_communicates/users_list', locals: { watchers: @watchers } %>
</div>
<div id="platform-communicate-modals">
</div>
