portal_templates.xml 3.29 KB
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <template id="portal_idg_boards">
            <t t-call="website.layout">
                <t t-set="title">IDG Tax Dashboard</t>
                <div class="row">
                    <div class="col-sm-6">
                        <h2>IDG Province Potency#</h2>
                        <t t-call="portal.portal_table">
                            <thead>
                                <tr class="active">
                                    <th class="text-left">Tax Category</th>
                                    <th class="text-right">Qty</th>
                                    <th class="text-right">Amount</th>
                                </tr>
                            </thead>
                            <tbody>
                                <t t-foreach="province_taxs" t-as="tax">
                                    <tr>
                                        <td>
                                            <a t-att-href="tax.get_portal_url()">
                                                <t t-esc="tax.account_group_id.name"/>
                                            </a>
                                        </td>
                                        <td class="text-right">
                                            <span t-field="tax.qty"/>
                                        </td>
                                        <td class="text-right">
                                            <span t-field="tax.amount"/>
                                        </td>
                                    </tr>
                                </t>
                            </tbody>
                        </t>
                    </div>
                    <div class="col-sm-6">
                        <h2>IDG District Potency #</h2>
                        <t t-call="portal.portal_table">
                            <thead>
                                <tr class="active">
                                    <th class="text-left">Tax Category</th>
                                    <th class="text-right">Qty</th>
                                    <th class="text-right">Amount</th>
                                </tr>
                            </thead>
                            <tbody>
                                <t t-foreach="district_taxs" t-as="tax">
                                    <tr>
                                        <td>
                                            <a t-att-href="tax.get_portal_url()">
                                                <t t-esc="tax.account_group_id.name"/>
                                            </a>
                                        </td>
                                        <td class="text-right">
                                            <span t-field="tax.qty"/>
                                        </td>
                                        <td class="text-right">
                                            <span t-field="tax.amount"/>
                                        </td>
                                    </tr>
                                </t>
                            </tbody>
                        </t>
                    </div>
                </div>
            </t>

        </template>
    </data>
</openerp>