Skip to content
Extraits de code Groupes Projets
month_timesheet.xml 1,44 ko
Newer Older
  • Learn to ignore specific revisions
  • <?xml version="1.0" encoding="UTF-8" ?>
    
    <!-- Copyright 2019 Le Filament (<https://www.le-filament.com>)
         License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
    <templates xml:space="preserve">
    
        <t t-name="ScopMonthTimesheet">
    
            <t t-if="widget.values.month_values">
                <table class="table">
                    <thead>
                        <tr>
                            <th t-foreach="widget.values.month_values" t-as="m">
                                <div
                                    t-att-class="m.date_timesheet == widget.values.today ? 'text-success' : ''"
                                >
    
                                    <t t-esc="m.month" /> <t t-esc="m.year" />
    
                                </div>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td t-foreach="widget.values.month_values" t-as="m">
                                <div
                                    t-att-class="m.date_timesheet == widget.values.today ? 'text-right text-success' : 'text-right'"
                                >
                                    <t t-esc="m.working_time" /> h
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </t>
            <t t-else="">
                <p>Aucun temps de travail théorique n'a été configuré.</p>
            </t>