diff --git a/templates/operation_templates_page.xml b/templates/operation_templates_page.xml index 3766b7d51c3134480c08b5162a2da506099eabf2..22a6927839d79f55bb7658e9e1a4eccc59e981bb 100644 --- a/templates/operation_templates_page.xml +++ b/templates/operation_templates_page.xml @@ -2,41 +2,55 @@ <!-- Copyright 2021- Le Filament (https://le-filament.com) License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> <odoo> + <template id='sticky_nav_filters'> + <div + class="sticky-top pb-2 bg-white" + style="border-bottom: 1px solid rgb(244, 230, 236);" + > + <div class="d-block d-md-none"> + <t t-call="oacc_portal.nav_menu_sm" /> + </div> + <div class="container-fluid"> + <div class="row"> + <!-- Title + search --> + <div class="col-12"> + <h3 class="text-center mt-2 text-uppercase">Mes documents</h3> + </div> + <div class="col-12"> + <form + class=" pt-3" + t-att-action="'/operation/%s/document' % (slug(operation))" + method="get" + > + <div class="input-group input-group-sm mb-3"> + <input + type="search" + name="search-doc" + class="search-query form-control oe_search_box" + placeholder="Rechercher un document" + t-att-value="search or searches['search-doc']" + /> + <button + type="submit" + class="btn oe_search_button btn-primary" + aria-label="Search" + title="Rechercher" + > + <i class="oi oi-search" /> + </button> + </div> + </form> + </div> + </div> + </div> + </div> + </template> <!-- Operation Document template --> <template id='operation_document' name="Operation Document"> <t t-call="oacc_portal.layout_op"> <div class="row bg-white"> - <!-- Title + search --> - <div class="col-12"> - <h3 class="text-center mt-2 text-uppercase">Mes documents</h3> - </div> - <div class="col-12"> - <form - class=" pt-3" - t-att-action="'/operation/%s/document' % (slug(operation))" - method="get" - > - <div class="input-group input-group-sm mb-3"> - <input - type="search" - name="search-doc" - class="search-query form-control oe_search_box" - placeholder="Rechercher un document" - t-att-value="search or searches['search-doc']" - /> - <button - type="submit" - class="btn oe_search_button btn-primary" - aria-label="Search" - title="Rechercher" - > - <i class="oi oi-search" /> - </button> - </div> - </form> - </div> - + <t t-call="oacc_portal_document.sticky_nav_filters" /> <!-- Documents --> <div class="col-12 p-4" t-if="contracts"> <t t-foreach="contracts_type" t-as="type"> @@ -74,7 +88,9 @@ </a> </td> <td t-att-data-order="c.date_app"> - <t t-out="c.date_app.strftime('%d/%m/%Y') if c.date_app else ''" /> + <t + t-out="c.date_app.strftime('%d/%m/%Y') if c.date_app else ''" + /> </td> <td> <t t-out="c.name" /> @@ -91,5 +107,4 @@ </div> </t> </template> - </odoo> diff --git a/templates/portal_layout.xml b/templates/portal_layout.xml index b0b466f831dfb36269470ccb0d9ef7f9290ea38c..6c5169bfd1dede91d2a87ed970e6d7a2b7eb9958 100644 --- a/templates/portal_layout.xml +++ b/templates/portal_layout.xml @@ -4,7 +4,7 @@ <odoo> <!-- Layout operation --> - <template id="layout_op" inherit_id="oacc_portal.layout_op"> + <template id="nav_menu_content" inherit_id="oacc_portal.nav_menu_content"> <xpath expr="//li[@id='menu-contact']" position="before"> <li class="nav-item"> <a