<?xml version="1.0"?>
<t name="Website Pages" t-name="website.list_website_public_pages">
    <t t-call="website.layout">
        <div id="wrap">
            <div class="container">
                <t t-call="website.website_search_box_input">
                    <t t-set="_form_classes" t-valuef="mt8 float-end"/>
                    <t t-set="search_type" t-valuef="pages"/>
                    <t t-set="action" t-valuef="/pages"/>
                    <t t-set="search" t-value="original_search or search"/>
                </t>
                <h3 class="mt16">Pages</h3>
                <t t-if="not pages">
                    <div t-if="search" class="alert alert-warning mt8" role="alert">
                        Your search '<t t-esc="search"/>' did not match any pages.
                    </div>
                    <div t-else="" class="alert alert-warning mt8" role="alert">
                        There are currently no pages for this website.
                    </div>
                </t>
                <div t-elif="original_search" class="alert alert-warning mt8" role="alert">
                    No results found for '<span t-esc="original_search"/>'. Showing results for '<span t-esc="search"/>'.
                </div>
                <div t-if="pages" class="table-responsive">
                    <table class="table table-hover">
                        <tbody>
                            <tr t-foreach="pages" t-as="page">
                                <td><a t-att-href="page.url"><t t-esc="page.name"/></a></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div t-if="pager" class="o_portal_pager d-flex justify-content-center">
                    <t t-call="website.pager"/>
                </div>
            </div>
        </div>
    </t>
</t>

