[REF][IMP]GOLEM Membership member card report : do not use multiple pages finally

This commit is contained in:
Fabien BOURGEOIS 2018-03-08 15:37:39 +01:00
parent 027eaf0a9b
commit f9067e578f
1 changed files with 25 additions and 25 deletions

View File

@ -22,10 +22,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<template id="golem_member_card_template_inherit_golem_membership" <template id="golem_member_card_template_inherit_golem_membership"
inherit_id="golem_member.golem_member_card_template"> inherit_id="golem_member.golem_member_card_template">
<xpath expr="//div[@id='page_report_member']" position="after"> <xpath expr="//table[@id='table_activity_ref']" position="after">
<div class="page"> <t t-if="member.membership_state != 'none'">
<div class="row"> <div class="row" id="page_report_membership">
<h2>Membership</h2> <div class="col-xs-12">
<h3>Memberships</h3>
</div>
</div> </div>
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
@ -38,30 +40,28 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<t t-foreach="docs" t-as="member"> <t t-foreach="member.member_lines" t-as="mline">
<t t-foreach="member.member_lines" t-as="mline"> <tr>
<tr> <td class="col-xs-3">
<td class="col-xs-3"> <spam t-field="mline.membership_id" />
<spam t-field="mline.membership_id" /> </td>
</td> <td class="col-xs-2">
<td class="col-xs-2"> <spam t-field="mline.date_from" />
<spam t-field="mline.date_from" /> </td>
</td> <td class="col-xs-2">
<td class="col-xs-2"> <spam t-field="mline.date_to" />
<spam t-field="mline.date_to" /> </td>
</td> <td class="col-xs-2">
<td class="col-xs-2"> <spam t-field="mline.date" />
<spam t-field="mline.date" /> </td>
</td> <td class="col-xs-3">
<td class="col-xs-3"> <spam t-field="mline.state" />
<spam t-field="mline.state" /> </td>
</td> </tr>
</tr>
</t>
</t> </t>
</tbody> </tbody>
</table> </table>
</div> </t>
</xpath> </xpath>
</template> </template>