<div class="content-header">
  <div class="container-fluid">
    <div class="row mb-2">
      <div class="col-sm-6">
        <h1 class="m-0">Dotacje</h1>
      </div>
      <div class="col-sm-6"></div>
    </div>
  </div>
</div>

<div class="content">
  <div class="container-fluid">
    <div class="row">
      <div class="col-md-12">
        <div class="card">
          <div class="card-header">
            <h3 class="card-title"><i class="fas fa-folder"></i> Dotacje</h3>
            <div class="card-tools">
              <%= link_to raw('<button type="button" class="btn-sm btn-block btn-primary">Dodaj</button>'), new_grant_path %>

            </div>
          </div>

          <div class="card-body">
            <p id="notice"><%= notice %></p>
            <div class="row">
              <div class="col-md-8">
              </div>
              <div class="col-md-4">
                <%= form_tag(grants_path, method: :get, remote: true) do %>
                  <div class="input-group">
                    <%= text_field_tag(:search, params[:search], class: 'form-control form-control-md', placeholder: 'Wyszukaj') %>
                    <div class="input-group-append">
                      <button type="submit" class="btn btn-md btn-default">
                      <i class="fa fa-search"></i>
                      </button>
                    </div>
                  </div>
                <% end %>
              </div>
            </div>
            <hr />
            <div id="_list">
              <%= render partial: 'list' %>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
