portal_templates.xml 3.83 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">Code</th>
                                    <th class="text-left">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>
                                                <t t-esc="tax['code']"/>
                                        </td>
                                        <td>
<!--                                            <a t-att-href="tax.get_portal_url()">-->
                                                <t t-esc="tax['name']"/>
                                        </td>
                                        <td class="text-right">
                                            <span t-esc="tax['qty']"/>
                                        </td>
                                        <td class="text-right">
                                            <span t-esc="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">Code</th>
                                    <th class="text-left">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['code']"/>
<!--                                            </a>-->
                                        </td>
                                        <td>
<!--                                            <a t-att-href="tax.get_portal_url()">-->
                                                <t t-esc="tax['name']"/>
<!--                                            </a>-->
                                        </td>
                                        <td class="text-right">
                                            <span t-esc="tax['qty']"/>
                                        </td>
                                        <td class="text-right">
                                            <span t-esc="tax['amount']"/>
                                        </td>
                                    </tr>
                                </t>
                            </tbody>
                        </t>
                    </div>
                </div>
            </t>

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