<% define_admin_breadcrumbs do %>
  <% add_admin_breadcrumb('小程序动态管理') %>
<% end %>

<div class="box search-form-container platform-communicate-list-form">
  <%= form_tag("/admins/platform_communicates/applet", method: :get, class: 'form-inline search-form flex-1', remote: true) do %>
    <input type="hidden" name="location" value="<%=params[:location] %>"/>
    <%= text_field_tag(:search, params[:search], class: 'form-control col-12 col-md-2 mr-3', placeholder: '标题检索') %>
    <%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %>
    <input type="reset" class="btn btn-secondary clear-btn" value="清空"/>
  <% end %>
 <%= link_to "新增", new_admins_platform_communicate_path(location: params[:location]), remote: true, class: "btn btn-primary pull-right", "data-disabled-with":"...新增" %>
</div>

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