<!DOCTYPE html>
<html lang="en"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorator="default" xmlns:th="">
<head>
</head>
<body>
<div class="container" layout:fragment="content">
    <form id="grants-form" method="post" th:action="@{'/grants/grants'}">
        <input th:type="hidden" name="grantDeleteId" id="grantDeleteId"/>
        <section id="grants">
            <div class="container">
                <div class="row" id="grant-list">
                    <div class="col-lg-12 text-center">
                        <h2 class="section-heading text-uppercase">Гранты</h2>
                        <div th:replace="grants/fragments/grantNavigationFragment"/>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-9 col-sm-12">
                        <th:block th:each="grant : ${grants}">
                            <div th:replace="grants/fragments/grantLineFragment :: grantLine(grant=${grant})"/>
                        </th:block>
                    </div>
                    <div class="col-md-3 col-sm-12">
                    </div>
                    <div th:replace="fragments/noRecordsFragment :: noRecords(entities=${grants}, noRecordsMessage=' одного гранта', url='grant')"/>
                </div>
            </div>
        </section>

        <div id="modalDelete"/>
    </form>
    <script src="/js/grants.js"></script>
</div>
</body>
</html>
