2018-05-08 16:59:46 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright 2018 Youssef El Ouahby <youssef@yaltik.com>
|
|
|
|
Copyright 2018 Fabien Bourgeois <fabien@yaltik.com>
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<odoo>
|
|
|
|
|
|
|
|
<template id="golem_activity_report_template_inherited_golem_activity_registration"
|
|
|
|
inherit_id="golem_activity.golem_activity_report_template">
|
2018-06-11 17:58:45 +02:00
|
|
|
<xpath expr="//div[@id='page_report_activity']" position="inside">
|
|
|
|
<div class="col-xs-4 text-left" style="margin-top: 50px;" >
|
|
|
|
<h4 style="text-decoration: underline;">
|
|
|
|
Enroled members : <span t-field="activity.places_used" />
|
|
|
|
</h4>
|
|
|
|
</div>
|
2018-05-08 16:59:46 +02:00
|
|
|
<table class="table table-striped" id="members_table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-07-17 08:28:02 +02:00
|
|
|
<th class="col-xs-3"><i class="fa fa-user" /> Name</th>
|
2018-06-11 18:10:25 +02:00
|
|
|
<th class="col-xs-3"><i class="fa fa-phone" /> Phone</th>
|
|
|
|
<th class="col-xs-3"><i class="fa fa-envelope" /> Email</th>
|
|
|
|
<th class="col-xs-3"><i class="fa fa-university" />City</th>
|
2018-05-08 16:59:46 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr id="activity_registration_line"
|
|
|
|
t-foreach="activity.activity_registration_ids" t-as="reg">
|
2018-06-11 18:10:25 +02:00
|
|
|
<td class="col-xs-3">
|
|
|
|
<span t-field="reg.member_id.name" />
|
2018-05-08 16:59:46 +02:00
|
|
|
</td>
|
|
|
|
<td class="col-xs-3">
|
2018-06-11 18:10:25 +02:00
|
|
|
<t t-set="two_phones" t-value="reg.member_id.phone and reg.member_id.mobile" />
|
|
|
|
<t t-if="reg.member_id.phone">
|
|
|
|
<t t-if="two_phones">
|
|
|
|
Landline :
|
|
|
|
</t>
|
|
|
|
<span t-field="reg.member_id.phone" />
|
|
|
|
</t>
|
|
|
|
<t t-if="reg.member_id.mobile">
|
|
|
|
<t t-if="two_phones">
|
|
|
|
<br />Mobile :
|
|
|
|
</t>
|
|
|
|
<span t-field="reg.member_id.mobile" />
|
|
|
|
</t>
|
2018-05-08 16:59:46 +02:00
|
|
|
</td>
|
|
|
|
<td class="col-xs-3">
|
2018-06-11 17:58:45 +02:00
|
|
|
<span t-field="reg.member_id.email" />
|
2018-05-08 16:59:46 +02:00
|
|
|
</td>
|
2018-06-11 18:10:25 +02:00
|
|
|
<td class="col-xs-3">
|
2018-06-11 17:58:45 +02:00
|
|
|
<span t-field="reg.member_id.city" />
|
2018-05-08 16:59:46 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
2018-06-11 17:58:45 +02:00
|
|
|
|
2018-05-08 16:59:46 +02:00
|
|
|
</odoo>
|