45 lines
1.9 KiB
XML
45 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="report_student_template">
|
|
<t t-call="web.html_container">
|
|
<t t-foreach="docs" t-as="doc">
|
|
<t t-call="web.external_layout">
|
|
<div class="page">
|
|
<h2 style="text-align: center;">Danh sách học sinh đăng ký khóa học: <t
|
|
t-esc="doc.name" /></h2>
|
|
<table class="table table-bordered" style="width: 100%;">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Name</th>
|
|
<th>Email</th>
|
|
<th>Phone</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<t t-foreach="doc.student_ids" t-as="student">
|
|
<tr>
|
|
<td>
|
|
<t t-esc="student_index + 1" />
|
|
</td>
|
|
<td>
|
|
<t t-esc="student.name" />
|
|
</td>
|
|
<td>
|
|
<t t-esc="student.email" />
|
|
</td>
|
|
<td>
|
|
<t t-esc="student.phone" />
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
|
|
</odoo> |