<% define_admin_breadcrumbs do %>
  <% add_admin_breadcrumb('开源许可证') %>
<% end %>
<div id="admins-project-license-content">
  <div class="box search-form-container project-list-form">
    <%= form_tag(admins_project_licenses_path, method: :get, class: 'form-inline search-form flex-1', remote: true) do %>
      <%= 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 %>
  <% if current_user.admin? %>
  <%= link_to "新增", new_admins_project_license_path, remote: true, class: "btn btn-primary pull-right", "data-disabled-with":"...新增" %> 
  <% end %>
  </div>

  <div class="box admin-list-container project-license-list-container">
    <%= render partial: 'admins/project_licenses/list', locals: { project_licenses: @project_licenses } %>
  </div>
</div>

