<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>
        About Us - Add New
    </title>

    {% include 'admin/includes/imports.top.html' %}
</head>

<body class="g-sidenav-show  bg-gray-100">
    {% include 'admin/includes/part.menu.html' %}
    <main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">
        <!-- Navbar -->
        {% include 'admin/includes/part.header.html' %}
        <!-- End Navbar -->
        <div class="container-fluid py-4">
            <div class="row g-1">
                <div class="col-12">
                    <div class="card">
                        <div class="card-header pb-0 px-3">
                            <div class="d-flex justify-content-between">
                                <h6 class="mb-0">New About Us Message</h6>
                                <div class="d-flex">
                                    <button class="btn btn-sm btn-dark me-2" onclick="history.back()">Go Back</button>
                                    <button type="submit" form="about-form" class="btn btn-sm bg-gradient-primary">Save
                                        Message
                                    </button>
                                </div>
                            </div>
                        </div>
                        <div class="card-body pt-4 p-3">
                            <div>
                                <form role="form" id="about-form" method="post" novalidate>
                                    {{form.csrf_token}}

                                    <div class="row">
                                        <div class="mb-3 col-12">
                                            {{form.message(class_="form-control", id="message", aria_label="message",
                                            aria_describedby="message-addon")}}
                                            {% for error in form.message.errors %}
                                            <span class='text-danger text-sm text-gradient'>{{ error }}</span>
                                            {% endfor %}
                                        </div>
                                    </div>
                                    <div class="d-flex justify-content-end">
                                        <button type="submit" form="about-form" class="btn bg-gradient-primary">Save
                                            Message</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            {% include 'admin/includes/part.footer.html' %}
        </div>
    </main>

    <!--   Core JS Files   -->
    {% include 'admin/includes/imports.bottom.html' %}
    <!-- Place the first <script> tag in your HTML's <head> -->
    <script src="https://cdn.tiny.cloud/1/cliim7sq2hqe4iw6so639oqlpl5l03rqlfgrdw2hvlsf4nih/tinymce/7/tinymce.min.js"
        referrerpolicy="origin"></script>

    <!-- Place the following <script> and <textarea> tags your HTML's <body> -->
    <script>
        tinymce.init({
            selector: '#message',
            plugins: 'anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount',
            toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table | align lineheight | numlist bullist indent outdent | emoticons charmap | removeformat',
        });

        var win = navigator.platform.indexOf('Win') > -1;
        if (win && document.querySelector('#sidenav-scrollbar')) {
            var options = {
                damping: '0.5'
            }
            Scrollbar.init(document.querySelector('#sidenav-scrollbar'), options);
        }
    </script>
</body>

</html>