Skip to content
Extraits de code Groupes Projets
Valider 7c70e122 rédigé par Stéphane - Enercoop's avatar Stéphane - Enercoop
Parcourir les fichiers

[CSS] sticky nav and filters

parent 229f296a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -2,11 +2,16 @@ ...@@ -2,11 +2,16 @@
<!-- Copyright 2021- Le Filament (https://le-filament.com) <!-- Copyright 2021- Le Filament (https://le-filament.com)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<template id='sticky_nav_filters'>
<!-- Operation Document template --> <div
<template id='operation_document' name="Operation Document"> class="sticky-top pb-2 bg-white"
<t t-call="oacc_portal.layout_op"> style="border-bottom: 1px solid rgb(244, 230, 236);"
<div class="row bg-white"> >
<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 --> <!-- Title + search -->
<div class="col-12"> <div class="col-12">
<h3 class="text-center mt-2 text-uppercase">Mes documents</h3> <h3 class="text-center mt-2 text-uppercase">Mes documents</h3>
...@@ -36,7 +41,16 @@ ...@@ -36,7 +41,16 @@
</div> </div>
</form> </form>
</div> </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">
<t t-call="oacc_portal_document.sticky_nav_filters" />
<!-- Documents --> <!-- Documents -->
<div class="col-12 p-4" t-if="contracts"> <div class="col-12 p-4" t-if="contracts">
<t t-foreach="contracts_type" t-as="type"> <t t-foreach="contracts_type" t-as="type">
...@@ -74,7 +88,9 @@ ...@@ -74,7 +88,9 @@
</a> </a>
</td> </td>
<td t-att-data-order="c.date_app"> <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>
<td> <td>
<t t-out="c.name" /> <t t-out="c.name" />
...@@ -91,5 +107,4 @@ ...@@ -91,5 +107,4 @@
</div> </div>
</t> </t>
</template> </template>
</odoo> </odoo>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<odoo> <odoo>
<!-- Layout operation --> <!-- 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"> <xpath expr="//li[@id='menu-contact']" position="before">
<li class="nav-item"> <li class="nav-item">
<a <a
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter