[WIP][REF][FIX]GOLEM Member card : only default season and refactoring
This commit is contained in:
parent
e7c8a4d5e4
commit
8ee4aca5f4
@ -31,70 +31,68 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<t t-call="report.html_container">
|
<t t-call="report.html_container">
|
||||||
<t t-call="report.external_layout">
|
<t t-call="report.external_layout">
|
||||||
<div id='page_report_member' class="page">
|
<div id='page_report_member' class="page">
|
||||||
<t t-foreach="docs" t-as="o">
|
<t t-set="season" t-value="docs._default_season()" />
|
||||||
<div class="row" style="margin: 3% 0 3% 0;">
|
<t t-foreach="docs" t-as="member">
|
||||||
<div class="col-xs-8">
|
<div class="row">
|
||||||
<h2><span t-field="o.name" /> - <span t-field="o.number" /></h2>
|
<h2>Member <span t-field="member.name" /> - <span t-field="member.number" /></h2>
|
||||||
</div>
|
<p>
|
||||||
<div class="col-xs-4">
|
|
||||||
<strong>Season :</strong>
|
<strong>Season :</strong>
|
||||||
<span t-field="o.season_ids[0].name" />
|
<span t-field="season.name" />
|
||||||
<br />
|
<t t-if="season.date_start">
|
||||||
<strong>Date :</strong>
|
(<em>from :
|
||||||
<span t-field="o.season_ids[0].date_start" />
|
<span t-field="season.date_start" /> to
|
||||||
-
|
<span t-field="season.date_end" /></em>)
|
||||||
<span t-field="o.season_ids[0].date_end" />
|
</t>
|
||||||
</div>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</t>
|
<h3>Activities for this season</h3>
|
||||||
<p><strong>Activities</strong> for this season</p>
|
<table id="table_activity_ref" class="table table-striped">
|
||||||
<table id="table_activity_ref" class="table table-striped">
|
<thead>
|
||||||
<thead>
|
<tr>
|
||||||
<tr>
|
<th>Name</th>
|
||||||
<th>Name</th>
|
<th>Type</th>
|
||||||
<th>Type</th>
|
<th>Animator</th>
|
||||||
<th>Animator</th>
|
<th>Day</th>
|
||||||
<th>Day</th>
|
<th>Hour start</th>
|
||||||
<th>Hour start</th>
|
<th>Hour stop</th>
|
||||||
<th>Hour stop</th>
|
<th>Date start</th>
|
||||||
<th>Date start</th>
|
<th id="activity_inherit_th">Date stop</th>
|
||||||
<th id="activity_inherit_th">Date stop</th>
|
</tr>
|
||||||
</tr>
|
</thead>
|
||||||
</thead>
|
<tbody>
|
||||||
<tbody>
|
<tr id="activity_inherit_price_sum"
|
||||||
<t t-foreach="docs" t-as="o">
|
t-foreach="member.activity_registration_ids" t-as="reg">
|
||||||
<tr id="activity_inherit_price_sum" t-foreach="o.activity_registration_ids" t-as="t">
|
|
||||||
<td class="col-xs-2">
|
<td class="col-xs-2">
|
||||||
<span t-esc="t.activity_id.name" />
|
<span t-esc="reg.activity_id.name" />
|
||||||
</td>
|
</td>
|
||||||
<td class="col-xs-2">
|
<td class="col-xs-2">
|
||||||
<span t-esc="t.activity_id.type_id.name" />
|
<span t-esc="reg.activity_id.type_id.name" />
|
||||||
</td>
|
</td>
|
||||||
<td class="col-xs-2">
|
<td class="col-xs-2">
|
||||||
<span t-field="t.activity_id.animator_id" />
|
<span t-field="reg.activity_id.animator_id" />
|
||||||
</td>
|
</td>
|
||||||
<td class="col-xs-2">
|
<td class="col-xs-2">
|
||||||
<span t-field="t.activity_id.weekday" />
|
<span t-field="reg.activity_id.weekday" />
|
||||||
</td>
|
</td>
|
||||||
<td class="col-xs-1">
|
<td class="col-xs-1">
|
||||||
<t t-esc="'%02d:%02d' % (int(t.activity_id.hour_start), round(t.activity_id.hour_start % 1 * 60))" />
|
<t t-esc="'%02d:%02d' % (int(reg.activity_id.hour_start), round(reg.activity_id.hour_start % 1 * 60))" />
|
||||||
</td>
|
</td>
|
||||||
<td class="col-xs-1">
|
<td class="col-xs-1">
|
||||||
<t t-esc="'%02d:%02d' % (int(t.activity_id.hour_stop), round(t.activity_id.hour_stop % 1 * 60))" />
|
<t t-esc="'%02d:%02d' % (int(reg.activity_id.hour_stop), round(reg.activity_id.hour_stop % 1 * 60))" />
|
||||||
</td>
|
</td>
|
||||||
<td class="col-xs-2">
|
<td class="col-xs-2">
|
||||||
<span t-if="t.activity_id.is_fullseason" t-field="o.season_ids[0].date_start" />
|
<span t-if="reg.activity_id.is_fullseason" t-field="season.date_start" />
|
||||||
<span t-else="" t-field="t.activity_id.date_start" />
|
<span t-else="" t-field="reg.activity_id.date_start" />
|
||||||
</td>
|
</td>
|
||||||
<td id="activity_inherit_td">
|
<td id="activity_inherit_td">
|
||||||
<span t-if="t.activity_id.is_fullseason" t-field="o.season_ids[0].date_end" />
|
<span t-if="reg.activity_id.is_fullseason" t-field="season.date_end" />
|
||||||
<span t-else="" t-field="t.activity_id.date_stop" />
|
<span t-else="" t-field="reg.activity_id.date_stop" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="activity_inherit_total"></tr>
|
<tr id="activity_inherit_total"></tr>
|
||||||
</t>
|
</tbody>
|
||||||
</tbody>
|
</table>
|
||||||
</table>
|
</t>
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
|
Loading…
Reference in New Issue
Block a user