<!DOCTYPE html>
<html lang="en"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorator="default">
<head>
</head>
<body>

<div class="container" layout:fragment="content">
    <section id="papers">
        <div class="container">
            <div class="row" id="paper-list">
                <div class="col-lg-12 text-center">
                    <h2 class="section-heading text-uppercase">Статьи</h2>

                    <div class="row justify-content-center">
                        <div class="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-3">
                            <a href="./papers" class="btn btn-light toolbar-button"><i class="fa fa-list-alt"></i>
                                Список</a>
                        </div>
                        <div class="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-3">
                            <a href="./dashboard" class="btn btn-light toolbar-button"><i class="fa fa-newspaper-o"
                                                                           aria-hidden="true"></i> Панель управления</a>
                        </div>

                        <div class="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-3">
                            <a href="./paper" class="btn btn-light toolbar-button"><i class="fa fa-plus-circle" aria-hidden="true"></i>
                                Добавить статью</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true" id="remove-paper-modal">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <h8 class="modal-title" id="myModalLabel">Удалить статью?</h8>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Закрыть"><span aria-hidden="true">&times;</span></button>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" id="modal-btn-yes">Да</button>
                    <button type="button" class="btn btn-primary" id="modal-btn-no">Нет</button>
                </div>
            </div>
        </div>
    </div>
    <script src="/js/papers.js"></script>
    <script>
        $(document).ready(function () {
            showPapers("#paper-list", ".paper-row");
        });
    </script>
</div>
</body>

</html>
