123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <template id="identity_card">
- <t t-call="report.html_container">
- <t t-foreach="docs" t-as="student">
- <t t-call="report.external_layout">
- <div class="page" style="height: 2px;">
- <div class="oe_structure" />
- <br/><br/><br/><br/><br/><br/><br/>
- <table width="25%" height="50px" style="border: 3px solid black;">
- <tr>
- <td width="100%" align="center" height="30">
- <strong>
- <span t-field="student.school_id.name" />
- </strong>
- </td>
- </tr>
- <tr>
- <td align="center">
- <img t-if="student.photo" t-att-src="'data:image/png;base64,%s' % student.photo"
- style="height:120px;width=120px" />
- </td>
- </tr>
- <tr>
- <td height="10px">
- </td>
- </tr>
- <tr>
- <td align="center" height="30px">
- <strong>
- <span t-field="student.name" />
- </strong>
- <strong>
- <span t-field="student.middle" />
- </strong>
- <strong>
- <span t-field="student.last" />
- </strong>
- </td>
- </tr>
- <tr>
- <td height="130">
- <table width="100%">
- <tr>
- <td style="font-family: 'Helvetica';padding-left:20px;">
- <strong>Roll No.</strong>
- </td>
- <td>
- <strong>: </strong>
- </td>
- <td>
- <span t-field="student.roll_no" />
- </td>
- </tr>
- <tr>
- <td style="font-family: 'Helvetica';padding-left:20px;">
- <strong>Standard</strong>
- </td>
- <td>
- <strong>: </strong>
- </td>
- <td>
- <span t-field="student.standard_id.name" />
- (
- <span t-field="student.division_id.name" />
- )
- </td>
- </tr>
- <tr>
- <td style="font-family: 'Helvetica';padding-left:20px;">
- <strong>Medium</strong>
- </td>
- <td>
- <strong>: </strong>
- </td>
- <td>
- <span t-field="student.medium_id.name" />
- </td>
- </tr>
- <tr>
- <td style="font-family: 'Helvetica';padding-left:20px;">
- <strong>Birthdate</strong>
- </td>
- <td>
- <strong>: </strong>
- </td>
- <td>
- <span t-field="student.date_of_birth" />
- </td>
- </tr>
- <tr>
- <td style="font-family: 'Helvetica';padding-left:20px;">
- <strong>Blood Group</strong>
- </td>
- <td>
- <strong>: </strong>
- </td>
- <td>
- <span t-field="student.blood_group" />
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </div>
- </t>
- </t>
- </t>
- </template>
- </data>
- </openerp>
|