<div class="modal-header">
  <h5 class="modal-title">
    添加版主
  </h5>
  <button type="button" class="close" data-dismiss="modal" aria-label="Close">
    <span aria-hidden="true">&times;</span>
  </button>
</div>
<%= simple_form_for(ForumModerator.new, url: admins_forum_section_forum_moderators_path(@forum_section), html: { remote: true}) do |f|%>
  <div class="modal-body">
   <div class="task-popup-content mt10">
      <div class="grid-item-left">
          <%= text_field_tag :user_name,nil,class: "form-control input-lg" ,id: "search-forum-moderators",placeholder: "请输入用户的名称搜索" %>
          <%= link_to "搜索", "javascript:void(0)", class: "btn btn-primary btn-sm ml20", onclick: "search_forum_users('search-forum-moderators')", disable_with: '搜索中...' %>
        </div>
      <div id="has-none-moderators" class="none forum-moderators-items">
      </div>
      <div id="forum-moderators-show" class="none forum-moderators-items">
      </div>
    </div>
  </div>
  <div class="modal-footer">
    <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
    <%= f.submit "确定", disable_with: '提交中...', class: "btn btn-primary submit-btn" %>
  </div>
<% end %>
